Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Your skill will accomplish
what the force of many cannot

Re: Is it possible to use modules without installing them?

by zentara (Archbishop)
on Aug 31, 2002 at 16:36 UTC ( #194349=note: print w/ replies, xml ) Need Help??

in reply to Is it possible to use modules without installing them?

 I havn't tried it yet, but it may be possible to put the GD package 
on your remote machine if they let you compile. You should
be able to ssh to your homedir and do it. Here is an excerpt from
the mod-perl-in-homedirs.html.

8.1. Installing Perl Modules into a Directory of Choice

   Since without superuser permissions you aren't allowed to install
   modules into system directories like /usr/lib/perl5, you need to find
   out how to install the modules under your home directory. It's easy.

   First you have to decide where to install the modules. The simplest
   approach is to simulate the portion of the / file system relevant to
   Perl under your home directory. Actually we need only two directories:


   We don't have to create them, since that will be done automatically
   when the first module is installed. 99% of the files will go into the
   lib directory. Occasionally, when some module distribution comes with
   Perl scripts, these will go into the bin directory. This directory
   will be created if it doesn't exist.

   Let's install the package, which includes a few other CGI::*
   modules. As usual, download the package from the CPAN repository,
   unpack it and chdir to the newly-created directory.

   Now do a standard perl Makefile.PL to prepare a Makefile, but this
   time tell MakeMaker to use your Perl installation directories instead
   of the defaults.

% perl Makefile.PL PREFIX=/home/stas

   PREFIX=/home/stas is the only part of the installation process which
   is different from usual. Note that if you don't like how MakeMaker
   chooses the rest of the directories, or if you are using an older
   version of it which requires an explicit declaration of all the target
   directories, you should do this:

% perl Makefile.PL PREFIX=/home/stas \
  INSTALLPRIVLIB=/home/stas/lib/perl5 \
  INSTALLSCRIPT=/home/stas/bin \
  INSTALLSITELIB=/home/stas/lib/perl5/site_perl \
  INSTALLBIN=/home/stas/bin \
  INSTALLMAN1DIR=/home/stas/lib/perl5/man  \

   The rest is as usual:

% make
% make test
% make install

Comment on Re: Is it possible to use modules without installing them?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194349]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (17)
As of 2014-04-24 12:17 GMT
Find Nodes?
    Voting Booth?

    April first is:

    Results (565 votes), past polls