Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

CPANPLUS intall and config question

by Anonymous Monk
on Sep 14, 2004 at 13:12 UTC ( [id://390827]=perlquestion: print w/replies, xml ) Need Help??

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

whilist installing CPANPLUS in my home dir on a shared server I got the following warning.

### IMPORTANT ##################################################### Since you chose a custom config file location, do not forget to set the environment variable "PERL5_CPANPLUS_CONFIG" to "/usr/home/user_name/.cpanplus/config" before running 'make' or your config will not be detected! ###################################################################

I opened up ~/.cpanplus/config and it looks like it's an OO module that basiaclly sets a bunch of variables. However, I found no hash key for PERL5_CPANPLUS_CONFIG.

Where then do I set PERL5_CPANPLUS_CONFIG to "/usr/home/user_name/.cpanplus/config"

Any ideas?

Replies are listed 'Best First'.
Re: CPANPLUS intall and config question
by Sidhekin (Priest) on Sep 14, 2004 at 13:29 UTC

    PERL5_CPANPLUS_CONFIG is a shell variable, not a Perl variable. So, set it in your shell:

    # If you are using a Bourne shell: PERL5_CPANPLUS_CONFIG=/usr/home/user_name/.cpanplus/config export PERL5_CPANPLUS_CONFIG # If you are using a C shell: setenv PERL5_CPANPLUS_CONFIG /usr/home/user_name/.cpanplus/config

    print "Just another Perl ${\(trickster and hacker)},"
    The Sidhekin proves Sidhe did it!

Re: CPANPLUS intall and config question
by jbodoni (Monk) on Sep 14, 2004 at 13:31 UTC
    > the environment variable

    That's going to depend on which OS you're using.

    If you'll tell us your OS, we'll tell you how to set the environment variable.

    I run Windows (yes, I know...), but I think the command for Linux would be "export PERL5_CPANPLUS_CONFIG = /usr/home/user_name/.cpanplus/config" prior to running CPANPLUS.

    John

Re: CPANPLUS intall and config question
by Anonymous Monk on Sep 14, 2004 at 13:39 UTC
    I'm on BSD and for my shell
    %echo $SHELL
    /bin/csh
Re: CPANPLUS intall and config question
by Anonymous Monk on Sep 14, 2004 at 13:52 UTC
    ~sigh~

    I guess this isn't gonna work anyway...

    Stop in /usr/home/user_name/.cpanplus/5.8.3/build/HTML-Template-2.7. MAKE INSTALL failed! - No such file or directory in CPANPLUS::Internal +s::Make::_make at Tue Sep 14 09:49:33 2004 at /usr/local/lib/perl5/si +te_perl/5.8.0/CPANPLUS/Internals/Make.pm line 473 An error occurred handling module HTML::Template in CPANPLUS::Internal +s::Install::_install_module at Tue Sep 14 09:49:33 2004 at /usr/local +/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Install.pm line 156 Installing failed! in CPANPLUS::Backend::install at Tue Sep 14 09:49: +33 2004 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Backend.pm l +ine 228 Error installing HTML::Template Problem installing one or more modules CPAN Terminal>

    it dies like this for any module I try to install

      Turn up verbosity. You probably messed up your permissions.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found