Gossamer Forum
Home : Products : Others : MySQLMan :

CGI ERROR

Quote Reply
CGI ERROR
I have set the $script_path manually as many post have suggested but I still get the following error.

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: [Tue May 30 18:16:30 2000] mysql.cgi: Can't locate DBI.pm in @INC (@INC contains: /home/httpd/cgi-bin/mysqlman/ /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/httpd/cgi-bin/mysqlman/mysql.cgi line 47.

Script Location : /home/httpd/cgi-bin/mysqlman/mysql.cgi
Perl Version : 5.00503


It exist at /usr/lib/perl5/site_perl/DBI.pm
Why can't mysql.cgi find it? I have other cgi programs using the DBI.pm without problems.



"Don't confuse having a career with having a life.
They are NOT the same."
Quote Reply
Re: CGI ERROR In reply to
Did you have to edit the other programs to point to your DBI.pm? Or is it in the default location?

Do you need to have a line like: use lib /xyz/qrs/dbi
in the other files?

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: CGI ERROR In reply to
I have not had to edit the other programs. They work find. If it help the other program that is using DBD and DBi is udmsearch. That was the initial reason they were installed.

FYI - There is no ASCII/Binary issues either with the scripts or their support files.

"Don't confuse having a career with having a life.
They are NOT the same."
Quote Reply
Re: CGI ERROR In reply to
Did you have to edit the other programs to point to your DBI.pm? Or is it in the default location?

Do you need to have a line like: use lib /xyz/qrs/dbi
in the other files?

pugdog,please say,what files i must modify


Quote Reply
Re: CGI ERROR In reply to
That may be an odd place for DBI. I'm not sure.

Try, at the very top of the program, after the #! /usr/local/bin/perl line:

BEGIN {unshift @INC, '/usr/lib/perl5/site_perl'}

See if adding the missing path makes a difference.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/