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

nph-buil problem

Quote Reply
nph-buil problem
hi, when i try to build all in main menu of Links v2 a windows donwload open to me and when i open the file (nph-buil.cgi) i can read the next error
___________________________________
Error including libraries: Can't locate /usr/local/etc/httpd/vhosts/cuidanet.com/cgi-bin/links/admin/site_html_templates.pl in @INC (@INC contains: /usr/local/etc/httpd/vhosts/cuidanet.com/cgi-bin/links/admin /usr/local/lib/perl5/5.00503/i386-freebsd /usr/local/lib/perl5/5.00503 /usr/local/lib/site_perl /usr/local/lib/site_perl .) at /usr/local/etc/httpd/vhosts/cuidanet.com/cgi-bin/links/admin/nph-build.cgi line 18.

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

the first line of my nph-build.cgi is above:
# Required Librariers

eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \

require "/usr/local/etc/httpd/vhosts/cuidanet.com/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 "/usr/local/etc/httpd/vhosts/cuidanet.com/cgi-bin/links/admin/site_html_templates.pl" :
require "/usr/local/etc/httpd/vhosts/cuidanet.com/cgi-bin/links/admin/site_html.pl";
use vars qw(Ętegory %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;

What wrong in my file?
all the cgi seems run well, i can add categories, links, edit templates but i cannot build my pages.
Please help me
Ramon




Quote Reply
Re: nph-buil problem In reply to
Seems that you are using the incorrect Absolute Paths in your require lines.

Regards,

Eliot Lee