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

Error Finding Library

Quote Reply
Error Finding Library
I realise that this question has already been raised but the answer to my problem wasn't in that thread :( and I figured it would be better to start a new thread than to continue with that one as it would possibly go unnoticed?

Anyway, here's the problem.

I've just installed links 2.0 in a subdirectory but am receiving the following error:

Code:
Error including libraries: Can't locate /www/sitename/cgi-bin/links/admin/db.pl at admin.cgi line 28.

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


The following is how I've configured the links.cfg file.

Code:
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/www/sitename/cgi-bin/links/admin";
$db_dir_url = "http://sitename.friendsyourway.co.uk/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://sitename.friendsyourway.co.uk/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/www/sitename/links/pages";
$build_root_url = "http://sitename.friendsyourway.co.uk/links/pages";

Where I've written 'sitename' there is a different name in the actual cfg file but I don't really want to have to post the entire thing here for all and sundry to see. Anyway, I've checked and treble checked that there are no spelling errors in that site name and there aren't.

Any help on this would be warmly welcomed.

~Sharon J

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When all think alike, nobody is thinking much at all.

Last edited by:

Dioritt: Jan 19, 2005, 6:21 AM
Quote Reply
Re: [Dioritt] Error Finding Library In reply to
Hi,

Are you sure thats your path? Its *very* unusual for a path to be that short (I very rarely see it).

You may want to give my "Ace Vars" script a go;

http://new.ace-installer.com/...ree&page=acevars

Try uploading it to your admin folder, CHMOD to 755, and run from the browser. I can't remember the exact variable ... but I think its DOCUMENT_ROOT that will be your main path you need to double check.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error Finding Library In reply to
Now you've got me wondering about that path. My own site (which isn't on a sub-domain) starts with www/www/mysitename/etc etc but according to the server info, sub-domains only have one www in front for the path. I'll have another look at it, though.

I shall try your Ace Vars script and see what that comes up with then.

Thanks
Sharon J

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When all think alike, nobody is thinking much at all.
Quote Reply
Re: [Dioritt] Error Finding Library In reply to
Ok. I found an error in the path... it should have been home/friends/www/mysite/etc etc

I've changed this in the cfg file but still no joy. I'm still getting an error message.

Code:
Error including libraries: Can't locate home/friends/www/sitename/cgi-bin/links/admin/db.pl
in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
/usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at admin.cgi line 28.

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

What could it be now?

~Sharon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When all think alike, nobody is thinking much at all.

Last edited by:

Dioritt: Jan 19, 2005, 8:53 AM
Quote Reply
Re: [Dioritt] Error Finding Library In reply to
Should it be...


$db_script_path = "/home/friends/www/sitename.friendsyourway/cgi-bin/links/admin";



Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 19, 2005, 10:16 AM
Quote Reply
Re: [PerlFlunkie] Error Finding Library In reply to
Hi Leonard

I tried that and it's still giving me the same error message.

I'm going to be bald soon at this rate Frown

~Sharon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When all think alike, nobody is thinking much at all.
Quote Reply
Re: [Dioritt] Error Finding Library In reply to
Send me the link to the script that shows your server variables and I can tell you what to put in there.

cgi@defend.net

Tim Mousel
CGI & PHP Script Installation Center

Five Star Review

Last edited by:

Tim Mousel: Jan 26, 2005, 12:15 PM
Quote Reply
Re: [Tim Mousel] Error Finding Library In reply to
Hey,
I'm getting the same error. Hope you dont mind if I hijack this thread a bit. Consider it some free bumps. Smile

Code:

Error including libraries: Can't locate /folder/cgi-bin/admin/db.pl at /homepages/5/username/htdocs/folder/cgi-bin/admin/admin.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.


So, they exist, permissions are set properly.. must be the path.
I checked with my host and the proper path on the server is:

/kunben/homepages/5/username/htdocs/

So that must be the problem? This is what I have in the links.cfg file:

Code:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/folder/cgi-bin/admin";
$db_dir_url = "http://www.mydomain.com/cgi-bin/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/folder/pics";
$build_root_url = "http://www.mydomain.com/pics";


When I try and add the direct path in the links.cfg file like

/kunben/homepages/5/username/htdocs/folder/cgi-bin/admin
&
/kunben/homepages/5/username/htdocs/folder/pics

I get this error
Code:

Error including libraries: Can't locate /nnlinks/cgi-bin/admin/db.pl at /kunben/homepages/5/username/htdocs/homepages/5/username/htdocs/nnlinks/cgi-bin/admin/admin.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.


So I dont know what the heck the problem is. Any help would be HUGE and thanks for reading this.

Regards,
Sean.

Last edited by:

sean416: Feb 2, 2005, 11:12 PM
Quote Reply
Re: [sean416] Error Finding Library In reply to
Try this:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/homepages/5/username/htdocs/folder/cgi-bin/admin";
$db_dir_url = "
http://www.mydomain.com/cgi-bin/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/homepages/5/username/htdocs/pics";
$build_root_url = "
http://www.mydomain.com/pics";

OR THIS:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/homepages/5/username/htdocs/folder/cgi-bin/admin";
$db_dir_url = "
http://www.mydomain.com/cgi-bin/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/homepages/5/username/htdocs/folder/pics";
$build_root_url = "
http://www.mydomain.com/folder/pics";
CGI & PHP Script Installation Center

Five Star Review

Last edited by:

Tim Mousel: Feb 3, 2005, 12:20 PM
Quote Reply
Re: [Tim Mousel] Error Finding Library In reply to
Hey Man,
You're awesome. Worked on the first try. I really appreciate it thanks!

Regards,
Sean.
Quote Reply
Re: [sean416] Error Finding Library In reply to
Hi Sean,

No problem. Glad you've got it working.

Tim Mousel

CGI & PHP Script Installation Center

Five Star Review
CGI & PHP Script Installation Center

Five Star Review
Quote Reply
Re: [Tim Mousel] Error Finding Library In reply to
I seem to have the same problem, but I tried some of the suggestions here on this post with no success. What is meant by @INC? Every other part of my links works fine except the modify and random links. Below is my error message and links.cfg code. Thanks in advance.

Code:
Error including libraries: Can't locate links.cfg in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at modify.cgi line 30. Make sure they exist, permissions are set properly, and paths are set correctly.





Code:

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

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.bassonhook.com/links/cgibin";
Nootkan
Quote Reply
Re: [nootkan] Error Finding Library In reply to
Have you done what this line says (in modify.cgi)?

require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.

I have not seen cgi-bin written as cgibin before, but maybe it's correct for your server. But wouldn't the cgi-bin be the next level below public_html?

Like this:

/home/basshook/public_html/cgi-bin/links/admin

Yeah, I know the download has it the way you do, but that's an error (in my opinion).

And like the post above yours shows, you might try leaving off the /home.


Leonard
aka PerlFlunkie