Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I just started to use perlbrew on an Ubuntu Precise installation and I guess I'm doing something wrong but can't figure it out.

I want to install my perls into a nfs mounted directory /software/lib/perl5/perlbrew
I set PERLBREW_ROOT to that directory and the two perl versions I installed so far have both correctly been installed there.
I also added export PERLBREW_ROOT=/software/lib/perl5/perlbrew to my .bashrc and I can confirm in a terminal that this is indeed set correctly.
In addition, perlbrew info also confirms that PERLBREW_ROOT is set to the above directory.

However, when I install a module like this

perlbrew exec --with 5.14.2 cpanm Module::Build
It is successfully installed in my home directory under ${HOME}/lib/perl5 and I can't figure out why. Any clues what I might be doing wrong?
I can also confirm that the cpanm that is used appears to be the one installed with perlbrew (it's in the perlbrew path given above) Thanks for your help!

UPDATE
======
Turns out (thanks Corion) that it was an old .modulebuildrc file that had set the install_base to my home dir, so all modules based on Module::Build ended up there.


In reply to perlbrew seems to ignore PERLBREW_ROOT by tospo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-23 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found