Gossamer Forum
Home : Products : Others : MySQLMan :

500 Error or Error loading required libraries

Quote Reply
500 Error or Error loading required libraries
I installed the files into cgi-bin/mysqlman. (cgi-bin/mysqlman, cgi-bin/mysqlman/gt, cgi-bin/mysqlman/templates, cgi-bin/mysqlman/help). I modified the mysql.cgi file to "use lib '/home/server.com/cgi-bin/mysqlman';". I have also tried just "use lib '/cgi-bin/mysqlman';".
My error log shows No such file or directory: exec of /home/server.com/cgi-bin/mysqlman/mysql.cgi failed
Premature end of script headers: /home/server.com/cgi-bin/mysqlman/mysql.cgi

When I run perl -c mysql.cgi it says mysql.cgi syntax OK.
When I run ./mysql.cgi it says bash: ./mysql.cgi: No such file or directory

I have modified the mysql.cfg file for the template and help files to point to /home/server.com/cgi-bin/mysqlman/templates and help respectfully. I have also used the just /cgi-bin/mysqlman/templates and help respectfully also.

When I run perl -P mysql.cgi I get;
newman@alphablue:~/cgi-bin/mysqlman$ perl -P mysql.cgi
:69: unterminated character constant
:420: unterminated character constant
:449: parse error
:1925: unterminated string or character constant
:1926: unterminated string or character constant
:2129: unterminated string or character constant
:2132: unterminated string or character constant
:2171: unterminated string or character constant
:2174: unterminated string or character constant
:2255: unterminated string or character constant
:2348: unterminated string or character constant
:2954: unterminated string or character constant
:3005: unterminated string or character constant
:2370: unterminated `#else' conditional
Missing right curly or square bracket at mysql.cgi line 450, at end of line
syntax error at mysql.cgi line 450, at EOF
Execution of mysql.cgi aborted due to compilation errors.


Do I need to modify the mysql.cgi file for the SCRIPT_PATH? If so what?

Any help would be appreciated.

I am using an Apache server (virtual hosting)( Apache/1.3.14 (Unix) ) if that means anything, perl -v reports This is perl, v5.6.0 built for i686-linux.



Quote Reply
Re: 500 Error or Error loading required libraries In reply to
In Reply To:
When I run ./mysql.cgi it says bash: ./mysql.cgi: No such file or directory
This means your path to perl is wrong. Try:

which perl

and then make sure the first line of your script points to the proper place. You should be able to type ./mysql.cgi and see the full html output.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: 500 Error or Error loading required libraries In reply to
Thanks that took care of the ./mysql.cgi portion, but I am still getting Error loading required libraries

Reason: Can't locate GT/CGI.pm in @INC (@INC contains: /cgi-bin/mysqlman /usr/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl .) at /home/gayconnector.com/cgi-bin/mysqlman/mysql.cgi line 3181.

I changed the mysql.cgi file to include use lib '/home/server.com/cgi-bin/mysqlman';.

Any other suggestions. I have tried '/cgi-bin/mysqlman'; and '/home/.../cgi-bin/mysql-bin'; also.

Thanks for your help.

Gary

Quote Reply
Re: 500 Error or Error loading required libraries In reply to
Hi,

Set the use lib to:

use lib '/home/gayconnector.com/cgi-bin/mysqlman';

In the error you should see that path in the @INC listing, otherwise you didn't set it properly. =)

Cheers,

Alex

--
Gossamer Threads Inc.