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

Error by NPH-Build

Quote Reply
Error by NPH-Build
Hello,

i have installed Links2 on a BSD-Machine. All routines will work fine. Also all Pathes and Variables are correctly setted up.
I know this, cause this isnīt my first install on a *NIX-Machine.

But there is an error, if i want build all pages and directorys.

Look here. This is the message from the script:

Collecting Category and Link-Information. . .
Ready

Generate Detail-Views. . .


CGI ERROR
==========================================
Fehlermeldung : Fatal Error: (Maybe you didn't strip carriage returns after a network transfer?)

Script-Location : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs/cyber
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_EXTENSION : Security/Remote-Passphrase
HTTP_HOST : www.cyberrunner.de
HTTP_REFERER : http://www.cyberrunner.de/kostenlos/cgi-bin/linkmachine/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.61 [en] (WinNT; I)
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/contrib/bin
QUERY_STRING :
REMOTE_ADDR : 152.163.162.162
REMOTE_HOST : 152.163.162.162
REMOTE_PORT : 2331
REQUEST_METHOD : GET
REQUEST_URI : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_NAME : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SERVER_ADMIN : webmaster@cyberrunner.de
SERVER_NAME : www.cyberrunner.de
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4
USER : puste

Sammele Kategorie- und Link - Information . . .
Fertig

Generiere Detailansichten . . .


CGI ERROR
==========================================
Fehlermeldung : Gravierender Fehler: (Maybe you didn't strip carriage returns after a network transfer?)

Script-Standort : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs/cyber
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_EXTENSION : Security/Remote-Passphrase
HTTP_HOST : www.cyberrunner.de
HTTP_REFERER : http://www.cyberrunner.de/kostenlos/cgi-bin/linkmachine/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.61 [en] (WinNT; I)
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/contrib/bin
QUERY_STRING :
REMOTE_ADDR : 152.163.162.162
REMOTE_HOST : 152.163.162.162
REMOTE_PORT : 2331
REQUEST_METHOD : GET
REQUEST_URI : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_NAME : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SERVER_ADMIN : webmaster@cyberrunner.de
SERVER_NAME : www.cyberrunner.de
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4
USER : puste

Sammele Kategorie- und Link - Information . . .
Fertig

Generiere Detailansichten . . .


CGI ERROR
==========================================
Fehlermeldung : Gravierender Fehler: (Maybe you didn't strip carriage returns after a network transfer?)

Script-Standort : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /usr/local/etc/httpd/htdocs/cyber
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_EXTENSION : Security/Remote-Passphrase
HTTP_HOST : www.cyberrunner.de
HTTP_REFERER : http://www.cyberrunner.de/kostenlos/cgi-bin/linkmachine/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.61 [en] (WinNT; I)
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/contrib/bin
QUERY_STRING :
REMOTE_ADDR : 152.163.162.162
REMOTE_HOST : 152.163.162.162
REMOTE_PORT : 2331
REQUEST_METHOD : GET
REQUEST_URI : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_FILENAME : /usr/local/etc/httpd/htdocs/cyber/kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SCRIPT_NAME : /kostenlos/cgi-bin/linkmachine/admin/nph-build.cgi
SERVER_ADMIN : webmaster@cyberrunner.de
SERVER_NAME : www.cyberrunner.de
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.6 FrontPage/3.0.4
USER : puste


If i call the script via telnet (perl -cw nph-build.cgi) i gett the following information:

"use" may clash with future reserved word at nph-build.cgi line 36.
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"
"my" may clash with future reserved word at nph-build.cgi line 73.
"in" may clash with future reserved word at nph-build.cgi line 73.
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;"
"my" may clash with future reserved word at nph-build.cgi line 77.
"steps" may clash with future reserved word at nph-build.cgi line 77.
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 "=>"
"my" may clash with future reserved word at nph-build.cgi line 82.
nph-build.cgi had compilation errors.

I donīt know, what the error is. I have no <CR> or <LF> in the script, but it will not run. Also i have unzipped the original-version on this server and copied the nph-build.cgi in its correct directory. The same error.

Could anyone help me to understand what my mistake is?

Thanks

Gareth

Quote Reply
Re: Error by NPH-Build In reply to
Sorry,
but i havenīt see, that i have make alot copy and paste....

Sorry sorry ... the BUILD-ERROR via browser comes only one up.

Gareth
Quote Reply
Re: Error by NPH-Build In reply to
Me again,

i have found a section wich describes my situation, but on a RAQ2 - Server.
But this is not so hard. I have tried the ASIS-Method. But no sites will be build. I have changed my httpd.conf to LoadModule ASIS and a little bit deeper i have activated the parsing-mod for asis.

But this doesnīt helps. If i klick the Build all Pages - Link on the Admin, i get a blank site without statement or errors.

If i call the script via telnet, i get the following error:

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

Hope anybody can help.

Thanks

Gareth
Quote Reply
Re: Error by NPH-Build In reply to
Your first error (Maybe you didn't strip carraige returns) is because you didn't upload in ascii.

The second error (Next two tokens) is because you are pointing to perl 4, not perl 5

--mark

------------------
Due to repeated requests for support via ICQ, I am once again offering support online.

The ONLY number I will accept requests on is #53788453. Messages sent to my other numbers will not pass through to me, as I have security settings set to ignore messages from users not on that list.

I don't know how often I will be active on this number, as it is for only when I am free to offer assistance.

Could this signature be any longer? :)