It seems you do not have root access to install perl modules. In my first rely itself I have mentioned that If you are the system administrator and want to install the module system-wide, So you could have told us that you are a normal user trying to install a module, something like that. To install perl modules locally in your home directory you need to do setup local lib directory. Follow the steps,
1.Create directories in your home directory ~/src, ~/lib and ~/downloads
2.Download the .tar.gz file into ~/downloads
3.Unpack the CPAN Perl module,
cd ~/src tar -zxvf ~/downloads/your_module.tar.gz
4.cd ~/src/your_module/
5. What the conventional method you do here ?
perl Makefile.PL make make test make install
6.Here is the change in the step of perl module installation. In perl Makefile.PL setp you need to tell perl that you want this module to be installed in your local path by specifying the PREFIX=~/lib as,
perl Makefile.PL PREFIX=~/lib/ make make test make install
Change your Perl scripts so that they can find the Perl module that you have installed locally.
Then set the environment variable in .bash_rc or .profile file as export PERL5LIB=~/lib/
In reply to Re^7: Not able to use Net::SFTP module.
by vinoth.ree
in thread Not able to use Net::SFTP module.
by Ankur_kuls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |