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

Installation problems

Quote Reply
Installation problems
Can someone tell me where I have screwed up. I have just installed Links v2 and got the following error when I tested it;

Error including libraries: Can't locate e:/virtualhosts/together.com/www/sun_set/links/cgi_bin/admin/db.pl in @INC (@INC contains: e:/virtualhosts/together.com/www/sun_set/cgi_bin/links/admin D:\perl\lib D:\perl\site\lib .) at e:/virtualhosts/together.com/www/sun_set/cgi_bin/links/admin/admin.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.


This is how my links.cfg is configured;

=====================================================================

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

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.together.com/sun_set/links/cgi_bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "e:/virtualhosts/together.com/www/sun_set/links/pages";
$build_root_url = "http://www.together.com/sun_set/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.
$db_mail_path = 'c:\winnt\wsendmail.exe';

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

# 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 = '';

# Build Options


Quote Reply
Re: Installation problems In reply to
Uh...Make sure that you have the full ABSOLUTE path, including the drive letter, in the require line for the links.cfg file in the admin.cgi file, like the following:

Code:
require "e:/virtualhosts/together.com/www/sun_set/links/cgi_bin/admin/links.cfg";

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Installation problems In reply to
Thanks AnthroRules for your prompt answer. I inserted your suggestion in admin.cgi and now I am getting a new error;

Error including libraries: Can't locate e:/virtualhosts/together.com/www/sun_set/links/cgi_bin/admin/links.cfg in @INC (@INC contains: e:/virtualhosts/together.com/www/sun_set/cgi_bin/links/admin D:\perl\lib D:\perl\site\lib .) at e:/virtualhosts/together.com/www/sun_set/cgi_bin/links/admin/admin.cgi line 27.

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


Quote Reply
Re: Installation problems In reply to
The problem is most likely related to the wrong cgi bin directory you are using in your configurations....

It should be cgi-bin NOT cgi_bin.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Installation problems In reply to
Rob,

No, you have to use the same directory characters (/) as you would use in UNIX.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Installation problems In reply to
It might be that you need to change the / into either \ or \\ for the script to work.

I had to do this on an NT server, however, on others you don't. Just depends on the config.

Also, anyone know how to alter the / in the rest of the programme. I have the path correct upto the last moment and then it throws a / instead of a \ !!

Rob