Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Using uninstalled modules

by Anonymous Monk
on Sep 03, 2000 at 19:22 UTC ( [id://30925]=perlquestion: print w/replies, xml ) Need Help??

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

The server of my host doesn't have a module installed which I require. Is there a way in which I can upload the module myself into my directory and make my script work? i.e. by changing paths or other variables... Thanx in advance.

Replies are listed 'Best First'.
Re: Using uninstalled modules
by PotPieMan (Hermit) on Sep 03, 2000 at 20:49 UTC
    From the libnet documentation, as an example:
    If you want to install a private copy of libnet in your home directory, then you should try to produce the initial Makefile with something like this command: perl Makefile.PL PREFIX=~/perl

    This will install libnet in a directory called perl in your home directory.

    -ppm

Re: Using uninstalled modules
by chromatic (Archbishop) on Sep 03, 2000 at 20:53 UTC
    I had to install Template-Toolkit on an NT machine a few weeks ago. There's no ppm bundle for it, but I was able to download the tarball from the CPAN, unbundle it, and just put the .pm files in a directory of my choosing.

    With a simple use lib "e:/perl/extralib/"; statement, things just worked.

    This works on modules that don't have XS components -- that is, they're written in straight Perl that doesn't have C or other code that needs to be compiled. Your mileage may vary.

Re: Using uninstalled modules
by cianoz (Friar) on Sep 04, 2000 at 18:07 UTC
    The first question is: Do you have a shell account on the remote server?
    if so you can bould the module with perl Makefile.PL PREFIX=/where/you/can/put/it
    as someone other suggested
    I you just have an ftp account you should build and install on your machine, setting PREFIX accordingly and then ftp the whole directory tree on the server.

    if you are lucky (eg. the module is a pure perl one or you compile it on the same architecture) it should work (provided you put

    use lib "/directory/where/module/is";
    before
    use Your::Brand::NewModule;
    )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://30925]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found