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

New installation problem

Quote Reply
New installation problem
Really installation was very easy and all has gone well apart from my own mistakes.

2 small problems and 1 question ... :-)

a: In Verifying Links the following error is coming up:

CGI ERROR
==========================================
Error Message : Fatal error: (Maybe you didn't strip carriage returns after a network transfer?)
at nph-verify.pl line 90

Script Location : nph-verify.pl
Perl Version : 5.00404

The script has been double double checked and there are NO C/R's in there.

line #90 is the one in the middle of the 3

# Set up any proxy settings from environment.
$checker->env_proxy();
# Please do not change the user agent.

Any ideas.

Problem 2

When adding as a user 'Build' is not confirming the addition. They do appear in validate.db and permissions are set to 755. My own additions from admin add perfectly.

Question:

I have in the region of 1000 links to add has anyone had experience of adding raw data offline and then uploading the data file for building.

Any help appreciated regards

Wayne
Quote Reply
Re: New installation problem In reply to
1) That error usually means that something was uploaded in binary instead of ascii. This is referring to a specific line number in nph-verify, which is strange. Perhaps some of the the files under the LWP folder did not get uploaded correctly? May want to double check that they are in ascii.

2) this is normal. When users add links, they go to validate instead of live. That way, you have to use the Validate function to make sure that you want the links in your database. Otherwise you'll wind up withh all kinds of off-topic stuff. Obviously this is not done when Admin is used, since you are supposed to be the only one using admin, and you know that you want YOUR links in there. Smile

--mark
Quote Reply
Re: New installation problem In reply to
Thanks Mark

Check the install and in fact reinstalled again making double sure everything went up in non-binary.

What library files are required I took LWP out of admin and got this error

Can't locate LWP.pm in @INC (@INC contains:
/home/pub/www/b/a/www.bayanihan.org/scripts/links/admin
/usr/share/lib/perl5/irix-n32/5.00404 /usr/share/lib/perl5
/usr/share/lib/perl5/site_perl/irix-n32 /usr/share/lib/perl5/site_perl
/usr/share/lib/perl5/sgi_perl .) at
/home/pub/www/b/a/www.bayanihan.org/scripts/links/admin/LWP/UserAgent.
pm line 104.
BEGIN failed--compilation aborted at
/home/pub/www/b/a/www.bayanihan.org/scripts/links/admin/LWP/UserAgent.
pm line 104.
BEGIN failed--compilation aborted at
/home/pub/www/b/a/www.bayanihan.org/scripts/links/admin/Validator.pm
line 26.
--
Using IO::Socket method instead.

I have put what pm files have been requested in various lib directories from Admin. However if its not too much trouble what lib files should be present and where

I have Admin
Admin/auto
Amin/HTML
Admin/HTTP
Admin/IO

and so on ....

I have copied the nesting as on my Intranet Perl installation.

Regards

Wayne
Quote Reply
Re: New installation problem In reply to
Bobsie

I have reinstalled Links on our other server and _everything_ has gone up ASCII the Verifying command now brings up a new error:

CGI ERROR
==========================================
Error Message : Fatal error: Can't locate object method "new" via package "Validator" at nph-verify.pl line 110.

Script Location : nph-verify.pl
Perl Version : 5.00404

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


Line 110 is: $checker = new Validator;

Its all very frustrating ....

Wayne
Quote Reply
Re: New installation problem In reply to
Sadly Bobsie ... no it did not help just the same with the original carriage return error
in line 90.

Uploaded _everything_ as ASCII from Unix to Unix my ISP have checked every file for CRs nothing.

Everything else seems to work apart from this.

Regards

Wayne
Quote Reply
Re: New installation problem In reply to
Perhaps it is the LWP module that your ISP installed (or hasn't installed) that may be the problem here instead of the Links LWP modules? As Mark said earlier, the line that is being pointed at (line 90) is weird because that is not actually calling up anything per se.

In Validator.pm, try uncommenting this line and see if it sheds any light on the problem:

Quote:
# use LWP: : Debug qw(+); # Turn on for copious LWP debugging info.

I had to put a space between : and Debug because UBB turns it into a smiley face otherwise.

[This message has been edited by Bobsie (edited July 19, 1999).]
Quote Reply
Re: New installation problem In reply to
Bobsie

Noop it makes no difference. :-(

I am not sure what lib files are set up on the server. Are you saying there should be
LWP on our cgi and another on the servers lib.

Sorry to be a nuisance as everything else works just fine. I even worked out how to compose data offline. So all I want to be able to do is validate.

Hope we can crack this small problem as the script set up very easily with no problems at all.

Regards

Wayne


CGI ERROR
==========================================
Error Message : Fatal error: (Maybe you didn't strip carriage returns after a network transfer?)
at nph-verify.pl line 90

Script Location : nph-verify.pl
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
CONTENT_LENGTH : 0
DOCUMENT_ROOT : <path>
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.bayanihan.org
HTTP_REFERER : Removed by wj
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
PATH : /usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc:/usr/bin/X11
QUERY_STRING :
REMOTE_ADDR : 195.102.199.1
REMOTE_HOST : p1.nas3.is4.u-net.net
REMOTE_USER :
REQUEST_METHOD : GET
REQUEST_URI : /scripts/links/admin/nph-verify.pl
SCRIPT_FILENAME : <path>/nph-verify.pl
SCRIPT_NAME : /scripts/links/admin/nph-verify.pl
SERVER_ADMIN : e2help@u-net.net
SERVER_NAME : www.bayanihan.org
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Zeus/3.1
TZ : BST
VSERVER_NAME : easy2

Quote Reply
Re: New installation problem In reply to
Don't delete the LWP out of admin. Put it back in. Reupload Validator.pm as ASCII, making sure the first letter is capitalized. The $checker is Validator.pm ( $checker = new Validator; ).

I hope this helps.

[This message has been edited by Bobsie (edited July 19, 1999).]
Quote Reply
Re: New installation problem In reply to
Make sure Validator.pm is in your admin directory, it is uploaded as ASCII (I know, you said it was, but double-check) and that the first letter is capitalized.
Quote Reply
Re: New installation problem In reply to
Yes it is in Links/Admin it is in ASCII and is cap _V_alidate.

I wrote to Alex giving him server details as Chris here in Sheffied suggested I should, but as yet I have heard nothing. Wven offered to pay :-)

Still frustrated

Wayne