Local install of PERL modules

Web hosting discussion, programming, and shared and dedicated servers.
3 posts Page 1 of 1
by scjacl » Sat Feb 25, 2012 11:03 am
Greetings,

Trying to install some PERL Modules locally per the instructions found here:

http://www.perlmonks.org/?node=128077#permission

However, when I run this command:

perl Makefile.PL PREFIX=~/lib LIB=~/lib

I get this error:

Can't locate object method "catfile" via package "File::Spec" (perhaps you forgot to load "File::Spec"?) at Makefile.PL line 152.

I use quite a few modules and really would like to be able to install them locally. Any clues on how to proceed?
by augie » Mon Feb 27, 2012 5:26 pm
Are you trying to do this on our local shell server ( shell.sonic.net ) or some other host?

Either way, make sure you can load the File::Spec module it is complaining about:

perl -MFile::Spec -e 'print "hello\n"'

Should print "hello" and not complain.
by scjacl » Mon Feb 27, 2012 6:01 pm
I changed the command to:

perl -MFile::Spec Makefile.PL PREFIX=~/lib LIB=~/lib

and it looks like it will be working.

Thanks.
3 posts Page 1 of 1

Who is online

In total there are 12 users online :: 1 registered, 0 hidden and 11 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: Google [Bot] and 11 guests