Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-19-2011, 03:07 AM   #1
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Rep: Reputation: 0
perl module installation in custom location using cpanplus


I have installed perl5.12.3 in a custom location, ( a NFS share). I have all the libraries created in the same location. This was an attempt not to disturb existing version of perl. I have succeeded doing this.

Now, I need to install around 200 perl modules. I tried Bundle option in CPAN shell, it somehow did not work.

Does anyone here know off any other better method of installing multiple perl modules. How do I use CPANPLUS to install all the modules. What changes do I make to considering custom location of perl installation I have done.

Your help will be greatly appreciated.

Thank you,
Old 05-21-2011, 06:32 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,901

Rep: Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769Reputation: 769
I have been working with computers for a long time and have yet to see the error message "did not work" yet people persist in saying that is what happened when they ran a program. Programmers go to great lengths to report useful error messages and it is pointless to ignore them. Something happened -- maybe the program succeeded but installed the modules in the wrong place, for example, but I'm willing to bet that nothing printed "did not work" on the screen.

Most likely you were running the wrong perl version when you tried to install the bundles from CPAN, or your 5.12.3 version is installed incorrectly. In any case, what should work is:

<path to perl>/perl -MCPAN -e"install foo"
should install foo for the version of perl in <path to perl> provided that you built that perl with the config set up properly to point to that path so that perl can find its files.
1 members found this post helpful.
Old 08-16-2012, 04:44 PM   #3
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Please follow any of the 4 methods according to your convenience

>>>> If you have the list of modules with you then, (you have to install cpanm first)
- Installing cpanm
tar zxvf App-cpanminus-1.5017.tar.gz
cd App-cpanminus-1.5017
/bin/perl Makefile.PL
make ; make install

-- Installing the modules later

/bin/cpanm --scandeps <space separated moudle list>
/bin/cpanm -v --installdeps <space separated moudle list>
/bin/cpanm -v <space separated moudle list>

>>> If you already have a Bundle file created from machine which has all required modules installed

/bin/perl -MCPAN -e 'install Bundle::Snapshot_2011_07_25_00'

>>> Modules can be installed from cpan shell as well

/bin/perl -MCPAN -e shell
> install <module name>

>>> Lastly, go for manual installing all dependent modules


cpan, module, perl, software

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl installation in custom location rohit.dhaval1 Linux - Software 2 05-12-2011 09:48 AM
Kernel programming and RTAI: problems with a custom module installation. Alessandro_2 Programming 3 02-24-2011 10:55 AM
Custom Module Install of Perl using MCPAN or tar.gz (Solaris 9) metallica1973 Programming 0 02-26-2008 10:29 AM
perl module installation init-5 Linux - Software 26 10-25-2004 04:14 AM
perl module installation black_man Slackware 2 10-17-2004 01:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration