SPUG: Installing modules w/o superuser perms

Thane Williams thane at fastmail.fm
Wed Nov 24 12:22:31 CST 2004

Hello everyone. I hope this question hasn't been done to death.

I know how to install a module locally without superuser permissions. I
don't know how to do it when the module has dependencies that are only
installed locally. I'm trying to install Expect-1.15, which requires a
newer version of IO::Pty than this box has. So I have installed
IO-Tty-1.02 in my personal perl library dir. Now I can't get the Expect
install to recognize that I have it.

I installed IO-Tty with PREFIX=/export/home/thane/perllib

Now I go to the recently untarred Expect module, and do:
perl Makefile.PL PREFIX=/export/home/thane/perllib/

And I get:
Warning: prerequisite IO::Pty 1 not found at
/usr/local/lib/perl5/5.6.1/ExtUtils/MakeMaker.pm line 343.
Warning: prerequisite IO::Tty 1 not found at
/usr/local/lib/perl5/5.6.1/ExtUtils/MakeMaker.pm line 343.
Writing Makefile for Expect

Then I do make, and make test, which returns:
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.1/sun4-solaris -I/usr/local/lib/perl5/5.6.1
IO::Pty version 0.97 required--this is only version 0.01 at
blib/lib/Expect.pm line 22.
BEGIN failed--compilation aborted at blib/lib/Expect.pm line 22.
Compilation failed in require at test.pl line 27.
BEGIN failed--compilation aborted at test.pl line 27.
make: *** [test_dynamic] Error 255

I also tried making a file that contains the following:
PREFIX=/export/home/thane/perllib/ \
INSTALLPRIVLIB=/export/home/thane/perllib/lib/perl5 \
INSTALLSCRIPT=/export/home/thane/perllib/bin \
INSTALLSITELIB=/export/home/thane/perllib/lib/perl5/site_perl \
INSTALLBIN=/export/home/thane/perllib/bin \
INSTALLMAN1DIR=/export/home/thane/perllib/lib/perl5/man \

and doing: perl Makefile.PL `cat file`
This gave the same result.

Any suggestions?

Thank you for your time,
Thane Williams

More information about the spug-list mailing list