I thought CPAN inherited the PERL5LIB as it's install location. If this is not the case on of the configuration parameters given to CPAN is something like "Additional options for Makefile" which you can set to include a directive such as "PREFIX=/path/to/lib/dir" that will then get passed to the make command so that the module will be installed in the proper location.

At the cpan prompt you can type h for list of commands, then you want 'o conf' and then set the 'makepl_arg' as described above.

http://danconia.org

Octavian Rasnita wrote:
But wouldn't this command try to install that module in the default
location?
How can I specify the right path where I want to install the module?

Will the CPAN module ask me this each time?

Thank you.

Teddy,
Teddy's Center: http://teddy.fcc.ro/
Email: [EMAIL PROTECTED]

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Beginners-CGI List" <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 4:52 PM
Subject: RE: ISP won't install Perl modules



------------------------------------------------
On Fri, 17 Jan 2003 15:18:42 +0100, Rene Verharen
<[EMAIL PROTECTED]> wrote:


Hi all,

My ISP won't install some Perl modules I want to use (Email::Valid and
Mail::Address).
Is there a way to install these modules in some directory I have access to
so I'll be able to use them ?



You didn't state whether you can login at a terminal prompt, so I will
assume so, but this isn't necessary either. At a terminal you should be able
to set PERL5LIB environment variable in your shell to point to whatever
directory you wish the modules to live under, for instance HOME/lib where
HOME is your home directory, then just run perl -MCPAN -e shell and install
as normal. Then in your scripts you will have to add a 'use lib' line,
similar to:

use lib '/HOME/lib';

Before you 'use' any of the modules in that directory.

This is the easiest way, if you must install by hand then you will most
likely need to pass a PREFIX=/path/to/lib/dir directive to perl Makefile.pl,
and if you don't have a terminal, then you should be able to install a local
version where you are doing your development and then just recursively
upload the directory, but this is dangerous as you must make sure the two
environments match before installing.

HTH,

http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to