Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Error including libraries:- after links.cfg change

Quote Reply
Error including libraries:- after links.cfg change
Hi All,

I just changed "one tiny thing" in my .cfg file on a site that has been running Links 2.0 for >12 months without problem.

When I go to "Build All" now I get...
----------------------------------------------------
Error including libraries: links.cfg did not return a true value at /usr/home/search/public_html/cgi-bin/links/admin/nph-build.cgi line 30.

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

- perms are correct(eg: unchaged)
- paths are correct(eg: unchanged)

The change in the .cfg was $build_extension - to .shtml from .html

Any help appreciated

Thanks

Dave

Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Make sure that you have:

Code:

$build_extension = ".shtml";


And then look in your nph-build.cgi at lines around line 30!

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Hi Eliot,

Thanks

Yep - thats the syntax... I actually changed it back to ".html"; and still get the same error...:(

and I get the same error when I try to access admin.cgi now.:(

----------------------------------------------------
Error including libraries: links.cfg did not return a true value at /usr/home/search/public_html/cgi-bin/links/admin/admin.cgi line 27.

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

I went thru the .cfg line by line(and am doing it again.) to see if I had "changed" something without knowing, but I can find no errors.

Dave

Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Please check LINE number 27 in the admin.cgi script and then LINE number 30 in the nph-build.cgi script?

Do you know how to check the syntax of the scripts?
Do you knw how to view line numbers via your offline or online editors (vi)???

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Hi Eliot,

> Do you know how to check the syntax of the scripts?
> Do you knw how to view line numbers via your offline or online editors (vi)???

Yes and Yes..:)

line 27 admin.cgi is - require "links.cfg";
line 30 nph_build_.cgi is - require "links.cfg";

I have tried putting in the full path as recommended
(require "links.cfg"; # Change this to full path to links.cfg if you have problems.)

-> same error

Dave

Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
You need to use the following:

Code:

require "/absolute/path/to/links.cfg";


Replace /absolute/path/to to your ABSOLUTE path where the links.cfg is located!

Refer to the MANY threads in the Links 2.0 Installation-UNIX Forum. Search for Error including links cfg!

Regards,

Eliot Lee
Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Yes tried that already..:((

---------------------------------------------------
Error including libraries: /usr/home/search/public_html/cgi-bin/links/admin/links.cfg did not return a true value at /usr/home/search/public_html/cgi-bin/links/admin/admin.cgi line 27.

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

Heading for the installation forums...

Dave

Quote Reply
Re: Error including libraries:- after links.cfg change In reply to
Problem solved.:)))

Thanks for your assistance Eliot.

I had a syntax error in #Extra Paths that i must have inadvertently caused.

Dave