[thelist] perl - installing modules with restricted permissions

Dean Mah dmah at shaw.ca
Wed Sep 12 17:54:30 CDT 2001

In UNIX, when you create the Makefile you can pass it the prefix
argument as the root directory of the install.  For example,

   perl Makefile.PL prefix=/tmp
   make test
   make install

The 'make install' should start installing in /tmp.


Sam-I-Am writes:

> I want to use Image::Size, but it is not available on my server. 
> I can't seem to use CPAN to install the module - not sufficient
> permissions to write to the directories it wants to write to, but there
> should be no reason why I can't install it under my home directory, and
> then push this into @INC right?
> Can someone tell me how to do this? I can't see where I would specify
> what directory to take as root, or how I would change the Makefile.pl,
> or anything else I could do short of rebuilding the tree I have locally
> and ftp-ing it. (and it uses autoloader so there's files all over the
> place, it's not just a matter of the Size.pm file)
> My other option is obviously to request Image::Size from my admin, which
> if I end up relying on it I may do, but meantime....
> anyhow, I may be missing a profoundly obvious solution, or if you have
> an idea what I'm talking about, please let me know. I'm on Win32 here
> (test, dev), and linux there - the production web server. 

More information about the thelist mailing list