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

Links 2.0 Error building pag

Quote Reply
Links 2.0 Error building pag
Hi

I am not able to run nph-build.cgi to build de data; telnet says:

euskal-internet: {9} % perl nph-build.cgi
syntax error in file nph-build.cgi at line 36, next 2 tokens "use vars"
syntax error in file nph-build.cgi at line 57, next 2 tokens "} and"
Illegal modulus of constant zero in file nph-build.cgi at line 73, next 2 tokens
"in ="
Illegal expression (MODULO) as lvalue in file nph-build.cgi at line 73, next 2 t
okens "\parse_form;"
Illegal modulus of constant zero in file nph-build.cgi at line 77, next 2 tokens
"steps ="
syntax error in file nph-build.cgi at line 77, next 2 tokens "=>"
Execution of nph-build.cgi aborted due to compilation errors.


Running through a browser:

>Pages built on 21-Feb-1999 at 21:52:55
>--------------------------------------------------------
>
>Backing up database . . .
> Backup exists for today.. Skipping
>Done.
>
>Building URL Index . . .
>Done.
>
>Updating New and Popular Records . . .
> What's New Cutoff: 14 days
> Popular Cutoff: 2 hits
>Done.
>
>Updating ratings ..
>Done.
>
>Loading Category Information . . .
>Done.
>
>Gathering Category and Link information . . .
>Done
>
>Building Home Pages . . .
> Subcategories: 22
> Total Links: 954
> Opening page:
>/usr/local/etc/httpd/htdocs/buscona/links55/pages/index.html
>
>CGI ERROR
>==========================================
>Error Message : fatal error: (Maybe you didn't strip carriage
>returns after a network transfer?)
>
>Script Location :
>/usr/local/etc/httpd/htdocs/buscona/links55/cgi-bin/admin/nph-build.cgi
>Perl Version : 5.00404


Files has been uploaded compressed as originals and unzipped
into server. Permissions should be OK.
Maybe LWP module? or Lwp?

Thanks for any help
Niko
Quote Reply
Re: Links 2.0 Error building pag In reply to
This:
Quote:
>CGI ERROR
>==========================================
>Error Message : fatal error: (Maybe you didn't strip carriage
>returns after a network transfer?)

shows that you didn't upload all of your files as ASCII text. You need do delete the files that you did not upload as ASCII text and re-upload them as ASCII text.
Quote Reply
Re: Links 2.0 Error building pag In reply to
Also check the top of the script to make sure it is pointing to Perl 5 and not Perl 4.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/