That's strange. I ran CPAN with "sudo perl -MCPAN etc etc" and everything worked fine. But here's another question: why did it work w/ "sudo" but not as root (su)?

--jm

PS. Thanks Tommy

On Jun 8, 2005, at 5:01 PM, Tommy Nordgren wrote:


Jun 8, 2005 kl. 10:14 PM skrev John Mercer:


Hi all,

CPAN is being a pain in the ass, and I don't know what the problem is. Here's an error message when I run "install Bundle::XML".

Can't exec "/usr/bin": Permission denied at /System/Library/Perl/ 5.8.6/darwin-thread-multi-2level/IO/File.pm line 176, <FIN> line 1. Could not pipe[/usr/bin --decompress --stdout /var/root/.cpan/ sources/authors/01mailrc.txt.gz |]: Permission denied at /System/ Library/Perl/5.8.6/CPAN.pm line 5727, <FIN> line 1.

When I try to run "install XML::XPath" I get about 20 repetitions of

Subroutine AUTOLOAD redefined at /sw/lib/perl5/5.8.6/darwin-thread- multi-2level/Compress/Zlib.pm line 84, <FIN> line 2

Regarding the first error, I don't see how I can have a permissions error when I'm running CPAN as the root user. Root has--I checked--read, write, execute permissions in that directory (/System/Library/etc, etc). Regarding the second error, I have no idea what that's about. Could fink have somehow messed up my perl installation.

In case this helps, I'm running Perl 5.8.6 under OSX 10.4 on Macmini. I'm running all the install scripts as root.



Are you sure that you are running as root, and not merely as administrator? Even logging in as the administrator don't give you write access to files and directories owned by the account root. You must explicitly prefix the commands with 'sudo',
and then provide your administrator password.


Any help would really be appreciated. Thanks.

--John M





Reply via email to