Gossamer Forum
Home : Products : DBMan : Installation :

Error Message

Quote Reply
Error Message
I am getting this error again and again. I have tried everything by now but nothing seems to work. Below error message I have copied my default.cfg
-------------------------

Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Can't locate http://www.business-partner.com/cgi-bin/db/html/html.pl in @INC (@INC contains: http://www.business-partner.com/cgi-bin/db /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 16.

Script Location : db.cgi
Perl Version : 5.00404
Setup File : default.cfg

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /www/business-partner
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: da
HTTP_CONNECTION : Keep-Alive
HTTP_COOKIE : htscallerid=38760263000613D700007BEF00000000
HTTP_HOST : www.business-partner.com
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /usr/local/bin:/usr/bin:/bin
QUERY_STRING :
REMOTE_ADDR : 200.242.28.95
REMOTE_PORT : 1621
REQUEST_METHOD : GET
SCRIPT_FILENAME : /www/business-partner/cgi-bin/db/db.cgi
SCRIPT_NAME : /cgi-bin/db/db.cgi
SERVER_ADMIN : webmaster@business-partner.com
SERVER_NAME : www.business-partner.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Apache/1.3.4 (Unix) FrontPage/4.0.4.3 PHP/3.0.7
----------------------------
# URL of the directory dbman resides in. No Trailing Slash Please.
$db_dir_url = "http://www.business-partner.com/cgi-bin/db";
# 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 . "/database/default.db";
# Full path and file name of the counter file.
$db_id_file_name = $db_script_path . "/counter/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 . "/password/default.pass";
# Full path and file name of the log file.
$auth_log_file = $db_script_path . "/log/default.log";
# Full path and file name of the html routines.
require $db_script_path . "/html/html.pl";

%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
FirstName => [1, 'alpha', 40, 255, 1, '', ''],
LastName => [2, 'alpha', 40, 255, 1, '', ''],
Title => [3, 'alpha', 0, 6, 1, '', ''],
Company => [4, 'alpha', 40, 255, 1, '', ''],
Address => [5, 'alpha', 40, 255, 1, '', ''],
Address1 => [6, 'alpha', 40, 255, 0, '', ''],
City => [7, 'alpha', 40, 255, 1, '', ''],
State => [8, 'alpha', 40, 255, 0, '', ''],
ZIPCode => [9, 'alpha', 10, 20, 1, '', ''],
Country => [10, 'alpha', 0, 200, 1, '', ''],
Phone => [11, 'numer', 5, 25, 1, '', ''],
Fax => [12, 'numer', 5, 25, 0, '', ''],
Email => [13, 'alpha', 5, 40, 1, '', '.+\@.+\..+ '],
URL => [14, 'alpha', 40, 255, 1, 'http://', '^http://'],
Type => [15, 'alpha', 0, 60, 1, '', ''],
Industry => [16, 'alpha', 0, 60, 1, '', ''],
product1 => [17, 'alpha', 10, 60, 1, '', ''],
product2 => [18, 'alpha', 10, 60, 1, '', ''],
product3 => [19, 'alpha', 10, 60, 1, '', ''],
product4 => [20, 'alpha', 10, 60, 1, '', ''],
product5 => [21, 'alpha', 10, 60, 1, '', ''],
Description => [22, 'alpha', '70x4', 500, 1, '', ''],
Newsletter => [23, 'alpha', 0, 3, 1, 'Yes', 'Yes|No'],
Userid => [24, 'alpha', -2, 15, 0, '', ''],

);

