Gossamer Forum
Home : Products : DBMan : Installation :

Error loading required libraries.

Quote Reply
Error loading required libraries.
Can someone help. I have tried your suggestions for other people but can't seem to get it to work. This is the message that keeps coming up:-

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate http://web-net.com.au/cgi-bin/dbman/html.pl in @INC (@INC contains: http://web-net.com.au/cgi-bin/dbman /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at default.cfg line 53.

Script Location : db.cgi
Perl Version : 5.00404
Setup File : default.cfg
Quote Reply
Re: Error loading required libraries. In reply to
I have similar problem...

What should I set for

$db_dir_url = ?? (in default.cfg)

is it: /data1/hypermart.net/myusername/cgi-bin

(this is the default fully qualified filepath for my directory at hypermart)

or : http://www.hypermart.net/myusername/cgi-bin

(full http path)

Both of them just don't seem to be working... and gave me the follwing error message:

CGI ERROR
=================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: (Maybe you didn't strip carriage returns after a network transfer?)

Script Location : db.cgi
Perl Version : 5.00404
Setup File : default.cfg
-------------------------------------------------------------------
Someone please help! Thanks a lot!
Quote Reply
Re: Error loading required libraries. In reply to
I'm also having similar difficulties. Below is part of the default.cfg file unedited & as I downloaded it. You'll notice that the last line has the word 'require' rather than something like $db_********** = $db_script_path . "/html.pl";
I wonder if this is the problem - this would explain why the error messages seem to be only regarding this line & not the previous ones.



# File and URL's
# --------------------------------------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://localhost/cgi-bin";
# URL of dbman.
$db_script_url = $db_dir_url . "/db.cgi";
# Full Path and File name of the database file.
$db_file_name = $db_script_path . "/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/default.count";
# Full path and file name of the authorization directory.
$auth_dir = $db_script_path . "/auth";
# Full path and file name of the password file.
$auth_pw_file = $db_script_path . "/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/html.pl";

Quote Reply
Re: Error loading required libraries. In reply to
The "require" line is there so that the script will load the file. The previous lines are setting variables.

What exactly is the problem you're having? Are you getting an error message? What does it say? What kind of system are you running on? Unix? NT? Windows? Mac?



------------------
JPD





Quote Reply
Re: Error loading required libraries. In reply to
johnkim:

For hypermart servers your $db_dir_url = ?? (in default.cfg)

would be: http://username.hypermart.net/cgi-bin/

PB:

Think in terms of how you would access this directory from your browser:

Say if your your web url is http://hillsend.netlink.net/

then use: $db_dir_url = "http://hillsend.netlink.net/cgi-bin";
Quote Reply
Re: Error loading required libraries. In reply to
I am having similar problems. The error message I get is:

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate http://localhost/cgi-bin/html.pl in @INC (@INC contains: http://localhost/cgi-bin D:/Perl/lib D:/Perl/site/lib .) at default.cfg line 51.

Script Location : D:\Program Files\sambar41\cgi-bin\db.cgi
Perl Version : 5.00503
Setup File : default.cfg

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
BLASTER : A220 I5 D1 H5 P330 T6
CMDLINE : WIN
COMSPEC : C:\COMMAND.COM
CONTENT_LENGTH : 0
CTCM : C:\CTCM
DOCUMENT_NAME : db.cgi
DOCUMENT_ROOT : D:/Program Files/sambar41/docs/
DOCUMENT_URI : /cgi-bin/db.cgi
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_HOST : localhost
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98)
MIDI : SYNTH:1 MAP:E
PATH : D:\Program Files\sambar41;D:\PERL\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DOS;C:\DBASE;C:\BATFILES;C:\VET;C:\NETLINK\TRUMPET
PATH_INFO :
PATH_TRANSLATED :
PROMPT : $P$G
QUERY_STRING :
RCEUSERNAME :
REMOTE_ADDR : 127.0.0.1
REMOTE_HOST : localhost
REMOTE_USER :
REQUEST_METHOD : GET
SCRIPT_FILENAME : D:/Program Files/sambar41/cgi-bin/db.cgi
SCRIPT_NAME : /cgi-bin/db.cgi
SCRIPT_URI :
SERVER_NAME : Peter
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : SAMBAR 4.1
SOUND : C:\VIBRA16
TEMP : C:\windows\temp
TMP : C:\WINDOWS\TEMP
WINBOOTDIR : C:\WINDOWS
WINDIR : C:\WINDOWS

Can anybody see what I am doing wrong? Thanks.



Quote Reply
Re: Error loading required libraries. In reply to
PB:

Are you running this on an NT server?

After searching forum threads for @INC I found a few suggestions to try:

1) Your Perl Path in the first line of the db.cgi file should be the following:

code: #!c:\perl\bin

2) The $db_script_path should be set-up in the following manner:

code: $db_script_path = "D:/websites/ibocs.com/cgi-bin";

I hope this helps, if not please try to search the forum and see how others have solved this. Or you could post that portion of your .cfg file so we can see what that line is you are referring to.
Quote Reply
Re: Error loading required libraries. In reply to
I would check out the topic 'Required Libraries' posted March 16th by vitorN if you're using a Unix/Linux server. You may well find that changing the 'oil-n-gas' part to your own name will work. Worked for me Smile
Quote Reply
Re: Error loading required libraries. In reply to
I replaced the files with fresh ones and got the demo working again. Then I added my pages generated by the configurator and it worked.

Thanks for your help!
Quote Reply
Re: Error loading required libraries. In reply to
I came across that error for the first time just last week. The only thing we could figure out was that the file became corrupted somehow.

Try using a new .cfg file. You should just be able to copy your fields and other configurations into a .cfg file.

I tried to find the cause of this for more than four hours straight and the only thing that worked was replacing the file. You may have to do the same thing with the html.pl file, after the default.cfg file is fixed.


------------------
JPD





Quote Reply
Re: Error loading required libraries. In reply to
I am having required library problems as well. I installed the script and the demo ran fine. I then customized it following the online tutorial and configurator. I've searched this message board high and low and cannot find a solution. Here's the error message:

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: default.cfg did not return a true value at /u/web/pcthik/cgi-local/dbman/db.cgi line 51.

Script Location : /u/web/pcthik/cgi-local/dbman/db.cgi
Perl Version : 5.00502
Setup File : default.cfg

Thank you very much in advance for any help you can render!