radiant.matrix

A collection of thoughts and links from the minds of geeks

Entries Comments



HOWTO install DBD::mysql on Cygwin

20 May, 2008 (09:48) | Quotation, Random Thoughts, Technology | By: radiantmatrix

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:

  1. Download the MySQL Linux sources
  2. Unpack them to your cygwin home directory:

    $ cd ~ ; tar xzf mysql-5.0.51b.tar.gz

  3. Configure and install:

    $ cd mysql-5.0.51b
    $ ./configure && make && make install

  4. Check the above for errors. If there are none, continue.

  5. Download the DBD::mysql distribution from CPAN
  6. Unpack this into your cygwin home directory:

    $ cd ~ ; tar xzf DBD-mysql-4.007.tar.gz

  7. Build the makefile

    $ cd DBD-mysql-4.007
    $ perl Makefile.PL --mysqlconfig=/usr/local/bin/mysqlconfig –testhost=127.0.0.1

  8. Make, and optionally make test — note that ‘make test’ may produce some failures, but DBD::mysql may still work

    $ make
    optional: $ make test
    $ make install

  9. You’re done!

Enjoy!

View blog reactions

Write a comment


 (required)


 (required, will not be posted)