$db_key = 'ID';
$db_key_track = 0;
$db_delim = '|';
$db_use_flock = 1;
$db_auto_generate = 1;
$db_benchmark = 1;
$db_debug = 1;
%db_select_fields = (
Title => 'Mr,Miss,Mrs',
Industry => 'Advertising/Marketing,Aerospace,Agriculture,Architectural/Engineering,Associations/Organizations,Automotive,Banking/Finance,Biomedical,Biot ech/Pharmaceutical,Chemicals,Communications/Media,Computers,Construction,Consulting,Consumer Goods,Education/Training,Electronics,Entertainment,Government,Healthcare,Hospitality,Information Technology,Insurance,Legal,Manufacturing,Mining,Miscellaneous,Public Administration,Publishing,Real Estate,Recruitment/Staffing,Research/Development,Restaurant,Retail,Security,Semiconductors,Services,Software,Telecommunications,Transportati on,Utilities/Gas/Electric,Wholesale Distribution',
Country => 'Afghanistan,Albania,Algeria,American Samoa,Andorra,Angola,Anguilla,Antigua and Barbuda,Argentina,Armenia,Aruba,Australia,Austria,Azerbaijan,Bahamas,Bahrain,Bangladesh,Barbados,Belarus,Belgium,Belize,Benin,Bermuda,Bhutan ,Bolivia,Bosnia and Herzegowina,Botswana,Bouvet Island,Brazil,British Indian Ocean Territory,Brunei Darussalam,Bulgaria,Burkina Faso,Burundi,Cambodia,Cameroon,Canada,Cape Verde,Cayman Islands,Central African Republic,Chad,Chile,China,Christmas Island,Cocos (Keeling) Islands,Colombia,Comoros,Congo,Cook Islands,Costa Rica,Cote DIvoire,Croatia,Cuba,Cyprus,Czech Republic,Denmark,Djibouti,Dominica,Dominican Republic,East Timor,Ecuador,Egypt,El Salvador,Equatorial Guinea,Eritrea,Estonia,Ethiopia,Falkland Islands,Faroe Islands,Fiji,Finland,France,French Guiana,French Polynesia,French Southern Territories,Gabon,Gambia,Georgia,Germany,Ghana,Gibraltar,Greece,Greenland,Grenada,Guadeloupe,Guam,Guatemala,Guinea,Guinea-Bissau,Guyana,Hait i,Heard and Mc Donald Islands,Honduras,Hong Kong,Hungary,Iceland,India,Indonesia,Iran,Iraq,Ireland,Israel,Italy,Jamaica,Japan,Jordan,Kazakhstan,Kenya,Kiribati,Korea,Democratic Peoples Republic of,Korea Republic of,Kuwait,Kyrgyzstan,Lao Peoples Democratic Republic,Latvia,Lebanon,Lesotho,Liberia,Libyan Arab Jamahiriya,Liechtenstein,Lithuania,Luxembourg,Macau,Macedonia,Madagascar,Malawi,Malaysia,Maldives,Mali,Malta,Marshall Islands,Martinique,Mauritania,Mauritius,Mayotte,Mexico,Micronesia Federated States of,Moldova Republic of,Monaco,Mongolia,Montserrat,Morocco,Mozambique,Myanmar,Namibia,Nauru,Nepal,Netherlands,Netherlands Antilles,New Caledonia,New Zealand,Nicaragua,Niger,Nigeria,Niue,Norfolk Island,Northern Mariana Islands,Norway,Oman,Pakistan,Palau,Panama,Papua New Guinea,Paraguay,Peru,Philippines,Pitcairn,Poland,Portugal,Puerto Rico,Qatar,Reunion,Romania,Russian Federation,Rwanda,Saint Helena,Saint Kitts and Nevis,Saint Lucia,Saint Pierre and Miquelon,Saint Vincent and the Grenadines,Samoa,San Marino,Sao Tome and Principe,Saudi Arabia,Senegal,Seychelles,Sierra Leone,Singapore,Slovakia (Slovak Republic),Slovenia,Solomon Islands,Somalia,South Africa,South Georgia and the South Sandwich Islands,Spain,Sri Lanka,Sudan,Suriname,Svalbard and Jan Mayen Islands,Swaziland,Sweden,Switzerland,Syrian Arab Republic,Taiwan,Tajikistan,Tanzania United Republic of,Thailand,Togo,Tokelau,Tonga,Trinidad and Tobago,Tunisia,Turkey,Turkmenistan,Turks and Caicos Islands,Tuvalu,Uganda,Ukraine,United Arab Emirates,United Kingdom,United States Minor Outlying Islands,United States of America,Uruguay,Uzbekistan,Vanuatu,Vatican City State (Holy See),Venezuela,Viet Nam Socialist Republic of,Virgin Islands (British),Virgin Islands (U.S.),Wallis and Futuna Islands,Western Sahara,Yemen,Yugoslavia,Zaire,Zambia,Zimbabwe'
);
%db_radio_fields = ( Newsletter => 'Yes,No' ); (Type => 'Exporter,Importer,Agent,Retail Store,Wholesaler');
%db_checkbox_fields =
$db_max_hits = 20;
$db_bold = 1;
$font = 'font face="verdana,arial,helvetica" size="2"';
$font_title = 'font face="verdana,arial,helvetica" size="4"';
$auth_no_authentication = 0;
$auth_allow_default = 0;
$auth_signup = 1;
@auth_signup_permissions = (1,1,0,1,0);
$auth_modify_own = 1;
$auth_view_own = 0;
$auth_user_field = 24;
$auth_time = 21600; # 6 hours (in seconds)
$auth_logging = 1;
@auth_default_permissions = (1,0,0,0,0);
$auth_logoff = "http://www.business-partner.com/";

foreach (sort { $db_def{$a}[0] <=> $db_def{$b}[0] } keys %db_def) {
push (@db_cols, $_);
$db_sort{$_} = $db_def{$_}[1];
$db_form_len{$_} = $db_def{$_}[2];
$db_lengths{$_} = $db_def{$_}[3];
$db_not_null{$_} = $db_def{$_}[4];
$db_defaults{$_} = $db_def{$_}[5];
$db_valid_types{$_} = $db_def{$_}[6];
($_ eq $db_key) and $db_key_pos = $db_def{$_}[0];
}
1;


Quote Reply
Re: Error Message In reply to
Make sure that you do not have the /html/ directory in the $db_script_path in the db.cgi file.

If your html.pl file is in a different directory than $db_script_path, then you have to include the COMPLETE FULL absolute directory for the html.pl file, like the following:

Code:
require "/path/to/cgi-bin/html/html.pl";

Hope this helps.

BTw: The better thing to do when posting codes is save your files as text files, upload them to a publicly accessible directory on your server, and then post the URL where we can see the files.

Posting multiple screens of codes in these forums is hard to read.

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
----------------------






Quote Reply
Re: Error Message In reply to
I just answered your duplicate Thread.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
----------------------