GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   server admins (https://gfy.com/showthread.php?t=77924)

kenny 09-18-2002 05:49 PM

server admins
 
I recently purchased a script "econfirmpro" after I installed it and set the permissions I get the following syntax when trying to execute the progam by the command line....


[root@38-241 confirm]# ./econfirmpro.cgi
Can't locate LWP.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./econfirmpro.cgi line 21.
BEGIN failed--compilation aborted at ./econfirmpro.cgi line 21.
[root@38-241 confirm]#


Now It is to my understanding the wwwlib perl modules where not installed. I spoken with my host several times over the past couple days and they still havent gotten them installed.
How complicated is it to install these modules and correct this error? I really havent a clue, but I am thinking of attempting to do it myself

ServerGenius 09-18-2002 05:56 PM

It's VERY simple....just download the modules untar

tar -xfz file.tar.gz read the INSTALL file you can't go wrong with
it.....just give it a go!

DynaMite :thumbsup

frankfortuna 09-18-2002 06:01 PM

Since it appears you have root access to the perl installation, it's a piece of cake. If you do not have root access, you can amend your script to look for the libraries in an alternate location. Example:

#!/usr/bin/perl -wI/usr/home/your/perl

kenny 09-18-2002 06:07 PM

I really have no idea what I am doing.

[root@38-241]# tar -xfz libwww-perl-5.10.tar.gz
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[root@38-241]#


Thanks anyways guys, I am gonna talk to my host again tommorrow :mad:

NetRodent 09-18-2002 06:13 PM

Its even easier to install perl modules with the CPAN shell. Try typing 'cpan' at the command prompt. If that doesn't work, run the following script:

Code:

#!/usr/bin/perl

eval 'exec /usr/bin/perl  -S $0 ${1+"$@"}'
    if 0; # not running under some shell

use CPAN;
shell;

All you have to do is type "install Example::Module" and it will download, complile and install the module. It will also download
and install any other perl modules that the module you're installing requires.

The cpan shell is great for simple installations where everything works the first time. If you need to install library files or if you have problems compiling you're probably better off eschewing the cpan shelling and compiling by hand.

kenny 09-18-2002 08:53 PM

:thumbsup

I did it I had to install WWW-lib.pm, HTML-paser.pm, HTML-tagset.pm, and MIME-base.pm
My server people couldnt do this in two days time? And I figured it out in 2 hours:winkwink:


All times are GMT -7. The time now is 10:04 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123