Gossamer Forum
Quote Reply
DB.PL
Hi,
Please help me, i got this problem:

Error including libraries: Can't locate /Web/htdocs/cgi-bin/links/admin/db.pl in @INC (@INC contains: /Web/WebHosting/search.surecity.com/cgi-bin/links/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 /Web/WebHosting/search.surecity.com/cgi-bin/links/admin/admin.cgi line 12. Make sure they exist, permissions are set properly, and paths are set correctly.
line12:
require "$db_lib_path/db.pl"; # Database Routines.
links.cfg:
$db_script_path = "/Web/WebHosting/search.surecity.com/cgi-bin/links/admin";
$db_dir_url = "http://search.surecity.com/cgi-bin/links/admin";

$db_cgi_url = "http://search.surecity.com/cgi-bin/links";

$build_root_path = "/Web/WebHosting/search.surecity.com";
$build_root_url = "http://search.surecity.com";

$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

Quote Reply
Re: DB.PL In reply to
Make sure that you have the correct ABSOLUTE PATH to your links.cfg in the admin.cgi script. The reason that the db.pl file cannot be found is that you have not properly required the links.cfg file.

The require line should look like the following:

Code:
require "/Web/WebHosting/search.surecity.com/cgi-bin/links/admin/links.cfg";

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: DB.PL In reply to
I already change my admin.cgi, but still wrong, Why?

Admin.cgi:
require 5.001; # Make sure we have at least perl 5.001.
require "/Web/WebHosting/search.surecity.com/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
}
Quote Reply
Re: DB.PL In reply to
I already change my admin.cgi, but still wrong with same message, Why?

Admin.cgi:
require 5.001; # Make sure we have at least perl 5.001.
require "/Web/WebHosting/search.surecity.com/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db.pl"; # Database Routines.
require "$db_lib_path/db_utils.pl"; # Database Support utilities.
require "$db_lib_path/admin_html.pl"; # Admin HTML routines.
}
Quote Reply
Re: DB.PL In reply to
Are you getting the same error message or a different one? If it is the same one...then you do NOT have the correct ABSOLUTE PATH to your admin directory in the $db_script_path.

Double check with your hosting company to find out your correct ABSOLUTE PATHS.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.