When ever I click on any link in the links program, modify link, add link, or a link that I have added to a catagory I get a message simmilar to the one below:
Error including libraries: Can't locate http://www.ncphobbies.com/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl /usr/local/lib/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/jump.cgi line 34.
Make sure they exist, permissions are set properly, and paths are set correctly.
Here is the Jump.cgi file:
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
require "http://www.ncphobbies.com/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
}
Could anyone tell me what could be wrong and what I can do to fix it. I am sure that it is simple but I just can not figure it out. Thanks for your help.
CJ
Error including libraries: Can't locate http://www.ncphobbies.com/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/local/etc/httpd/cgi-bin/links /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl /usr/local/lib/site_perl .) at /usr/local/etc/httpd/cgi-bin/links/jump.cgi line 34.
Make sure they exist, permissions are set properly, and paths are set correctly.
Here is the Jump.cgi file:
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
require "http://www.ncphobbies.com/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
}
Could anyone tell me what could be wrong and what I can do to fix it. I am sure that it is simple but I just can not figure it out. Thanks for your help.
CJ