niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Perl » modules
DBI Module for windows
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Andreas Bauer
*nix forums beginner


Joined: 03 Jun 2005
Posts: 15

PostPosted: Tue Jul 11, 2006 2:34 pm    Post subject: DBI Module for windows Reply with quote

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
Back to top
Juha Laiho
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 139

PostPosted: Tue Jul 11, 2006 4:23 pm    Post subject: Re: DBI Module for windows Reply with quote

"Andreas Bauer" <andreas_bauer@arcor.de> said:
Quote:
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)
Back to top
Andreas Bauer
*nix forums beginner


Joined: 03 Jun 2005
Posts: 15

PostPosted: Tue Jul 11, 2006 10:20 pm    Post subject: Re: DBI Module for windows Reply with quote

Juha Laiho wrote:
Quote:
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
Back to top
John Bokma
*nix forums Guru


Joined: 23 Feb 2005
Posts: 1136

PostPosted: Tue Jul 11, 2006 10:54 pm    Post subject: Re: DBI Module for windows Reply with quote

"Andreas Bauer" <andreas_bauer@arcor.de> wrote:

Quote:
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/
Back to top
Sisyphus
*nix forums Guru


Joined: 04 Mar 2005
Posts: 503

PostPosted: Tue Jul 11, 2006 11:02 pm    Post subject: Re: DBI Module for windows Reply with quote

"Andreas Bauer" <andreas_bauer@arcor.de> wrote in message
..
..
Quote:

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.

Quote:
[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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:30 am | All times are GMT
navigation Forum index » Programming » Perl » modules
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts problem with windows installer Christian Rengstl PostgreSQL 0 Fri Jul 21, 2006 10:55 am
No new posts Problem with Win32-SerialPort over bluetooth @ windows + ... ctloh Perl 0 Fri Jul 21, 2006 8:08 am
No new posts Capturing user login Information of windows sachin PHP 3 Fri Jul 21, 2006 5:44 am
No new posts strange error when importing a module Robin Becker python 1 Thu Jul 20, 2006 4:04 pm
No new posts subprocess module Bulkan-Savun Evcimen python 0 Thu Jul 20, 2006 1:59 pm

Mobile Phones | Free Ringtones | Loan | Houses for Sale | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.5457s ][ Queries: 16 (0.3052s) ][ GZIP on - Debug on ]