Forum Moderators: phranque

Message Too Old, No Replies

.CPAN Module Locked (Perl Configuration)

Trying to configure Perl Modules.

         

asmith

11:49 pm on Sep 1, 2004 (gmt 0)

10+ Year Member



I posted a question in the following thread but didn't get an answer so thought i could post here.

[webmasterworld.com...]

I am trying to run a perl script from my mac os computer, but when i access the script it gives me the following error:

Can't locate URI.pm in @INC (@INC contains: libwww /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/
darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network
/Library/Perl .) at (eval 3) line 3.

So i ran some searches on google and found the following to run in the terminal which told me the permissions were wrong in the .cpan folder:

Your configuration suggests that CPAN.pm should use a working directory of
/Users/asmith/.cpan
Unfortunately we could not create the lock file
/Users/asmith/.cpan/.lock
due to permission problems.

Please make sure that the configuration variable
$CPAN::Config->{cpan_home}
points to a directory where you can write a .lock file. You can set this variable in either
/System/Library/Perl/5.8.1/CPAN/Config.pm
or
/Users/asmith/.cpan/CPAN/MyConfig.pm

Could not open >/Users/asmith/.cpan/.lock: Permission denied

So i opened up transmit and tried to change the persmissions of the folder but it wouldn't let me. I also tried changing the $CPAN variable to a folder that can be written to but i am not sure which one will work. Which brought me to this website. I hope someone can help me or at least point me in the right direction so i can get this perl script to run.

Thanks,

- Andy