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

Error including libraries

Quote Reply
Error including libraries
Hello - could somebody give a poor newbie a hand with the following error. I'm 90% sure I have my paths correct - and have attached my links.cfg file below.... Thanks

Error including libraries: Can't locate /cgi-bin/links/admin/db_utils.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 search.cgi line 37.

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

----
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.banthatracks.com/cgi-bin/links/admin";

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

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

Quote Reply
Re: Error including libraries In reply to
 
Quote:
$db_script_path = "/cgi-bin/links/admin";
$build_root_path = "/cgi-bin/links/pages";

Those should be "full" paths to your directories, not relative paths as you have them.

For example, mine are defined as:

Quote:
$db_script_path = "/home/bobsie/cgi/goodstuff/admin";
$build_root_path = "/home/bobsie/web/goodstuff";

I hope this helps.
Quote Reply
Re: Error including libraries In reply to
Hi, I am getting the same message. My message read as follow....

Error including libraries: Bad name after net' at links.cfg line 69.

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

... Would someone please tell me what am I doing wrong and where is line 69?
Quote Reply
Re: Error including libraries In reply to
FemmeLuv4u,

Can you show the complete error message?

To find line 69, start at the top in your editor and count the lines down to 69. Make sure word-wrapping is turned off in your editor so you can get the correct line count.



[This message has been edited by Bobsie (edited April 14, 1999).]
Quote Reply
Re: Error including libraries In reply to
Hi Bobsie,

That was the complete message. <smile>

I am a complete dummy when it come to CGI scripts. I get very confused with the editing part. Below is a copy of the links.cfg file that I edited.

$db_script_path = "/home/mistyeyesz/cgi/links/admin";
$db_dir_url = "http://ebonylesbigay.virtualave.net/cgi-bin/links/admin";

$db_cgi_url = "http://ebonylesbigay.virtualave.net/cgi-bin";

$build_root_path = "/home/mistyeyes/web/pages";
$build_root_url = "http://ebonylesbigay.virtualave.net/cgi-bin/pages";


NOTE: MY DIRECTORY IS home/mistyeyesz. ALL OF MY FILES ARE UPLOADED TO public_html.

my server use Perl 5.004 which is located at usr/bin/perl (and/or) usr/local/bin/perl

My public_html directory is where the cgi-bin directory is located. I am wondering if I need to add the "public_html" anywhere on the links.cfg file.

My cgi-bin directory is where the links directory is located, which has the admin files and directories. My pages directory is also located inside of my cgi-bin directory.

<pulling my hair> HELP!!!
Quote Reply
Re: Error including libraries In reply to
   
Quote:
That was the complete message. <smile>

Nope, that may be the exact error message, but it can't be complete. There should have been a lot more included with that (like what was posted in http://www.gossamer-threads.com/...um2/HTML/000701.html ).

Anyway, none of what you posted is line 69 of links.cfg. In the default links.cfg in the links2.zip archive, line 69 is:

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

Quote:
Error including libraries: Bad name after net' at links.cfg line 69.

I hope this helps.

[This message has been edited by Bobsie (edited April 16, 1999).]

[This message has been edited by Bobsie (edited April 16, 1999).]
Quote Reply
Re: Error including libraries In reply to
OOhh My Goodness <slapping my forehead>. <giggling> Okay here is the information that I posted in "links.cgi" line 69.

$db_mail_path = ''; $db_smtp_server =stmp.prodigy.net'';

$db_admin_email =mistyeyesz@aol.com'';

$db_email_add = 0;

$db_email_modify = 0;

$db_mailer_log = '';

**NOTE: I am using Prodigy Internet and American Online**

American Online is where I want to have my email sent (MistyEyesz@aol.com)

FemmeLuv4u@prodigy.net is the mail server (SMTP and POP) is where I conduct all of my Internet related email.

POP3 = pop.prodigy.net
SMTP = smtp.prodigy.net

==================================
UhOh, I think I found the problem <looking at what I typed "stmp instead of smtp> LMAO. I am going to change that and see what happened. Thanks
Quote Reply
Re: Error including libraries In reply to
Im back!! Don't you just love it? <giggling> Okay I have this great sense of humor. Now back to basic.

I changed the typo "stmp to smtp" yet I am still receiving the same error message.
Quote Reply
Re: Error including libraries In reply to
smtp.prodigy.net is supposed to go between the single quote characters, as in:

Quote:
$db_mail_path = ''; $db_smtp_server = 'smtp.prodigy.net';

Also, the $db_admin_email has the same problem and should be:

Quote:
$db_admin_email = 'mistyeyesz@aol.com';

[This message has been edited by Bobsie (edited April 17, 1999).]
Quote Reply
Re: Error including libraries In reply to
I'm also having the "error including libraries" problem. My error note is as follows:

Error including libraries: Substitution replacement not terminated at /home/florence/cgi/links/links_admin/links.cfg line 209.

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

Line 209 is:
$db_lib_path =$db_script_path; # PATH of library files.

