cgi script cant find the paths to my perl

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Fri Aug 25, 2006 6:00 pm    Post subject: cgi script cant find the paths to my perl Reply with quote

i have set up active perl 5.8.8 build 817 using the WIN32 msi installer after setting up my scripters in the console i placed a .cgi script in the root folder but the script cant find any of the paths to my perl all it can find in the version


path to script: http://68.50.57.56/perl_digger.cgi

is there anything i have to add to the conf couse i have heard a lot about that.....
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Fri Aug 25, 2006 6:08 pm    Post subject: Reply with quote

If I remember rightly you have to add the path to perl into the top of the script. Not usre though as I rarely use perl.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Aug 25, 2006 6:13 pm    Post subject: Reply with quote

Try this:
http://www.trustabyss.com/perl_install.html
Back to top View user's profile Send private message Visit poster's website
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Fri Aug 25, 2006 7:00 pm    Post subject: Reply with quote

iv installed it correctly so 1 sec lemme try again
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
Mikor
-


Joined: 21 Aug 2006
Posts: 144
Location: Hull, England

PostPosted: Fri Aug 25, 2006 10:44 pm    Post subject: Reply with quote

At the top of your script add:

Code:
#!C:\path\to\perl.exe


(Obviously if perl.exe is on a drive other than C, change it)
_________________
Yarrt.com - Free Arcade
RypNet.co.uk - Online Game

MSN:
michael_walker_2004 <at> hotmail <dot> com
Back to top View user's profile Send private message Send e-mail MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Aug 26, 2006 3:43 pm    Post subject: Reply with quote

Mikor wrote:
At the top of your script add:

Code:
#!C:\path\to\perl.exe


(Obviously if perl.exe is on a drive other than C, change it)


If you install Perl support as explained in http://www.aprelium.com/abyssws/perl.html, this line is useless as the server will rely on the filename extension .pl or .cgi to recognize the suitable interpreter.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
hc2995
-


Joined: 07 Aug 2006
Posts: 644
Location: Maryland, USA

PostPosted: Sun Aug 27, 2006 3:05 pm    Post subject: Reply with quote

yep i installed perl as with the instructions but heres the thing:

There is a certain module (DB_File) thats not in the defult module folder its stored in another folder for some reason or another but when the program looks for it in one of the folders it cant find them since it cant find the folder paths
_________________
Where have i been? School got heck-tick, had to move half way around the state, then back... and then i had to change jobs, so iv been away for a while :P
Back to top View user's profile Send private message AIM Address
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sun Aug 27, 2006 8:07 pm    Post subject: Reply with quote

Quote:
Code:
#!/usr/bin/perl
use lib "/home/george/modules";
print "\@INC is @INC\n";

Listing 1: This simple demo program shows an easy way to modify Perl's @INC variable. This lets you add your custom directories to Perl's search path, allowing you to use Perl modules that aren't installed in "default" locations.


Source: http://www.devdaily.com/perl/edu/articles/pl010015/

Note that this code is for a *nix platform. It might need slight adjustment to work in a Windows environment.
If your module is in c:\themodule, use this code in your Perl script:
Code:
use lib "c:/themodule";

_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group