Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: CPAN Useless on OS X

by HalNineThousand (Beadle)
on Oct 15, 2013 at 08:00 UTC ( [id://1058260]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CPAN Useless on OS X
in thread CPAN Useless on OS X

I know Mac isn't designed to use su, but I did set up a password for root and there are times I use su instead of sudo. After seeing your question, I tried it from my account with sudo and it referenced using the config files from my home directory, rather than root's home directory. It went through the configuration process and then I tried installing Mac::Applescript and it installed without any problem. (This was a module I could not install before.)

So it seems that running it under su yields a totally different behavior. But why, if the .cpan directory was deleted in /var/root, does it not try to reconfigure when run by root, as opposed to under my account with sudo?

I can go back to using su and post some examples of it not working if that helps, but this seems to be what fixes it.

Replies are listed 'Best First'.
Re^5: CPAN Useless on OS X
by hdb (Monsignor) on Oct 15, 2013 at 08:11 UTC

    Apart from Marto's advice not to mess with the system's Perl, have you used su - to really become root?

      Yes. If I'm going to be doing a number of commands, I use it, then log out.

        Did you notice the hyphen in hdb's message? It was not strictly for decoration.

        use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found