Everything was uploaded in ASCII and as far as I can tell, everything was the correct permissions. As for paths being set correctly, I don't know what the library files are... no mention of them in the readme.txt and I don't see any files that say library. So basically I don't know whether the path is correct.

Any help would be appreciated.

Thanks,
Cindi
Quote Reply
Re: Error including libraries In reply to
Cindi,

According to my editor, line 209 of links.cfg is:

Code:
# -------------------------------------------------------------
# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.
# -------------------------------------------------------------
$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

Look for anything that might be missing. I don's see any substitution being used in links.cfg, so the message is puzzling. Can you put your links.cfg online and post a url to it so we can look at it?

[This message has been edited by Bobsie (edited May 03, 1999).]
Quote Reply
Re: Error including libraries In reply to
Put me on the list of people getting library errors...

I have extracted and uploaded the files three times now - and made damn sure I was using ASCII. And I have re-checked the permissions twice.

When I go to admin.cgi I get the following error message:

Error including libraries: Can't locate /links/cgi-bin/admin/db.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.004 /usr/lib/perl5 /usr/local/lib/site_perl/i386-linux /usr/local/lib/site_perl .) at admin.cgi line 28.

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



So I know that the path to perl is correct (my ISP docs say /usr/local/bin/perl or /usr/bin/perl should work) along with I know I have the correct sendmail path.

My website is at stagerage.com and the whole Links thing is supposed to be at stagerage.com/links . Here is the path to my links.cfg if anyone wants to check it out and gimme a hand:

http://stagerage.com/links/cgi-bin/links.cfg

Thanks in advance for your assistance and I can't wait to start using your program!


Wibb
Quote Reply
Re: Error including libraries In reply to
I tried to look at the links.cfg using the url you provided but got a 404 Not Found error.
Quote Reply
Re: Error including libraries In reply to
Hello,

It was only inevitable that I join your ranks.

MY ERROR::

Error including libraries: syntax error at /opt2/13thfloo/httpd/cgi-bin/links/admin/links.cfg line 33, near "13thfloo"
In string, @db_referers now must be written as \@db_referers at /opt2/13thfloo/httpd/cgi-bin/links/admin/links.cfg line 42, near "$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers"
In string, @13 now must be written as \@13 at /opt2/13thfloo/httpd/cgi-bin/links/admin/links.cfg line 72, near "edward@13"
syntax error at /opt2/13thfloo/httpd/cgi-bin/links/admin/links.cfg line 95, near "$build_index = "index"
(Might be a runaway multi-line "" string starting on line 72)

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

MY PATHS:

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/opt2/13thfloo/httpd/htdocs/13th-floor/links";
$build_root_url = "http://www.13th-floor.com/links;

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/opt2/13thfloo/httpd/htdocs/13th-floor/links/new";
$build_new_url = "http://www.13th-floor.com/links/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/opt2/13thfloo/httpd/htdocs/13th-floor/links/cool";
$build_cool_url = "http://www.13th-floor.com/links/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/opt2/13thfloo/httpd/htdocs/13th-floor/links/ratings";
$build_ratings_url = "http://www.13th-floor.com/links/ratings";


I appreciate any help in solving my dementia. 8P


Thanks Much
Edward
Quote Reply
Re: Error including libraries In reply to
Thanks in advance for your help Bobsie... I did mistype the URL for links.cfg .

The link is:

stagerage.com/links/cgi-bin/admin/links.cfg

Thanks for all your help!

Wibb
Quote Reply
Re: Error including libraries In reply to
edward,

Change:

Quote:
$build_root_url = "http://www.13th-floor.com/links;

To:

Quote:
$build_root_url = "http://www.13th-floor.com/links";

You're missing the ending double-quote.

wibb,

You need to fix both $db_script_path and $build_root_path to use "full" paths, not relative paths.
Quote Reply
Re: Error including libraries In reply to
Thanks Bobsie.

I can see the admin panel!! I guess being a wanna-be perl programmer (or even less) forces me to grasp at ANY straw for solutions! This is especially true at 4:30 in the morning...8P

Thanks a lot for all the help. I'm sure I'll be back....(much to the chagrin of some...)

Edward

Quote Reply
Re: Error including libraries In reply to
Well that was embarassing.

Thanks Bobsie. Its amazing how much my life would be easier if I just DOUBLE CHECKED my work!!. Well after fixing about a dozen or so other errors (mostly replacing double quotes with single quotes) I have come upon an error that has stumped me.

MY ERROR::

Error including libraries: Bad name after html:: at /opt2/13thfloo/httpd/cgi-bin/links/admin/links.cfg line 95.

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


LINES 92-97::

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

My madness continues.....

Thanks,

Edward 8P
Quote Reply
Re: Error including libraries In reply to
Edward,

The errors you are getting are probably caused by the changing from double-quotes to single-quotes (why did you do that?). The only variables in links.cfg that should be single-quoted are:

@db_referers (inside of parenthesis)
$db_mail_path
$db_smtp_server
$db_admin_email
$build_site_title (although, if you use an apostrophe as part of the site name, it would be better to use double-quotes here).

All the other variables that have quotes should be double-quoted.

I hope this helps.