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

Problems with db.pl

Quote Reply
Problems with db.pl
I keep getting this error about the db.pl file...can someone please help! =)

------------------
<< Alpha Prime >>
Quote Reply
Re: Problems with db.pl In reply to
What error???

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Problems with db.pl In reply to
Error including libraries: Can't locate /cgi-bin/admin/db.pl in @INC (@INC contains: /usr/libdata/perl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503 /usr/libdata/perl5/site_perl/i386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/include .) at admin.cgi line 28.

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Problems with db.pl In reply to
you defined yor paths wrong in links.cfg

--mark
Quote Reply
Re: Problems with db.pl In reply to
Thats not always the problem..Everythin is right in the links.cfg file

------------------
<< Alpha Prime >>
Quote Reply
Re: Problems with db.pl In reply to
As mentioned in other Threads, you need to make sure that you have properly mapped the links.cfg file in the require statement in the admin.cgi. Try using the ABSOLUTE path to the links.cfg file.

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Problems with db.pl In reply to
I'm getting the same error as 'Prime... I cannot figure it out.

This is what the admin.cgi file reads:

Code:
require "$db_lib_path/db.pl"; # Database Routines.

I have not found anything in the links.cfg file that reads db_lib_path
There is db_script_path. Is this the same thing?


------------------
Kat Skye
meagerkat.tripod.com
katskye@postmark.net
Quote Reply
Re: Problems with db.pl In reply to
Uh...Yea...this variable is defined in the links.cfg file.

Look towards the bottom of the links.cfg file...See the following:

Code:
$db_lib_path =$db_script_path; # PATH of library files.

Uh...that is where it is defined.

But in order to pull that variable from the links.cfg, you may have to use the complete absolute path in the first require line:

Code:
require = "/path/to/links.cfg

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: Problems with db.pl In reply to
ok
since posting I figured out that part... feel kind of dumb now for even posting it...
I've figured out how to fix the majority of my errors... just overlooked a few things. have to go in and redo a few of my own doings...

Thanks for your help,

------------------
Kat Skye
meagerkat.tripod.com
katskye@postmark.net

[This message has been edited by katskye (edited January 22, 2000).]
Quote Reply
Re: Problems with db.pl In reply to
GOOD...Glad you figured it out!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
----------------------






Quote Reply
Re: Problems with db.pl In reply to
Code:
Eliot: any suggestions as to whether I am missing something (sorry to appear thick!)

Make sure that you have the $db_script_path variable set to the COMPLETE ABSOLUTE PATH to where your admin files are located in the links.cfg file, since if you look further down in the links.cfg file, you will see the following codes:

Code:
$db_lib_path = $db_script_path;

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Problems with db.pl In reply to
I have looked through the postings of this thread, as I seem to have hit a similar problem (not just with db.pl but with all files using the $db_lib_path variable)

I am testing under PWS4 (Win98) path is set OK in links.cfg, perl debugger gives correct path for $db_lib_path, but somehow the error persists.

Solution change all references to $db_lib_path to the complete path (as described above for links.cfg) and it works.

This means going through every cgi/pl file and making the change, surely that is NUTS?

Eliot: any suggestions as to whether I am missing something (sorry to appear thick!)

Thanks
Rudy

[This message has been edited by Rudyvdg (edited March 04, 2000).]