Showing posts with label modules. Show all posts
Showing posts with label modules. Show all posts

Monday, December 15, 2008

Drivel & Updated install.sh

Ive been rather busy with a new job, loving it to :)

I have also written another perl app that I will release when I cbf (media playing related). The app also needs some fine tuning yet.

Ubuntu dist upgrade to intrepid fucking ruined my pc. By ruined I mean, the yanking of binary legacy nvidia drivers. My main pc has been faithfully acting in its second roll as media pc. I run a matrox g550 for the desktop and my trusty old ASUS Nvidia TNT2 Ulta (reow). Needless to say, I was pissed - I had encountered the issue previously and managed to resolve it with a custom kernel compile. Not this time though, spent far to long trying everything else but a reinstall.
Having spent far to long avoiding a reinstall, i did it. Then noticed today my install.sh for namefix.pl was not correct. After fixing the stupid stuff I noticed that force install for cpan was no longer working (did it ever work ?). So I googled around, and found this great thread below with a guru giving out his fix.

http://www.perlmonks.org/?node_id=606768

The updated install.sh
echo installing modules

sudo perl -MCPAN -e "CPAN::Shell->force(qw(install Tk));"
sudo perl -MCPAN -e "CPAN::Shell->force(qw(install Tk::JComboBox));"
sudo perl -MCPAN -e "CPAN::Shell->force(qw(install Tk::DynaTabFrame));"
sudo perl -MCPAN -e "CPAN::Shell->force(qw(install Tk::JComboBox));"

echo install script

sudo chmod a+x ./namefix.pl
sudo rm /usr/bin/namefix.pl
sudo ln ./namefix.pl /usr/bin/namefix.pl

This has been corrected in my private wip version and will be included in the next release.

Thursday, July 10, 2008

namefix.pl perl module install guide

For all users running namefix.pl as a perl script (ie unix & osx) who encounter dependency issues try running these commands:
perl -MCPAN -we 'install "MP3::Tag"'
perl -MCPAN -we 'install "Tk"'
perl -MCPAN -we 'install "Tk::DynaTabFrame"'
Should these commands fail (Tk insists on passing all its tests, for namefix.pl 90% pass is more than enough most times) try force installing the modules:
perl -MCPAN -we 'force install "MP3::Tag"'
perl -MCPAN -we 'force install "Tk"'
perl -MCPAN -we 'force install "Tk::DynaTabFrame"'



On other news, I am slowly working on the namefix.pl cmd line options, if anyone has a copy of the old 2.0 cmd line version please email me. Please feel free to help with the options, Im still deciding on what letters will = what functions.

The initial cmd line version with use the following syntax:
namefix.pl -[options] [file/directory]

much like the original 1.0 and 2.0 versions, but once that has been sorted I will do a proper unix style namefix.pl:
namefix.pl -r --sp:spaces --case [file/directory]

This will come once Im happy with the cmd line code.