Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

trying to configure CPAN for non-root use

by danmcb (Monk)
on Sep 18, 2007 at 15:09 UTC ( [id://639666]=perlquestion: print w/replies, xml ) Need Help??

danmcb has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I am trying to set this up on a system with perl 5.8.5, and getting quite close, but having one problem : cpan is installing to ~/lib/perl5/site_perl, @INC contains ~/lib/perl5/5.8.5

I am following these instructions : http://sial.org/howto/perl/life-with-cpan/non-root/

What must I do to get @INC and CPAN to see eye to eye? Why determines when things get installed to a version specific path, or the misterious "site_perl"? (and what is site_perl actually for? how should it work?)

thanks!

(update : I have it working by simply forcing the PERL5LIB to see site_perl in .bashrc - but I'd still like to know what *should* be happening. But at least I can install now ... )

Replies are listed 'Best First'.
Re: trying to configure CPAN for non-root use
by Hercynium (Hermit) on Sep 18, 2007 at 17:37 UTC
    Three questions:

    What does which perl show you?

    What does `which perl` -V show you?

    What does o conf show you (from the cpan shell)?

    Bonus! What is the approximate air-speed velocity of an unladen swallow? :)

      which perl

      /usr/bin/perl

      `which perl` -V

      Summary of my perl5 (revision 5 version 8 subversion 5) configuration: Platform: osname=linux, osvers=2.6.9-42.elsmp, archname=i386-linux-thread-mu +lti uname='linux build-i386 2.6.9-42.elsmp #1 smp sat aug 12 09:39:11 +cdt 2006 i686 i686 i386 gnulinux ' config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 -mtune= +pentium4 -Dversion=5.8.5 -Dmyhostname=localhost -Dperladmin=root@loca +lhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/u +sr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duses +hrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semc +tl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm + -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpage +r=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 +' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-st +rict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_ +OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-alias +ing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-3)', gccos +andvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread +-lc perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.s +o gnulibc_version='2.3.4' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E - +Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_ +FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Aug 12 2006 17:09:08 %ENV: PERL5LIB=":/home/danielmcbrearty/lib/perl5/site_perl" @INC: /home/danielmcbrearty/lib/perl5/site_perl/5.8.5/i386-linux-thread- +multi /home/danielmcbrearty/lib/perl5/site_perl/5.8.5 /home/danielmcbrearty/lib/perl5/site_perl/i386-linux-thread-multi /home/danielmcbrearty/lib/perl5/site_perl/5.8.4 /home/danielmcbrearty/lib/perl5/site_perl/5.8.3 /home/danielmcbrearty/lib/perl5/site_perl/5.8.2 /home/danielmcbrearty/lib/perl5/site_perl/5.8.1 /home/danielmcbrearty/lib/perl5/site_perl/5.8.0 /home/danielmcbrearty/lib/perl5/site_perl /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . </pre> <pre> cpan> o conf CPAN::Config options and /home/danielmcbrearty/.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 /home/danielmcbrearty/.cpan/build cache_metadata 1 cpan_home /home/danielmcbrearty/.cpan dontload_hash ftp /usr/kerberos/bin/ftp ftp_proxy ******************** getcwd cwd gpg /usr/bin/gpg gzip /bin/gzip histfile /home/danielmcbrearty/.cpan/histfile histsize 100 http_proxy ********************** inactivity_timeout 0 index_expire 1 inhibit_startup_message 0 keep_source_where /home/danielmcbrearty/.cpan/sources links /usr/bin/links make /usr/bin/make make_arg make_install_arg makepl_arg PREFIX=~/ SITELIBEXP=~/lib/perl5 LIB=~/lib/perl5/lib INSTALLMAN1DIR=~/share/man/man1 INSTALLMAN3DIR=~/share/man/man3 INSTALLSITEMAN1DIR=~/share/man/man1 INSTALLSITEMAN3DIR=~/share/man/man3 ncftp ncftpget no_proxy ********************* pager /usr/bin/less prerequisites_policy ask proxy_pass ********* proxy_user ********* scan_cache atstart shell /bin/bash tar /bin/tar term_is_latin 1 unzip /usr/bin/unzip urllist ftp://cpan.mirrors.skynet.be/pub/CPAN ftp://ftp.belnet.be/packages/cpan/ ftp://ftp.easynet.be/pub/CPAN/ ftp://ftp.kulnet.kuleuven.ac.be/pub/mirror/CPAN/ wget /usr/bin/wget

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://639666]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-03-28 12:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found