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

Required Libraries

Quote Reply
Required Libraries
Elliot,
I know that you have answered this question serveral times before. I ahve searched the entire forum.

One of the messages states to include the correct path to links.cfg in the admin.cgi. This is okay here.

Is this a problem with the version of perl on my server?

I have Perl 5.004 and perl 5.003. I am pointing to perl 5.003 at the moment. If I change the path on all of the CGI scripts etc to point to perl 5.004 do you think that this would sort it out?

The error I am getting is below.

Thanks in advance. I really appreciate the help.

Maeve

Error including libraries: Can't locate /www/nightcourses/cgi-bin/links/cgi-bin/admin/links.cfg in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at admin.cgi line 27.

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: Required Libraries In reply to
Use Perl 5.004. And use the correct path to this version of Perl.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Required Libraries In reply to
Hi Elliot,

Thank-you for your reply.
I have changed the path in all the CGI and PL to #!/usr/bin/perl5.004

No joy :-(

Error including libraries: syntax error at /www/nightcourses/cgi-bin/links/admin/links.cfg line 56, near "http:"

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

The absolute path in admin.cgi IS correct and all of the paths in links.cfg are correct.

I have gone into telnet "perl -c admin.cgi"
According to this the syntax of admin.cgi is fine.

Have you got any other tips.

Forum
path to links.cfg in admin.cgi - DONE
path to perl 5.004 - DONE
path to insanity - ALMOST DONE Smile

Maeve




------------------
http://www.simplywebdesign.com
Quote Reply
Re: Required Libraries In reply to
Okay,
I have also tried putting in

require "$db_script_path/links.cfg";
require "/www/path to links.cfg"
require "http://path to links.cfg"

How much straighter can the path be?

Maeve

------------------
http://www.simplywebdesign.com
Quote Reply
Re: Required Libraries In reply to
You are confusing PATHS. The error message indicates that you are attempting to use the VIRTUAL path to your links.cfg file in the require line.

WHAT IS THE ABSOLUTE PATH THAT YOU SEE WHEN YOU LOG INTO YOUR ACCOUNT VIA TELNET??????

It should look something like the following:

Code:
www13:/sct/web/guide/YOURACCOUNT/

You would use the following:

Code:
require "/sct/web/guide/YOURACCOUNT/cgi-bin/links/admin/links.cfg";

AND by not including the COMPLETE ABSOLUTE DIRECTORY, the SCRIPT is unable to find to the CONFIG file, and THUS unable to find the value for the $db_lib_path variable, AND THUS, it cannot find the other needed required scripts.

I REALLY hope this helps.

*sigh* Wink

BTW: One of my personal pet peeves is the saying No joy...FYI.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited February 25, 2000).]
Quote Reply
Re: Required Libraries In reply to
Eliot,

I know the differenct between an absolute path and a virtual path. I have tried this lastnight and it results in a download of the same error message. Others on the board have had this problem too. Is there any other part of the scripts that I might check - becasue this absolute path is correct.


/www/nightcourses/cgi-bin/links/admin/links.cfg

If we get this links program working it will
need to be moved to the full sql version at a later date.

As gfor the "No Joys" .. such is life!!

Maeve

------------------
http://www.simplywebdesign.com
Quote Reply
Re: Required Libraries In reply to
 
This is the absolute path by doing a pwd at the telnet prompt.


$ pwd
/home/nightcourses/www/cgi-bin/links/admin/links.cfg


The webhost says that the absolute path is /www/nightcourses/cgi-bin/links/admin/links/links.cfg


I have tried both

Error including libraries: syntax error at /home/nightcourses/www/cgi-bin/links/admin/links.cfg line 56, near "http:"

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

:-( :-(
Quote Reply
Re: Required Libraries In reply to
Contact your hosting company and ask for assitance in setting up the scripts.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Required Libraries In reply to
I have been on to my hosting company.

I'll look for another script to use because there is nothing wrond with the absolute paths that we are using - we have followed all the instructions.

Thank-you for your help.

Shame the scripts could not be configured for this server though.

Maeve