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

CANNOT SOLVE PROBLEM!

Quote Reply
CANNOT SOLVE PROBLEM!
I have downloaded Links. I have used the readme file in every step of the way to since I've uploaded it to my server. However after numerous tries I still recieve this message when trying to reach the "admin.cgi" page in my browser.

-----------------------------------------

Error including libraries: Can't locate d:/home/vtroy/www/cgi-bin/links/cgi-bin/admin/links.cfg in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at admin.cgi line 27.

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

-----------------------------------------

What am I missing or do I need to do to make Links work!!??

------------------
Webmaster of http://www.vtroy.com
Quote Reply
Re: CANNOT SOLVE PROBLEM! In reply to
Upgrade your Perl to 5.00503.

Also, you have to include the full ABSOLUTE PATH to your links.cfg file.

Like the following:

Code:
require "/home/vtroy/www/cgi-bin/links/cgi-bin/admin/links.cfg";

in your admin.cgi.

Since you are including the drive, are you by chance using a Windows web server? If so, you need to post your problem in the Windows Installation Forum.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: CANNOT SOLVE PROBLEM! In reply to
Error including libraries: Can't locate I have resolved my links.cfg problem however there is now my "db.pl" problem. I have checked my permissions "rwx r-x r-x" my path seems to be correct. NOW WHAT?!.....here is the message I recieve once I go to my admin.cgi page.

--------------------------------------

/home/vtroy/www/cgi-bin/links/cgi-bin/links/cgi-bin/admin/db.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at admin.cgi line 28.

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

---------------------------------------

I included the drive because I was told previously from you to make sure it was the ABSOLUTE path including the drive. Is it an ABSOLUTE neccesity to have PERL 5.00503??! If so I'll contact my host.

What to do??!!!

------------------
Webmaster of http://www.vtroy.com
Quote Reply
Re: CANNOT SOLVE PROBLEM! In reply to
You only include the DRIVE if you are on a Windows Server.

How have you defined the $db_lib_path and the $db_script_path in the links.cfg file?

Make sure that you have the correct path in the $db_script_path variable!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: CANNOT SOLVE PROBLEM! In reply to
Eliot,

Here is what is defined in my links.cfg file;

-----------------------------------------

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/vtroy/www/cgi-bin/links/cgi-bin/links/pages";
$build_root_url = "http://www.vtroy.com/cgi-bin/links/pages";

# 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";

# Database Options
# -------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();

# Email Options
# -------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = 'd:/home/vtroy/vtroy-mail/webmaster'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'webmaster@vtroy.com';

# Notify visitors automatically when their links are validated?
$db_email_add = 0;

# Notify visitors automatically when their links are modified?
$db_email_modify = 0;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '';

---------------------------------------

you see how my $db_script_path is defined correctly (I've added the "/admin.cgi" ending right now my string always ended with "/admin") yet it is still give me the same error as posted earlier??!!

UGHHHHH!! What is going on?
Quote Reply
Re: CANNOT SOLVE PROBLEM! In reply to
Uh...NO...You have NOT defined the $db_script_path (and path is the keyword here) correctly.

It has to be the following:

Code:
$db_script_path = "/home/vtroy/www/cgi-bin/links/cgi-bin/links/cgi-bin/admin";

NO Trailing slash.

Also, you SHOULD NOT build your pages in the /cgi-bin/ directory...

Change the following variables:

Code:
$build_root_path = "/home/vtroy/www/cgi-bin/links/pages";
$build_root_url = "http://www.vtroy.com/cgi-bin/links/pages";

to the following:

Code:
$build_root_path = "/home/vtroy/www/links/pages";
$build_root_url = "http://www.vtroy.com/links/pages";

Regards,

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