How can I use CPAN as a non-root user?

The easiest method I have found so far is to say wget -O- http://cpanmin.us | perl – -l ~/perl5 App::cpanminus local::lib eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib` echo ‘eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`’ >> ~/.profile echo ‘export MANPATH=$HOME/perl5/man:$MANPATH’ >> ~/.profile This assumes your profile is named .profile, you may need to change that to be .bash_profile, … Read more

How do I get a list of installed CPAN modules?

This is answered in the Perl FAQ, the answer which can be quickly found with perldoc -q installed. In short, it comes down to using ExtUtils::Installed or using File::Find, variants of both of which have been covered previously in this thread. You can also find the FAQ entry “How do I find which modules are … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)