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

Monks,

I installed my first module (done locally because I don't have root access) on my Apache server. It went smoothly except the installation path for the module is as follows: xxx/xxx/xxx/cgi-bin/modules/lib/perl5/site_perl/5.005/HTML/Template.pm This isn't what I wanted. I wanted to install it directly into the 'modules' directory. Instead, I got all this much longer unwanted path with the '/lib/perl5/site_perl/5.005' in the middle. I'm curious to know why my server added this extra long path and is there be anything I can do with future module installations to get them to install in the 'modules' directory?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;

P.S. Thanks to everyone who has been so helpful to me over the past few posts. This community has been absolutely great to me and so I donated a few more bucks to PM.

Replies are listed 'Best First'.
Re: Directory path for local module install
by Asim (Hermit) on May 24, 2001 at 22:14 UTC
    Perl has a list of directories where it looks for modules. Most likely, xxx/xxx/xxx/cgi-bin/modules is not one of them; the path you've listed looks fairly standard to me. Moving it will cause it to fail in finding the module, unless you do some tricky stuff. You can do use lib <path to module>, along with a change to the Makefile.PL call, to make it happen, but it's a good bit of work if you don't need it. See the page How do I keep my own module/library directory? for directions.

    ----Asim, known to some as Woodrow.