Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Module::Build installation while using local::lib

by szabgab (Priest)
on Jun 02, 2011 at 07:33 UTC ( #907762=perlquestion: print w/ replies, xml ) Need Help??
szabgab has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Module::Build while using local::lib. Unfortunately it wants to install into /usr/bin and not in my private ~/perl5/bin directory Why and how can it be fixed?
t/xs.t ......................... ok All tests successful. Files=48, Tests=1149, 253 wallclock secs ( 0.71 usr 0.13 sys + 146.62 + cusr 101.71 csys = 249.17 CPU) Result: PASS /home/gabor/work/perl/trunk/cpan/Module-Build-0.3800/. ./Build test -- OK Directory '/home/gabor/work/perl/trunk/cpan/Module-Build-0.3800/.' not + below /home/gabor/.cpan/build, will not store persistent state Running Build install Prepending /home/gabor/work/perl/trunk/cpan/Module-Build-0.3800/./blib +/arch /home/gabor/work/perl/trunk/cpan/Module-Build-0.3800/./blib/lib + to PERL5LIB for 'install' WARNING: Can't find resource file '/home/gabor/perl5/.modulebuildrc' d +efined in environment. No options loaded Building Module-Build !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/bin' Do not have write permissions on '/usr/bin' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at lib/Module/Build/Base.pm line 3569 /home/gabor/work/perl/trunk/cpan/Module-Build-0.3800/. ./Build install -- NOT OK ---- You may have to su to root to install the package (Or you may want to run something like o conf make_install_make_command 'sudo make' to raise your permissions.Directory '/home/gabor/work/perl/trunk/cpa +n/Module-Build-0.3800/.' not below /home/gabor/.cpan/build, will not +store persistent state
Using perl 5.10.0 that comes with this SUSE installation

Comment on Module::Build installation while using local::lib
Download Code
Replies are listed 'Best First'.
Re: Module::Build installation while using local::lib
by Anonymous Monk on Jun 02, 2011 at 07:41 UTC
    Why and how can it be fixed?

    The local lib documentation shows you the magic

    # Just print out useful shell commands $ perl -Mlocal::lib export PERL_MB_OPT='--install_base /home/username/perl5' export PERL_MM_OPT='INSTALL_BASE=/home/username/perl5' export PERL5LIB='/home/username/perl5/lib/perl5/i386-linux:/home/use +rname/perl5/lib/perl5' export PATH="/home/username/perl5/bin:$PATH"
    Try this direct approach instead. Also try running Build.PL... manually
      Oh, and is turns out I was not even using local::lib, that's why I did not have the above already configured.

      Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2015-07-30 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls