Gossamer Forum
Quote Reply
ARGH HELP
I'm stumped. I've never had this much trouble before. I've done everything in ASCII, set all my permissions and then some but everytime I try to admin the links I get this:
Error including libraries: Can't locate /z5/elpaso/cgi-bin/links/admin/db.pl in @INC (@INC contains: /usr/local/lib/perl5/i386-freebsd/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-freebsd /usr/local/lib/perl5/site_perl .) at admin.cgi line 28.

Make sure they exist, permissions are set properly, and paths are set correctly. My Links.cfg reads like this:
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/z5/elpaso/cgi-bin/links/admin";
$db_dir_url = "http://newspage.virtualave.net/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://newspage.virtualave.net/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/z5/elpaso/links/pages";
$build_root_url = "http://newspage.virtualave.net/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/z5/elpaso/links/pages/New";
$build_new_url = "http://newspage.virtualave.net/links/pages/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/z5/elpaso/links/pages/Cool";
$build_cool_url = "http://newspage.virtualave.net/links/pages/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/z5/elpaso/links/pages/Ratings";
$build_ratings_url = "http://newspage.virtualave.net/links/pages/Ratings";

Help me before I go insane.
Quote Reply
Re: ARGH HELP In reply to
First of all, you are taking a chance modifying any of the paths or URLs other than the first five. All other paths or URLs specified in links.cfg are based on the first five and need no modification. No sense in adding possible typos when there is no real need to do so.

Secondly, try modifying the require line for links.cfg in admin.cgi to use the full path to links.cfg like so:

Quote:
require "/z5/elpaso/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.

I hope this helps.
Quote Reply
Re: ARGH HELP In reply to
I tried this. It comes up:
Error including libraries: Can't locate /z5/elpaso/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/local/lib/perl5/i386-freebsd/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-freebsd /usr/local/lib/perl5/site_perl .) at admin.cgi line 27.

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

It looks to me that it is looking for a user supplied variable (path) somewhere but all it gets is garbage.
Then again I may be dead wrong. Wouldn't be the first time.
Quote Reply
Re: ARGH HELP In reply to
If that isn't bringing up the links.cfg, then the path is not right. If that path is not right, then the ones in links.cfg itself are not right.

Is this the full absolute path to your admin directory?
Quote Reply
Re: ARGH HELP In reply to
i started from scratch again and did everything by the book and I get this now:
Error including libraries: Illegal division by zero at links.cfg line 69.

Make sure they exist, permissions are set properly, and paths are set correctly.
I've checked all the permissions.
I've changed all the paths and tried them each way but this is the constant message I get. I've even dumped the cache in both browsers and restarted them to make sure .
Quote Reply
Re: ARGH HELP In reply to
Line 69 of links.cfg is:

Code:
# PATH of sendmail. # SMTP Server
$db_mail_path = ''; $db_smtp_server = '';

What do you show there?
Quote Reply
Re: ARGH HELP In reply to
# PATH of sendmail.
$db_mail_path = ''/usr/bin/sendmail";
Quote Reply
Re: ARGH HELP In reply to
Try changing the double-quotes to single-quotes and see if you get the same error. For some reason, the script is interpreting a / around line 69 as a division sign and not part of a string. It might not actually be in line 69 itself, but might be close to it.

I hope this helps.
Quote Reply
Re: ARGH HELP In reply to
VICTORY!!!!!
I was giving it one last shot and I did a few different things.
Started from scratch and instead of putting it in the CGI_BIN I stuck it in a seperate folder.
I also edited in BBEdit instead of Simple Text.
It works!
I changed those quotes as well. Simple Text spacing was funny so I couldn't tell it they were single or double.
Thanks for your help. Putting up with the clueless (like me) takes a lot.
Onslow