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

Please help me "Error including libraries"

Quote Reply
Please help me "Error including libraries"
Arrgghhh - this is my first attempt at installing the script. heres what i got.



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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/sites/site22/users/freestuff/web/links/pages";
$build_root_url = "http://www.southdelta.com/~freestuff/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 = "/usr/lib/sendmail''; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = "q.pabani@home.com'';




The exact error:

Error including libraries: Bad name after com' at /home/sites/site22/users/freestuff/web/links/cgi-bin/admin/links.cfg line 72.

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



Heres what everythings CHMODed to:
All .pl = 755
All .cgi = 755
cgi-bin dir = 775
links dir = 775
all other dirs = 775 except the 3 that says in the readme.
all files in the /admin = 755
all other files = 664 except otherwise defined.

Heres the URL
www.southdelta.com/~freestuff/links/cgi-bin/admin/admin.cgi

Please help me...

Quote Reply
Re: Please help me "Error including libraries" In reply to
Im not totally sue but it may be the ~ in the ~freestuff part!

From Paul Wilson.
http://www.audio-grabber.com
On error resume next..
Quote Reply
Re: Please help me "Error including libraries" In reply to
Nope. qpabani2 assumed GT left a bug in the script (by placing only 1 double quote for each variable) and put a double quote on the left-hand side of the $db_mail_path and $db_admin_email variables. In actuality, the value is intended to be enclosed in single quotes (and there are two single quotes already there).
Code:
"wrong"
Code:
''wrong''
Code:
"wrong''
Code:
'right'
See if you can find the difference...

--Drew
Quote Reply
Re: Please help me "Error including libraries" In reply to
Ahhh yes I missed that!

So why does the sendmail path and email need single quotes and all paths and URL's double?

From Paul Wilson.
http://www.audio-grabber.com
On error resume next..
Quote Reply
Re: Please help me "Error including libraries" In reply to
http://www.southdelta.com/~freestuff/cgi-bin/admin/admin.cgi


everything works, except the nph-build.cgi (get an internal server error).. any idea?

Quote Reply
Re: Please help me "Error including libraries" In reply to
There are two FAQs in the Resource Center that address problems with NPH (non parsed header) files...look for Cobalt RAQ in the Resource Center.

Regards,

Eliot Lee

Quote Reply
Re: Please help me "Error including libraries" In reply to
Hi i think i have the same problem but i cant solve it when i try to go to the admin.cgi it givess me this error:
Error including libraries: Can't locate web/links/cgi-bin/admin/db.pl in @INC (@INC contains: /home/sites/site122/web/links/cgi-bin/admin /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/sites/site122/web/links/cgi-bin/admin/admin.cgi line 28.

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

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "web/links/pages";
$build_root_url = "http://www.gencnet.com/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 = "usr/sbin/sendmail"; $db_smtp_server = '';

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

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

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

# 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
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 0.03; # Top 3%
# Number of days a link is considered New.
$db_new_cutoff = 14; # 14 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

I think i screwd up big time i am thinking to forget doing this!
Please help!
www.gencnet.com/links/cgi-bin/admin/admin.cgi i the address
Thanx!
Burak
www.gencnet.com

Quote Reply
Re: Please help me "Error including libraries" In reply to
1) The following path variable configurations are incorrect:

Code:

$db_script_path = "web/links/cgi-bin/admin";


AND

Code:

$build_root_path = "web/links/pages";


As mentioned quite a few times in this forum...you need to use the complete ABSOLUTE not RELATIVE path for these variables.

They should look like the following:

Code:

$db_script_path = "/home/sites/site122/web/links/cgi-bin/admin";


AND

Code:

$build_root_path = "/home/sites/site122/web/links/pages";


2) In your admin.cgi file, you need to have the following require statement:

Code:

require ""/home/sites/site122/web/links/cgi-bin/admin/links.cfg";


Regards,

Eliot Lee

Quote Reply
Re: Please help me "Error including libraries" In reply to
Hello
I have almost the same problem ... thanx for helping:

Error including libraries: Can't locate /cgi-bin/links/admin/db.pl in @INC (@INC contains: /usr/local/etc/httpd/htdocs/best4u/cgi-bin/links/admin /usr/local/lib/perl5/5.00503/i386-bsdos /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-bsdos /usr/local/lib/perl5/site_perl/5.005 .) at /usr/local/etc/httpd/htdocs/best4u/cgi-bin/links/admin/admin.cgi line 28.

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


My links.cfg:

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/links/pages";
$build_root_url = "http://www.best4u.ch/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 = '/bin/sendmail'; $db_smtp_server = '';

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

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

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

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

Quote Reply
Re: Please help me "Error including libraries" In reply to
Please read my previous reply! All you need to do is rather than the using the COMPLETE ABSOLUTE PATH I provided for the other user, use your own!

Regard,

Eliot