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

Slight problem

Quote Reply
Slight problem
Just installed Links and everything works great when I add my first category and first link. BUT ... when I try to make the build this happens:

Error including libraries: .../cgi-bin/admin/site_html_templates.pl did not return a true value at .../cgi-bin/admin/nph-build.cgi line 34.

Make sure they exist, permissions ...


What can this be??

Thanx!!!! Smile
Quote Reply
Re: Slight problem In reply to
Make sure that you have included the COMPLETE absolute PATH to your links.cfg file in the require line in the nph-build.cgi script.

Regards,
Quote Reply
Re: Slight problem In reply to
Tnanx for you reply. I have done this, but still get the same error, something else seems to be wrong...
Quote Reply
Re: Slight problem In reply to
Have you made any changes to the nph-build.cgi file or the site_html_templates.pl file?

Regards,

------------------
Eliot Lee....
* Check Resource Center
* Search Forums

Quote Reply
Re: Slight problem In reply to
nope...
Quote Reply
Re: Slight problem In reply to
What are the codes you have in the nph-build.cgi file around line 34?

Copy the codes a few lines before and a few lines after line 34.

Regards,

------------------
Eliot Lee....
* Check Resource Center
* Search Forums

Quote Reply
Re: Slight problem In reply to
# Required Librariers
# --------------------------------------------------------
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "/web/server/public_html/cgi-bin/links/admin/links.cfg";
# Change this to full path to links.cfg if you have problems.

require "$db_lib_path/db_utils.pl";
require "$db_lib_path/links.def";
$build_use_templates ?
require "$db_lib_path/site_html_templates.pl" :
require "$db_lib_path/site_html.pl";
use vars qw(%category %subcategories @links @new_links @cool_links %stats $grand_total $use_html $nph $date $time);
};
if ($@) {
print "HTTP/1.0 200 OK\n";
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
exit;
}
# ========================================================