Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Can't locate /db.pl

Quote Reply
Can't locate /db.pl
Hi. I have done loads of installs for myself and other people. I have now come accross a really weird problem. I expect its really easy to fix, and i'm just so tired that i can't figure it out!!! The problem i'm getting is the dreaded pop-up-error. The error reads as follows;

Error including libraries: Can't locate /db.pl in @INC (@INC contains: /home/ace-inst/public_html/cgi-bin/search/cgi-bin/admin /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/ace-inst/public_html/cgi-bin/search/cgi-bin/admin/admin.cgi line 28.

Make sure they exist, permissions are set properly, and paths are set correctly.


Now, i have CHMODed db.pl to both 755 and 666 (tried both of them), but that didn't seem to make a difference.

Any ideas?

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: Can't locate /db.pl In reply to
Again, like discussed in a bunch of Threads in this forum...you need to use the ABSOLUTE path to the links.cfg in the require line in the admin.cgi script:

Code:

require "/absolute/path/to/cgi-bin/links/admin/links.cfg";


Regards,

Eliot Lee
Quote Reply
Re: Can't locate /db.pl In reply to
Actually, what happened was that i had used my install.cgi script. What it is meant to do is write links.cfg for you, with all of the settings you give it. The problem was on my server it didn't build the file. I have had this problem with my scripts before, but havn't worked a way around it yet. Some servers just don't seem to like creating files...

Thanks though

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: Can't locate /db.pl In reply to
I reckon the servers arent the problem...

What code are you using?

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Can't locate /db.pl In reply to
The code i'm using is;


open(TOFILE,">>htpasswd.txt");

print TOFILE "$user\:$passwordnew\n";
close(TOFILE);


Andy

http://www.ace-installer.com
webmaster@Ace-installer.com