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

repeated error

Quote Reply
repeated error
Hello

I've been trying to install this script and have come across multiple errors whilst doing it. Some I have been able to fix but now I am baffled. I have searched through the forum for an answer but couldn't find one. I get the following error when trying to access admin.cgi

Error including libraries: Can't locate /cgi-bin/links/admin/links.cfg in @INC (@INC contains: /home/sites/site36/web/cgi-bin/links/admin /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/sites/site36/web/cgi-bin/links/admin/admin.cgi line 27.

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

I have checked permissions and path and they seem to be correct, also I know I uploaded in ASCII mode. I have also changed all the cgi files so that the direct path to links.cfg is there.

Thanks for your help.

Laura

Quote Reply
Re: repeated error In reply to
Try using the absolute path to links.cfg in your admin.cgi file, such as:
Code:
"/home/yourdomain/www/cgi-bin/links/admin/links.cfg"
Quote Reply
Re: repeated error In reply to
Or he could try re-uploading it, Checking it is CHMODed correctly (666), and then if both of them fail do what thomas1 suggested.

Hope this helps

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: repeated error In reply to
youradds what are you talking about?

The error is to do with the paths...why are you telling him to re-upload and chmod to 666?...That is wrong...

Thomas gave the correct answer.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: repeated error In reply to
Oh, well sorry.....Frown

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: repeated error In reply to
OK thanks for your help guys. I put in the absolute path like you said and I now get the following error

Error including libraries: Can't locate /cgi-bin/links/admin/db.pl in @INC (@INC contains: /home/sites/site36/web/cgi-bin/links/admin /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at /home/sites/site36/web/cgi-bin/links/admin/admin.cgi line 28.

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

Any ideas?

Laura

Quote Reply
Re: repeated error In reply to
Make sure ALL scripts include the FULL paths...

links.cfg
add.cgi
jump.cgi
search.cgi
modify.cgi
rate.cgi
subscribe.cgi
admin.cgi
nph-build.cgi
nph-verify.cgi
nph-email.cgi

.....by doing that (as long as the path is correct)...all those kinds of errors will disappear.


Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: repeated error In reply to
Also make sure all of the files are CHMODed correctly (usually to 666, or 755, see the readme for more info)

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: repeated error In reply to
Again youradds.....that kind of error isn't to do with chmodding.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: repeated error In reply to
Well, it worked when i have done it on some jobs. If things like db.pl and theose files arn't CHMODed to 666 this can cause it not to work....

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: repeated error In reply to
I know that they don't work if not chmodded properly but chmodding has nothing to do with the errors that this user is experiencing.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: repeated error In reply to
I changed all the .cgi files to include the full path and now it works! Thank you very much for your help.

Laura

Quote Reply
Re: repeated error In reply to
Actually I spoke to soon!! Although the admin panel now comes up, it won't let me build pages, it gives this error

The server encountered an internal error or misconfiguration and was unable to complete your request.

What now?!

Laura

Quote Reply
Re: repeated error In reply to
OK fixed that one by commenting out $nph++ as mentioned in another thread. But now verify won't work, I searched through for $nph++ in that script but there doesn't appear to be any. What could be wrong here?

Thanks so much for your help.

Laura

Quote Reply
Re: repeated error In reply to
In the nph-verify.cgi LOOK for the following codes:

Code:

require "links.cfg"; # Change this to full path to links.cfg if you have problems.
require "db_utils.pl";
require "links.def";


ADD your ABSOLUTE path before all the files in the require statements.

And if that doesn't work, simply rename the file to verify.cgi.



Regards,

Eliot Lee