jeffpflueger has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to instal a CPAN module named "imager" on a virtual server, but do not have the appropriate permissions to install the module components in the directories that Makefile.PL tries to.

I have attempted various commands: perl Makefile.PL LIB=/path I want, perl Makefile.PL PREFIX=/path I want, and even Makefile.PL LIB=/path I want PREFIX=/path I want. These commands were suggested in a thread here titled "CPAN modules And Virtual Servers.", and also in various books.

I have looked through perlman:perlmodinstall posted at perlmonks as well and still haven't found my solution.

I may be blowing it on the path I enter for these commands....but I'm not getting any sort of invalid directory error with the different paths, Makefile just does what it always does and tries to install to directories I have no permission for....I have tried both absolute paths and paths relative to where the Makefile.PL is.

The virtual server is an Apache linux server with perl version is 5.6.0

Any help on how I can do this would be greatly appreciated!

Thanks!

  • Comment on Installing CPAN Perl modules on a virtual server (revisted)

Replies are listed 'Best First'.
Re: Installing CPAN Perl modules on a virtual server (revisted)
by arturo (Vicar) on Mar 01, 2001 at 22:53 UTC

    Well, the fact that it's a virtual server (which I usually call a "virtual host") shouldn't matter much for installation purposes. You will, of course, need to install the modules on a filesystem where the machine running the apache process can see them, but other than that the virtual host shouldn't cause you trouble here (because the virtual host part of things is handled by Apache, not the OS).

    What part of the installation is failing? In addition to installing the actual scripts, make install will install man pages, for example. perl Makefile.PL LIB=/path only changes the installation path for the executable parts of a module installation.

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor

      /usr/include doesnt exist or is unaccessible - removed. /usr/local/include do esnt exist or is unaccessible - removed. /usr/local/include/freetype doesnt exi st or is unaccessible - removed. /usr/local/lib doesnt exist or is unaccessible - removed. /lib doesnt exist or is unaccessible - removed. /usr/lib doesnt ex ist or is unaccessible - removed. done. TT-fonts: includes found - libraries not found T1-fonts: includes not found - libraries not found tiff: includes not found - libraries not found png: includes not found - libraries not found ungif: includes not found - libraries not found gif: includes not found - libraries not found jpeg: includes not found - libraries not found MakeMaker (v5.45) Writing Makefile for Imager::plugins Writing Makefile for Imager

      That's the error I get....when I run Makefile.PL, with LIB=/path or whatever.

      Thanks for your input!

      You know what's going on?

        To paraphrase merlyn: Perl and Apache, considered by themselves, are the least of your problems. It sounds like the system you're trying to install modules onto doesn't make the libraries necessary to compile various things available to you.

        Philosophy can be made out of anything. Or less -- Jerry A. Fodor