DBI Module for windows
am 11.07.2006 16:34:25 von Andreas Bauer
Hello NG,
I installed ActivePerl for windows and want to install a DBI Module, but it
fails. I tried from ActivePerl page dbi 1.25 with perl -MCPAN -e "install
Bundle:DBI". The result is, that at teh end of compiling the package, there
is a errormessage:
nmake for windows not found.
Do someone have experiences with DBI moules for Win32?
Best regards
Andreas
Re: DBI Module for windows
am 11.07.2006 18:23:53 von Juha Laiho
"Andreas Bauer" said:
>I installed ActivePerl for windows and want to install a DBI Module, but it
>fails. I tried from ActivePerl page dbi 1.25 with perl -MCPAN -e "install
>Bundle:DBI". The result is, that at teh end of compiling the package, there
>is a errormessage:
>nmake for windows not found.
Looks like John Bokma can help you there. Google found this (as the first
hit) with keywords perl windows nmake.
http://johnbokma.com/perl/make-for-windows.html
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Re: DBI Module for windows
am 12.07.2006 00:20:24 von Andreas Bauer
Juha Laiho wrote:
> Looks like John Bokma can help you there.
> http://johnbokma.com/perl/make-for-windows.html
Installed nmake.exe and nmake.err, but at compling with
perl -MCPAN -e "install Bundle::DBI"
the script stopped at the line, - t/ithreadm......ok 1/10Terminat:
Running make test
Microsoft (R) Program Maintenan
Copyright (c) Microsoft Corp 19
F:\Perl\bin\perl.exe "-
ib\lib', 'blib\arch')" t/*.t
t/base..........ok
t/config........ok
t/fork..........skipped
all skipped: no reason
t/forkm.........skipped
all skipped: no reason
t/ithread.......ok
t/ithreadm......ok 1/10Terminat
So that I had to ended it with STRG C.
Then script did:
NMAKE : U1058:
Stop.
Terminating on signal SIGINT(2)
If I run my application adressbuch.pl there are folowing
errormessages of the apache error.log:
[Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] Premature end of
script headers: adressbuch.pl, referer:
http://192.168.0.24/adressbuch/adressbuch.html
[Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] Can't locate
loadable object for module DBI in @INC (@INC contains: F:/Perl/lib
F:/Perl/site/lib .) at F:/Perl/lib/DBI.pm line 254\r, referer:
http://192.168.0.24/adressbuch/adressbuch.html
[Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] BEGIN
failed--compilation aborted at F:/Perl/lib/DBI.pm line 254.\r, referer:
http://192.168.0.24/adressbuch/adressbuch.html
[Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] Compilation failed
in require at F:/Apache/Apache2/cgi-bin/adressbuch.pl line 10.\r, referer:
http://192.168.0.24/adressbuch/adressbuch.html
[Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] BEGIN
failed--compilation aborted at F:/Apache/Apache2/cgi-bin/adressbuch.pl line
10.\r, referer: http://192.168.0.24/adressbuch/adressbuch.html
Best regards
Andreas
Re: DBI Module for windows
am 12.07.2006 00:54:23 von John Bokma
"Andreas Bauer" wrote:
> Hello NG,
>
> I installed ActivePerl for windows and want to install a DBI Module,
> but it fails. I tried from ActivePerl page dbi 1.25 with perl -MCPAN
> -e "install Bundle:DBI". The result is, that at teh end of compiling
> the package, there is a errormessage:
> nmake for windows not found.
> Do someone have experiences with DBI moules for Win32?
ppm install DBI
doesn't work? I never use the -MCPAN thingy with ActivePerl.
Which driver do you need?
See also: http://johnbokma.com/perl/cpan-modules-installed.html
last time I checked, installing the ODBC driver also installed DBI. I am
quite sure the same holds for the MySQL driver.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
Re: DBI Module for windows
am 12.07.2006 01:02:31 von Sisyphus
"Andreas Bauer" wrote in message
..
..
>
> If I run my application adressbuch.pl there are folowing
> errormessages of the apache error.log:
> [Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] Premature end of
> script headers: adressbuch.pl, referer:
> http://192.168.0.24/adressbuch/adressbuch.html
I don't think that error has anything to do with the involvement of DBI ...
probably something else in your script.
> [Tue Jul 11 23:47:34 2006] [error] [client 192.168.0.24] Can't locate
> loadable object for module DBI in @INC (@INC contains: F:/Perl/lib
> F:/Perl/site/lib .) at F:/Perl/lib/DBI.pm line 254\r, referer:
> http://192.168.0.24/adressbuch/adressbuch.html
Just means that DBI has not been installed correctly - probably because
'nmake install' did not get run. The errors that follow that one are simply
a consequence of the botched installation of DBI.
DBI.pm is being found, but the "loadable object" (DBI.dll), which is the
compiled part of the module, is missing.
My hunch is that you could force an 'nmake install', and the module would be
quite serviceable for you - though the test failure reveals that there is at
least one limitation to the module's capabilities on your machine.
Another alternative would be for you to run (while connected to the
internet):
ppm install http://theoryx5.uwinnipeg.ca/ppms/DBI.ppd
That would give you version 1.50 of DBI.
Browse to http://theoryx5.uwinnipeg.ca/ppms/ to view the list of other ppm
packages for perl 5.8 available from that repository.
Cheers,
Rob