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

pb including librairies

Quote Reply
pb including librairies
I've got the following message :

------------
Error including libraries: Can't locate links.cfg in @INC (@INC contains: /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at admin.cgi line 27.
-----------

when running admin.cgi, itīs in the line including links.cfg.
I modified (as indicated in the script) the require with the full path. This also does not work.

I have otherwise got the script running localy on my machine (linux/apache) without pbs. Something wrong with my provider config/rights ??

Thank you for giving me hints if anybody had a similar pb.
Quote Reply
Re: pb including librairies In reply to
It sounds more like something is wrong with the path to links.cfg. Are you sure it is correct? Can you post the path to your admin directory and the path to your links.cfg file here?
Quote Reply
Re: pb including librairies In reply to
I'm pretty new at cgi but I think I have an answer to your problem because I had the same one.

Make sure you delete the "$db_lib_path/" after "require" in order for it to work. So it will look like:

require "links.cfg";
require "db.pl";
require "db_utils.pl";
require "admin_html.pl";


If you do this and whenever the problem occurs, it should solve it.