Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Installing CPANPLUS as non-root on Mac OS X 10.3

by nefertari (Chaplain)
on Nov 14, 2003 at 15:22 UTC ( #307065=perlquestion: print w/replies, xml ) Need Help??

nefertari has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I would like to install the CPANPLUS module for my usual account on my Mac. The OS is 10.3.1 with Perl 5.8.1-RC3. After unpacking I tried perl Makefile.PL and also perl Makefile.PL LIB=~/Library/lib.

In both cases I run into some permission issues when running make, especially so funny ones like:

*** You are not allowed to write to the directory '/Users/judithdo/.cp +anplus'; the installation may fail due to insufficient permissions.
(judithdo is my account!) and later on errors of the following type:

MAKE INSTALL failed! - in CPANPLUS::Internals::Make::_make at Thu Nov + 13 23:35:27 2003 at /Users/judithdo/CPANPLUS-0.045/lib/CPANPLUS/Inte +rnals/ line 513 An error occurred handling module Compress::Zlib in CPANPLUS::Internal +s::Install::_install_module at Thu Nov 13 23:35:27 2003 at /Users/jud +ithdo/CPANPLUS-0.045/lib/CPANPLUS/Internals/ line 170 Installing Compress::Zlib failed! in CPANPLUS::Backend::install at Thu + Nov 13 23:35:27 2003 at /Users/judithdo/CPANPLUS-0.045/lib/CPANPLUS/ line 254

Since it is my own computer, I could work as root, but prefer not too, because of too little experience. My main account is also not in the sudoers group.

Could you please tell me the right options, so that it works?



update: I read the readme, looked at the module install guides here around, asked google (and and still had no luck, but perhaps I used the wrong terms.

Replies are listed 'Best First'.
Re: Installing CPANPLUS as non-root on Mac OS X 10.3
by Nkuvu (Priest) on Nov 14, 2003 at 17:53 UTC

    First thing I'd do is to check permissions on the .cpanplus directory. If those look OK to you I'd head over to A Guide to Installing Modules and do some quick reading.

      Concerning the permissions:
      ls -al gives: drwxr-xr-x  13 judithdo  judithdo       442 13 Nov 23:35 .cpanplus, so I should have no problem.

      Concerning the link:
      I read this (and the readme from CPANPLUS, and all the other stuff I could think of (google, and am still stuck.

      I think I should have included this in the original question and will do so now.

Re: Installing CPANPLUS as non-root on Mac OS X 10.3
by nefertari (Chaplain) on Nov 15, 2003 at 09:03 UTC

    Replying to myself ;-)
    I switched to my admin account, set the cpanplus-directory to /Users/Shared/cpanplus, had some of the same trouble (permissions etc.), but there a chmod -R a+w was nearly enough. HTML::HeadParser still did not install (the install hung after the question whether to decode Unicode-entities or not), I installed afterwards from the CPANPLUS/shell, there it worked. It seems that I have to install the modules as the admin-user.

    If someone has a solution for the original problem: It is still appreciated.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://307065]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2022-01-28 12:43 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (73 votes). Check out past polls.