Automating CPAN on FreeBSD


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automating CPAN on FreeBSD
# 8  
Old 04-16-2009
For root, I tested on Linux and CPAN seems to write the configuration to /usr/lib/perl5/5.x.x/CPAN/Config.pm.
# 9  
Old 04-18-2009
Thank you again for your help. The file Config.pm is in a different location in my case, namely: /usr/local/lib/perl5/5.8.8/BSDPAN/Config.pm
The contents do not look like a Config.pm as outlined in the various tutorials on the web. It has not been touched for months, and I cannot tell if it was accessed either.
Strace will not install on a i386 system.
# 10  
Old 04-19-2009
If you can enter the cpan shell (by running "cpan" or "perl -MCPAN -e shell"), the "o conf" command generated output will tell you the locations from which configuration is read.

This is mine on a certain Linux system I have:

Code:
admin@np64gw:~$ cpan

cpan shell -- CPAN exploration and modules installation (v1.7601)
ReadLine support available (try 'install Bundle::CPAN')

cpan> o conf
CPAN::Config options from /usr/lib/perl5/5.8.7/CPAN/Config.pm and /test/.cpan/CPAN/MyConfig.pm:
    commit             Commit changes to disk
    defaults           Reload defaults from disk
    init               Interactive setting of all options

    build_cache        10
    build_dir          /test/.cpan/build
    cache_metadata     1
    cpan_home          /test/.cpan
...

# 11  
Old 04-19-2009
Thanks for your response. I generated the Config.pm file using the same output, namely from "o conf". The path at the top is /usr/local/lib/perl5/5.8.8/CPAN/Config.pm
when invoking cpan. So actually different from where I put my hand-crafted version. Are you suggesting I should overwrite the one shown in this posting with the hand-crafted one?

Also typo in my previous post:
Quote:
Strace will not install on a i386 system.
This should be: Strace will not install on a non-i386 system.
# 12  
Old 04-19-2009
If cpan is looking at the location specified, then you should overwrite it or it will not be seen. Of course please keep backup of the original file before you overwrite it, as your version may not necessarily work!
# 13  
Old 04-28-2009
The following solution works and places the Config.pm file in two places:
Code:
$HOME/.cpan/CPAN
/usr/local/lib/perl5/5.8.8/CPAN/

The directories are created in a script, in case they do not exist.
Forum members testing this might want to indicate which of the two locations actually makes the difference.

Last edited by figaro; 04-28-2009 at 06:19 PM.. Reason: Edited for clarity
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to install CPAN without using yum on Linux?

Hi all, I am on Linux box where CPAN is not working for downloading any perl modules. When I try "perl -MCPAN -e shell" as root as well as a user, I get following error: Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl... (2 Replies)
Discussion started by: pat_pramod
2 Replies

2. Shell Programming and Scripting

Unable to install module using cpan

Hi, I am unable to install module using cpan. It says 407 Proxy Authentication Required I did setup proxy server and given username and password in .bashrc file and apt.conf file. export http_proxy=http://username:password@proxyserver:portno/ However, still unable to install... (1 Reply)
Discussion started by: Anjan1
1 Replies

3. Shell Programming and Scripting

cpan installation

Hi All, I need to install perl module using cpan, so befor that i checked cpan is installed or not . i tried , and got below output.but it is not clear to me. can u plz explain me. I dont know what the exactly cpan is useful. and in below why it is trying to create directory. $ cpan... (2 Replies)
Discussion started by: aish11
2 Replies

4. UNIX for Dummies Questions & Answers

Problem to upgrade CPAN

Hi all, Since yesterday, I'm trying to upgrade CPAN on my Synology sevrer, because I have the next message in CPAN shell : cpan> install cpan CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib... (2 Replies)
Discussion started by: mikael2235
2 Replies

5. Shell Programming and Scripting

Building my own CPAN repository

Hi there , im not sure whether im in the right section, but because im talking about perl, i guess this is the right place :-) I have a whole host (thousands in fact) of Solaris machines that are running different versions of perl with different module sets etc. I wanted to know whether it... (6 Replies)
Discussion started by: rethink
6 Replies

6. Shell Programming and Scripting

Error while trying to install from CPAN

Hi i was trying to install Text::CSV from cpan... it seemed to have downloaded everythign properly but was not able to run the make file... do u have any idea as to why this happened?? Install: ============================= If you install Text::CSV_XS v.0.70, it makes Text::CSV faster. ... (5 Replies)
Discussion started by: VGR
5 Replies

7. Programming

Application crashes in FreeBSD 7.1 while working ok in FreeBSD 6.3

Hello there, My mulithreaded application (which is too large to represent the source code here) is crashing after installing FreeBSD 7.1-RELEASE/amd64. It worked properly on others machines (Dual Cores with 4GB of RAM - FreeBSD 6.2-RELEASE/i386). The current machine has 2x Core 2 Duo... (1 Reply)
Discussion started by: Seenquev
1 Replies

8. Shell Programming and Scripting

CPAN: using only wget to d/l modules?

Is there a way to tell CPAN not to use Net::Ftp and the ftp binary? I want to only use wget to download perl modules. (2 Replies)
Discussion started by: dangral
2 Replies

9. UNIX for Dummies Questions & Answers

CYGWIN/CPAN install of Expect.pm

I am attempting to install a Perl Expect module via the CPAN . CPAN goes through the process but nothing happens, sample perl scripts can not find the Expect Module. CPAN was configured via the Default process " Are you ready for manual configuration? " answered "no". CPAN install seemed to find... (1 Reply)
Discussion started by: white222
1 Replies
Login or Register to Ask a Question