View previous topic :: View next topic |
Author |
Message |
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Fri Aug 25, 2006 6:00 pm Post subject: cgi script cant find the paths to my perl |
|
|
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 |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Fri Aug 25, 2006 6:08 pm Post subject: |
|
|
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 |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
|
Back to top |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Fri Aug 25, 2006 7:00 pm Post subject: |
|
|
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 |
|
|
Mikor -
Joined: 21 Aug 2006 Posts: 144 Location: Hull, England
|
Posted: Fri Aug 25, 2006 10:44 pm Post subject: |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sat Aug 26, 2006 3:43 pm Post subject: |
|
|
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 |
|
|
hc2995 -
Joined: 07 Aug 2006 Posts: 644 Location: Maryland, USA
|
Posted: Sun Aug 27, 2006 3:05 pm Post subject: |
|
|
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 |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Sun Aug 27, 2006 8:07 pm Post subject: |
|
|
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 |
|
|
|