cpan

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

半腔热情 提交于 2019-11-26 00:57:48
问题 I want to install perl modules on a shared server on which I do not have root access. How can I do this? They also seem to have an older version of CPAN (it complains about that when running the command), is it possible to update the CPAN command being used from my account without requiring root access? 回答1: 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

How can I use a new Perl module without install permissions?

a 夏天 提交于 2019-11-26 00:55:14
问题 Here is my situation: I know almost nothing about Perl but it is the only language available on a porting machine. I only have permissions to write in my local work area and not the Perl install location. I need to use the Parallel::ForkManager Perl module from CPAN How do I use this Parallel::ForkManager without doing a central install? Is there an environment variable that I can set so it is located? Thanks JD 回答1: From perlfaq8: How do I keep my own module/library directory?: When you

How can I install Perl modules without root privileges?

倖福魔咒の 提交于 2019-11-26 00:33:39
问题 I am on a Linux machine where I have no root privileges. I want to install some packages through CPAN into my home directory so that when I run Perl, it will be able to see it. I ran cpan , which asked for some coniguration options. It asked for some directory, which it suggested ~/perl \"for non-root users\". Still, when I try to install a package, it fails at the make install step, because I don\'t have write access to /usr/lib/perl5/whatever . How can I configure CPAN so that I can install

How can I install a CPAN module into a local directory?

浪子不回头ぞ 提交于 2019-11-25 23:47:04
问题 I\'m using a hosted Linux machine so I don\'t have permissions to write into the /usr/lib directory. When I try to install a CPAN module by doing the usual: perl Makefile.PL make test make install That module is extracted to a blib/lib/ folder. I have kept use blib/lib/ModuleName but it still the compiler says module can not be found. I have tried copying the .pm file into local directory and kept require ModuleName but still it gives me some error. How can I install a module into some other

What's the easiest way to install a missing Perl module?

帅比萌擦擦* 提交于 2019-11-25 21:41:12
问题 I get this error: Can\'t locate Foo.pm in @INC Is there an easier way to install it than downloading, untarring, making, etc? 回答1: On Unix : usually you start cpan in your shell: # cpan and type install Chocolate::Belgian or in short form: cpan Chocolate::Belgian On Windows : If you're using ActivePerl on Windows, the PPM (Perl Package Manager) has much of the same functionality as CPAN.pm. Example: # ppm ppm> search net-smtp ppm> install Net-SMTP-Multipart see How do I install Perl modules?

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

£可爱£侵袭症+ 提交于 2019-11-25 20:39:53
I want to install perl modules on a shared server on which I do not have root access. How can I do this? They also seem to have an older version of CPAN (it complains about that when running the command), is it possible to update the CPAN command being used from my account without requiring root access? Chas. Owens 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' >

How can I use a new Perl module without install permissions?

戏子无情 提交于 2019-11-25 19:34:38
Here is my situation: I know almost nothing about Perl but it is the only language available on a porting machine. I only have permissions to write in my local work area and not the Perl install location. I need to use the Parallel::ForkManager Perl module from CPAN How do I use this Parallel::ForkManager without doing a central install? Is there an environment variable that I can set so it is located? Thanks JD From perlfaq8: How do I keep my own module/library directory? : When you build modules, tell Perl where to install the modules. For C-based distributions, use the INSTALL_BASE option