Gossamer Forum
Home : Products : DBMan : Installation :

Error Message : Error loading required libraries.

Quote Reply
Error Message : Error loading required libraries.
CGI ERROR
Help, I know I am probably doing something wrong
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate default.cfg in @INC (@INC contains: . C:\Perl\lib C:\Perl\site\lib .) at D:\home\nt148B84\cgi-bin\dbman\db.cgi line 51.

Script Location : D:\home\nt148B84\cgi-bin\dbman\db.cgi
Perl Version : 5.00503
Setup File : default.cfg

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

Environment Variables
-------------------------------------------
COMPUTERNAME : NT148
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 0
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.ragpix.com
HTTP_PRAGMA : no-cache
HTTP_USER_AGENT : Mozilla/4.61 [en] (WinNT; I)
INCLUDE : C:\Program Files\Mts\Include
INSTANCE_ID : 338
LIB : C:\Program Files\Mts\Lib
LOCAL_ADDR : 216.156.147.84
NTRESKIT : C:\Ntreskit
NUMBER_OF_PROCESSORS: 1
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : C:\Perl\bin;C:\WINNT\system32;C:\WINNT;C:\Program Files\Mts;C:\Ntreskit;C:\Ntreskit\Perl
PATHEXT : .COM;.EXE;.BAT;.CMD;.VBS;.JS
PATH_INFO : /cgi-bin/dbman/db.cgi
PATH_TRANSLATED : D:\home\nt148B84\cgi-bin\dbman\db.cgi
PROCESSOR_ARCHITECTURE: x86
PROCESSOR_IDENTIFIER: x86 Family 6 Model 5 Stepping 2, GenuineIntel
PROCESSOR_LEVEL : 6
PROCESSOR_REVISION : 0502
REMOTE_ADDR : 151.197.17.166
REMOTE_HOST : 151.197.17.166
REQUEST_METHOD : GET
SCRIPT_NAME : /cgi-bin/dbman/db.cgi
SERVER_NAME : www.ragpix.com
SERVER_PORT : 80
SERVER_PORT_SECURE : 0
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Microsoft-IIS/4.0
SYSTEMDRIVE : C:
SYSTEMROOT : C:\WINNT
USERPROFILE : C:\WINNT\Profiles\Default User
WINDIR : C:\WINNT

My default.cfg:
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://ragpix.com/cgi-bin/dbman";
# 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";

Thanks, Monique
Quote Reply
Re: Error Message : Error loading required libraries. In reply to
omar:

Please see this thread and see if the solution provided will solve your problem:

http://www.gossamer-threads.com/scripts/forum/resources/Forum5/HTML/001975.html

If not, I'm sure if you search the forum for your error message you will find various solutions to try.

Hope this helps Smile
Quote Reply
Re: Error Message : Error loading required libraries. In reply to
You might need to change the $db_script_path in the db.cgi file. (Few people do, but sometimes it's necessary.)

Change it to:

Code:
$db_script_path = "D:/home/nt148B84/cgi-bin/dbman";

I know that the slashes are going the "wrong" way, but that's how they need to be in Perl.


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