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

One problem down...One more to go...I hope.

Quote Reply
One problem down...One more to go...I hope.
I fixed the problem with the admin.cgi but now when you go to my page and try to add a link it trys to download the file (add.cgi) same thing with jump.cgi....

Check it out...
http://donutjp.hypermart.net/links/pages

Please help

Jay
donutjc@earthlink.net
Quote Reply
Re: One problem down...One more to go...I hope. In reply to
Make sure the paths at the top of all user accessible scripts are the same path to Perl as your admin.cgi uses. Also, make sure they are all uploaded via ASCII.
Quote Reply
Re: One problem down...One more to go...I hope. In reply to
I've tried what you said but everything is fine... it was working before then stoped working. I even tryed to upload everything again but still....nothing....

Jay
donutjc@earthlink.net
Quote Reply
Re: One problem down...One more to go...I hope. In reply to
I just tried the Add a Link at your site and got this error message:

Quote:
Error including libraries: Can't locate http://donutjc.hypermart.net/cgi-bin/link/admin/links.cfg in @INC (@INC contains: /data1/hypermart.net/donutjp/cgi-bin/links /usr/local/lib/perl5/i386-bsdos/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .) at /data1/hypermart.net/donutjp/cgi-bin/links/add.cgi line 30.

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

This looks rather odd to me because it shouldn't be looking for links.cfg at a url, it should be looking for it on a path. So you seem to be having a problem with how your paths and URLs are configured in links.cfg, or perhaps the "require" lines for links.cfg are not using a path in the user accessible scripts.

I hope this helps.

[This message has been edited by Bobsie (edited June 05, 1999).]
Quote Reply
Re: One problem down...One more to go...I hope. In reply to
This is what I found in the add.cgi

# Setup Notes:
# Make sure the require statement below points to the config 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://donutjc.hypermart.net/cgi-bin/link/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";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
};
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.";
exit;
}


I don't really know where to look...

Jay
donutjc@earthlink.net

Quote Reply
Re: One problem down...One more to go...I hope. In reply to
    
Quote:
require "http://donutjc.hypermart.net/cgi-bin/link/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.

Note that the line says to use a "full path", not a URL. You are using a URL as I suspected. Change it to the full path to links.cfg and you should be okay. Based on what I saw in the error message, it should read:

Quote:
require "/data1/hypermart.net/donutjp/cgi-bin/links/admin/links.cfg";

Note that the directory name is "links" not "link".

I hope this helps.

[This message has been edited by Bobsie (edited June 05, 1999).]
Quote Reply
Re: One problem down...One more to go...I hope. In reply to
I fixed it.... I hope test it out for me

donutjp.hypermart.net/linls/pages

one more question...

Is there anyway that I can make the index.html in my root directory so the url will be...
http://donutjp.hypermart.net and not
http://donutjp.hypermart.net/links/pages

Thanks for all your help
Jay