HOWTO install DBD::mysql on Cygwin
Based on the official instructions from the DBD::mysql maintainer, here’s a fast summary for people who know their way around compiling and installing software on Unix-like systems:
- Download the MySQL Linux sources
Unpack them to your cygwin home directory:
$ cd ~ ; tar xzf mysql-5.0.51b.tar.gzConfigure and install:
$ cd mysql-5.0.51b $ ./configure && make && make installCheck the above for errors. If there are none, continue.
- Download the DBD::mysql distribution from CPAN
Unpack this into your cygwin home directory:
$ cd ~ ; tar xzf DBD-mysql-4.007.tar.gzBuild the makefile
$ cd DBD-mysql-4.007 $ perl Makefile.PL --mysqlconfig=/usr/local/bin/mysqlconfig –testhost=127.0.0.1Make, and optionally make test — note that ‘make test’ may produce some failures, but DBD::mysql may still work
$ make optional: $ make test $ make installYou’re done!
Enjoy!
View blog reactions