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

Hello: I am a newbie to perl - well I know how to install scripts and make them run on my host. But that is about it! Now I have a problem - I changed hosts and went to load my site and all the cgi-scripts. Everything is fine EXCEPT the LWP:simple.pm module is not installed on my server/host. And one of my scripts requires this. I contacted them (Host) to see if they would install it for me and - basically they said do it yourself or hire a professional. Now I do not have root access and I can only use FTP. Is there a way in lamens terms to do this? They are running Perl Version 5.006 which I have a list of the modules and NO the one I need is not there. And the Host is leaving it up to me to get it there. HELP! I need to get this done. Thank You, Laurie

Edit kudra, 2002-08-18 Changed title

  • Comment on Really need help installing module on remote host via FTP

Replies are listed 'Best First'.
Re: Really need help!
by DamnDirtyApe (Curate) on Aug 17, 2002 at 07:12 UTC

    This is discussed in two places: first, see A Guide to Installing Modules. Second, read this, section 5 from the FAQ for the CPAN modules:

    5) I am not root, how can I install a module in a per­ sonal directory? You will most probably like something like this: o conf makepl_arg "LIB=~/myperl/lib \ INSTALLMAN1DIR=~/myperl/man/man1 \ INSTALLMAN3DIR=~/myperl/man/man3" install Sybase::Sybperl You can make this setting permanent like all "o conf" settings with "o conf commit". You will have to add ~/myperl/man to the MANPATH envi­ ronment variable and also tell your perl programs to look into ~/myperl/lib, e.g. by including use lib "$ENV{HOME}/myperl/lib"; or setting the PERL5LIB environment variable. Another thing you should bear in mind is that the UNINST parameter should never be set if you are not root.

    _______________
    DamnDirtyApe
    Those who know that they are profound strive for clarity. Those who
    would like to seem profound to the crowd strive for obscurity.
                --Friedrich Nietzsche