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

An interesting perl question

Quote Reply
An interesting perl question
I have a question that will enable me to RUN links but is not directly related....

I successfully add a category thru the web on admin.cgi. When I try to add a link to the database however, this message pops up upon clicking "Add a link" after filling out the form.

Code:
Error Message : fatal error: Can't locate Time/Local.pm in @INC (@INC contains:
/usr/local/etc/httpd/htdocs/dist/links/cgi-bin/admin /usr/local/lib/perl5/i386-bsdos/5.00404
/usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/i386-bsdos /usr/local/lib/perl5/site_perl .)
at /usr/local/etc/httpd/htdocs/dist/links/cgi-bin/admin/links.cfg line 160.

Now.... paying attention to the error message, if I telnet to the shell and CD to /usr/local/lib/perl5, i can see the directory "Time", and upon browsing that directory, Local.pm is in it! What could be causing the program to seemingly be searching the correct directory, but not be "seeing" the Time/Local.pm file within that directory?

On a side note, where does @INC pull it's paths from? Thanks! This is getting me close, I can feel it :p

[This message has been edited by JNman (edited May 23, 1999).]
Quote Reply
Re: An interesting perl question In reply to
Can't tell you why, but there is possible solution: Just copy the file in your admin-folder, This might help