Gossamer Forum
Home : Products : DBMan : Installation :

Insecure dependency in require while running with -T switch

Quote Reply
Insecure dependency in require while running with -T switch
I messed up my previous post, by editing rather than posting a reply to it. So if this is a repeat please forgive me.

I got to the login boxes of the demo and attempted to login and got the following error.

The demo is at
http://www.mrkopy.com/cgi-bin/dbman/db.cgi

The only things I changed are the script path in db.cgi, and I turned flock off since this is an NT machine, and set the cgi url.


Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Insecure dependency in require while running with -T switch at D:\direct16\cgi-bin\dbman\db.cgi line 52.

Script Location : D:\direct16\cgi-bin\dbman\db.cgi
Perl Version : 5.00307
Setup File : default.cfg
Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
That's a new one for me! I'd sure like it if someone with NT experience would jump in here.


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





Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
interestingly enough I thought I'd try the same set of files on a different NT server. And it works perfectly. So it must be some weird thing on this particular server. Unfortunatly the site that I'm doing it for is hosted on the server that gives me that funky error.

This is the same server that I can't figure out how to get my cgi script to mail things. But that's more or less something I don't know how to do on NT, and the tech support pages is not doing much for me either.

The stupid thing is I can do all this and more on unix.

-very frustrated NT webdeveloper
Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
If I hadn't decided it before, I would be convince now that I will only work with Unix servers. Smile

There's some stuff in the other DBMan forum (DBMan Discussion) about using an SMTP (or is it SMPT?) mailer instead of sendmail. Try doing a search for SMTP.


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





Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
First of all, flocking does work on Windows NT. It does not work on Windows 95. Could you please write the complete paths that you wrote in your db.cgi file??

The -t switch is typically used for sendmail routines. Also, with regards to the sendmail problem you are experiencing...You either need to install Blat Mail as a sendmail program or use SMTP. I've found that while SMTP routines do not allow as much functionality than sendmail routines, they do work more efficiently on an NT server.

Hope this helps. I feel your pain. I tackled with getting perl and cgi scripts to run on our NT server for two months. But now I don't mind programming on NT. Of course, there are other alternatives, like active server page (ASP) programming, which allows you to connect to database tables, like Access via DSN files, and run dynamic queries...although I prefer Perl.

My suggestion is that you save your db.cgi and default.cfg files as .txt files and post
the URLS where we can access your files.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
http://www.mrkopy.com/cgi-bin/dbman/default.txt
http://www.mrkopy.com/cgi-bin/dbman/db.txt

$db_script_path = "d:/direct16/cgi-bin/dbman";

Actually, I got this program to work beautifully on another NT server. I think that there's something configured oddly on www.wipc.net site. I still would like to know the cause of the problem I'm currently expericing on that server though.

As for sendmail. I have >yet< to figure out how to sendmail from any NT server. I understand the theory that I should install blat or something like that, except that I can't since I only have ftp access to most of the NT servers the sites I'm working on are hosted. On this pariticular server, wipc.net I believe that I'm suppose to use formmail.pl, except that they don't tell you how or where it's located.

I guess I'll change that flock option. =)

Thank you for you help.

-lisa
Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
Your default.cfg file looks kosher...no problems there that I can see.

One potential problem I saw in your db.cgi file is that you do not include the full absolute path to your default.cfg file in the following lines:

Code:
require "$db_setup.cfg"; # Database Definition File
require "auth.pl"; # Authorization Routines

Try changing it to:

Code:
require "d:/direct16/cgi-bin/dbman/default.cfg"; # Database Definition File
require "d:/direct16/cgi-bin/dbman/auth.pl"; # Authorization Routines

Also, what your permissions for your files?

Make sure that you have the following permissions set for the files and directory:

1) db.cgi

IUSR\MACHINENAME: RW
IWAM\MACHINENAME: RWX
Everyone: RW

2) default.db

IUSR\MACHINENAME: RW
IWAM\MACHINENAME: RW
Everyone: RW

3) default.pass

IUSR\MACHINENAME: RW
IWAM\MACHINENAME: RW
Everyone: RW

4) default.log

IUSR\MACHINENAME: RW
IWAM\MACHINENAME: RW
Everyone: RW

5) auth directory

IUSR\MACHINENAME: RWX
IWAM\MACHINENAME: RWX
Everyone: RW

Also, with regards to the sendmail program...formmail.pl is a perl script that I believe is from Matt's Simple Scripts. What I would do is check the formmail.pl file and look for the sendmail path. This is the same path that you will have to use for DBMAN to work with sendmail. If you do not have direct access to this file and you have access to an SMTP server in the network, then use SMTP. Take JPDeni's advice, search for SMTP in the DBMAN Discussion Forum.

Smile

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 22, 1999).]
Quote Reply
Re: Insecure dependency in require while running with -T switch In reply to
check out:

http://www.irt.org/articles/js099/index.htm#12

for info on the -T switch why its used and how to get around it.

------------------
JGU