Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: CPAN Useless on OS X

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


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

I used su.

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

    Can you post some of the typical errors you get? Otherwise, it is difficult to guess what the problems might be.

      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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-26 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found