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

Down Loads Error message when clicking on Links

Quote Reply
Down Loads Error message when clicking on Links
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
Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
I tired to do what you said. Same problem. The script compiles the pages, allows you to go to the sub catagories, and everything. It just keeps making me download the error above when ever I try to click on a link I added, click on the add a link page, or the modify link page. Any suggestions?
Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
Try using the COMPLETE ABSOLUTE PATH (NOT THE VIRTUAL URL PATH) to your links.cfg file in the require line in the admin.cgi, like the following:

Code:
require "/machine/<ROOT>/cgi-bin/links/admin/links.cfg";

Or you can simply use the following:

Code:
require "./links.cfg";

Hope this helps.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
Greetings NCP3

Code:
require "http://www.ncphobbies.com/cgi-bin/links/admin/links.cfg";

Change this line to read "admin/links.cfg"; and you should be right.

------------------
www.nzcid.org.nz
New Zealand Christian Internet Directory






Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
Still No luck. Could the problem be in links.cgi. Here are the permissions. Let me know what you think.

# This script is not freeware! Please read the README for full details
# on registration and terms of use.
# =====================================================================

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = ".";
$db_dir_url = "http://www.ncphobbies.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.ncphobbies.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "../../../htdocs/links";
$build_root_url = "http://www.ncphobbies.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";



Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
YES...

Change the following codes:

Code:
$db_script_path = ".";

to the complete ABSOLUTE PATH where your admin scripts are located:

Code:
$db_script_path = "/machine/<ROOT>/cgi-bin/links/admin";

Then change the following codes:

Code:
$build_root_path = "../../../htdocs/links";

to the following:

Code:
$build_root_path = ""/machine/<ROOT>/htdocs/links":

REALLY hope this helps!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
Eliot,
Thanks for all of your help. After a long day I finally got it to work. Thanks a lot.

CJ
Quote Reply
Re: Down Loads Error message when clicking on Links In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums