Well if you would of read the Readme and any other install files like you
are suppost to when installing anything, that it would of walked you through
a proper install procedure.  You can't just install the .pm files.  DBI and
DBD's need to be compiled by the same compiler which compiled your perl.
Read those files.  Also you can use PREFIX=/home/.... arg for your 'perl
Makefile.PL' to isntall into a custom directory.

Ilya Sterin

-----Original Message-----
From: Ian Hobson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: Help - Non standard DBD/DBI install


Hi Folks,

The problem: I've written a web site thinking that DBI and DBD were
standard. Now I find they are not and the ISP will not load them for
everyone to use :(.  This is my first venture into PERL so I don't know
what I'm doing.

I need to load the DBD, DBI and CSV drivers into the web site's private
space. It is a virtual server.

I've used FindBin to find the CGI-BIN directory, and created a sub-
directory under it (perl) for the DBD and DBI modules.

into this directory I have placed the following files.

   DBI.pm
   DBI\DBD.pm
   DBD\CSV.pm
   SQL\statement.pm
   SQL\eval.pm
   SQL\STATEMENT\hash.pm
   TEXT\CSV_XS.pm

These are, I think, all the dependant modules that I need.

My code finds the DBI module but fails to load something and omits to
tell me what it is. :(

The screen returned is

Software error:
Can't locate loadable object for module DBI in @INC (@INC contains:
C:/Xitami/cgi-bin/perl C:/Perl/lib C:/Perl/site/lib .) at C:/Xitami/cgi-
bin/perl/DBI.pm line 182
BEGIN failed--compilation aborted at C:/Xitami/cgi-bin/perl/DBI.pm line
182.
Compilation failed in require at C:\Xitami\cgi-bin\page.pl line 28.
BEGIN failed--compilation aborted at C:\Xitami\cgi-bin\page.pl line 28.

Line 28 is my "use DBI;" line.

Line 182 is the end of the BEGIN block. There is a comment here about
this being caused by the drivers not being installed properly. It points
me to the readme and suggests I re-install. After wading through the
readmes for all these modules, I am none the wiser about how to fix my
problem.

Help please!

Am I missing a file? Have I placed one in the wrong place?

The system is aimed eventually at a Win2K server. I'm testing using
win2k and xitami.

Regards

Ian Hobson

Reply via email to