LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hi,

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 Config.pm 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
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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:

Code:
<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
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 44

Original Poster
Blog Entries: 2

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
wget http://search.cpan.org/CPAN/authors/...-1.5017.tar.gz
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
 
  


Reply

Tags
cpan, module, perl, software



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:20 PM.

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