Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: CPAN Useless on OS X

by hdb (Monsignor)
on Oct 15, 2013 at 07:48 UTC ( [id://1058253]=note: print w/replies, xml ) Need Help??


in reply to CPAN Useless on OS X

You are running cpan under sudo, right?

Replies are listed 'Best First'.
Re^2: CPAN Useless on OS X
by HalNineThousand (Beadle) on Oct 15, 2013 at 07:51 UTC
    I used su.

      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.

Log In?
Username:
Password:

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

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

    No recent polls found