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

Re^2: Funny Little Permissions Issue on Ubuntu

by przemo (Scribe)
on Apr 22, 2009 at 22:00 UTC ( [id://759422]=note: print w/replies, xml ) Need Help??


in reply to Re: Funny Little Permissions Issue on Ubuntu
in thread SOLVED: Funny Little Permissions Issue on Ubuntu

No, I do not see /root/perl in @INC whether I run as root or as my own account (even after fiddling with PERLLIB).

Do you mean that the following two commands give the same results in respect to @INC? They shouldn't.

$ PERL5LIB= perl -V $ PERL5LIB=/home/me/perl/lib/perl5 perl -V
when you say, "set the following options in the CPAN", is that code I should be adding/tweaking in CPAN.pm, or is there some other configuration file/setting I need to mess with?

Those were the commands to put at CPAN's shell prompt. I forgot to mention that you should issue o conf commit after that, but cpan should inform you about that.

Alternatively, you can modify settings directly in ~/.cpan/CPAN/MyConfig.pm. It's safe as long as you just play with it as a casual user. This is a big plus in this approach: when experimenting with local installation dir, if you break something, just remove destination folder (~/perl in my example) and ~/.cpan and you have clean environment. You loose all your settings, but hey, this is how experimenting works. :)

Good luck!

Replies are listed 'Best First'.
Re^3: Funny Little Permissions Issue on Ubuntu
by BJ_Covert_Action (Beadle) on Apr 28, 2009 at 17:26 UTC
    Well I managed to get the issue ironed out by adding some lines into the MyConfig.pm. I gleaned the syntax from reading what was already there and using the variables you mentioned setting inside the CPAN shell. I would post more details but I am not on the same machine right now for reference.

    I think I might try working with a second perl distribution when I get around to it as well, it would be good to learn how to do that.

    Thanks for the help so far, I will try to post details of what I changed later in case any other users want to look at this thread for help/reference.

    Cheers.

    P.S. Regarding the @INC output, I will address that when I get home, I haven't run both of those commands to know.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found