Click to See Complete Forum and Search --> : change location for use
daed17
07-26-2003, 03:59 PM
I have a script that I am moving to a new host. but they will not add the file to their library that I need. I have added the file to my cgi-bin directory, now how do I change the use xxx; so that it knows the correct location?
Please help!!!
daed17
07-26-2003, 06:43 PM
Maybe this will help also... the file is in the directory, persmissions are set at 755 and I get this when executed...
Can't locate NDBM.pm in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .)
Where am I going wrong?
Jeff Mott
07-26-2003, 07:53 PM
If you add the file to a directory (e.g., "lib") that is in the same directory as the script, you can add that location for Perl to look for modules withuse lib './lib';
daed17
07-26-2003, 08:13 PM
ok, did it and still getting the same error but I do show the ./lib in the path, since this is on a windows machine should I change it to .\lib?
Jeff Mott
07-27-2003, 11:41 AM
A forward slash should do fine. (Silly question coming) You put the module in the ./lib directory right? Also, I looked through some module lists. Are you sure it's not supposed to be NDMB_File?
daed17
07-27-2003, 07:31 PM
Yes I did put it in the ./lib directory and set the permissions at 755, This is running on a Win 2000 server. And yes, it is the NDBM_File.pm file.
I don't have to do anything special do I?
daed17
07-27-2003, 09:31 PM
Is it possible for a web host to deny any mods from running other then the ones they have installed?
Just trying to troubleshoot here.
daed17
07-27-2003, 09:37 PM
The web host is hostonce.com and although they advertise that they support asp, perl, php, and mysql running on a windows 2000 server, I have encountered several issues with them mainly asp keeps locking up and now I have this issue.
We are starting to reconsider their services.
Know any good web hosts that offer unlimited bandwidth and unlimited hard drive space like host once offered, but can handle the perl and php?
daed17
07-27-2003, 10:45 PM
OK maybe this solves alot of problems here....
Hostonce is running Perl 5.006001, so now how do I implement NDBM_File on this system?
Jeff Mott
07-28-2003, 11:43 AM
Looking now the the source for NDBM_File, it appears to be an XS implementation. What that means is that the real library is written in C and there should be a NDBM_File.dll file that you will also need. Though, since these are compiled libraries, they may not work on another system if it was built on yours.
daed17
07-31-2003, 09:00 PM
By replacing all the NDBM_File references with AnyDBM_File, this resolved the issue. We never could get the NDBM_File mod to be seen though.