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

Hello Monks,
I have a question. I installed the GD.pm module using PPM.
Can all the files that installed onto my hard drive be xfered to the cgi-local directory on my remote server if there kept in tact and confiquration maintained?

Is it possible to install a module using PPM onto my remote server not using a command line?

Installing D:\Perl\site\lib\auto\GD\GD.bs
Installing D:\Perl\site\lib\auto\GD\GD.dll
Installing D:\Perl\site\lib\auto\GD\GD.exp
Installing D:\Perl\site\lib\auto\GD\GD.lib
Installing D:\Perl\html\site\lib\GD.html
Installing D:\Perl\site\lib\GD.pm
Installing D:\Perl\site\lib\qd.pl
Installing D:\Perl\site\lib\auto\GD\autosplit.ix
Writing D:\Perl\site\lib\auto\GD\.packlistAfter installing


Thanks,
Cal
  • Comment on Installing modules via PPM (Was: Software errors:)

Replies are listed 'Best First'.
Re: Installing modules via PPM (Was: Software errors:)
by grantm (Parson) on Nov 02, 2002 at 01:27 UTC

    If the remote server is the same architecture (eg: both Win32 on Intel) then yes, the files could work on the remote machine. You would need to put them in a 'lib' directory and add it to @INC in your scripts (eg: use lib 'E:/my/new/lib'). If you have write permissions on the remote machine then yes, you can install modules without a command line.

      Hello,

      OK so I have :
      use lib qw(/u/web/smpsvc/cgi-local/lib/); use GD;

      Not sure if this is correct but now I get these errors:
      Software error: GD object version 1.18 does not match $GD::VERSION 1.27 at /usr/local/ +lib/perl56/5.6.0/irix-n32-mips3/DynaLoader.pm line 219. For help, please send mail to the webmaster (webmaster@smpsv.com), giv +ing this error message and the time and date of the error. Content-ty +pe: text/html Software error: [Fri Nov 1 20:36:41 2002] DynaLoader.pm: GD object version 1.18 does n +ot match $GD::VERSION 1.27 at /usr/local/lib/perl56/5.6.0/irix-n32-mi +ps3/DynaLoader.pm line 219. Compilation failed in require at /usr/loc +al/lib/perl56/5.6.0/irix-n32-mips3/DynaLoader.pm line 219. For help, please send mail to the webmaster (webmaster@smpsv.com), giv +ing this error message and the time and date of the error. Content-ty +pe: text/html Software error: [Fri Nov 1 20:36:41 2002] GD.pm: [Fri Nov 1 20:36:41 2002] DynaLoader. +pm: GD object version 1.18 does not match $GD::VERSION 1.27 at /usr/l +ocal/lib/perl56/5.6.0/irix-n32-mips3/DynaLoader.pm line 219. [Fri Nov + 1 20:36:41 2002] GD.pm: Compilation failed in require at /usr/local/ +lib/perl56/5.6.0/irix-n32-mips3/DynaLoader.pm line 219. BEGIN failed- +-compilation aborted at /u/web/smpsvc/cgi-local/thumbnail.cgi line 18 +.
      Thanks

        Your server is running IRIX not Win32 - you cannot load Win32 binaries onto a Unix box and expect them to run.

        The only way forward is to ask someone with admin priviliges on the server to install libgd and GD.pm

      Thanks
      I'll give it a try.

      Cal