MySQL Library for Cygwin

Read or regret

  • You can only do this after Cygwin is installed. This installation is done in Cygwin directory.
  • Download mysql-4.0.xx.tar.gz (called tarball) from www.mysql.com. This is the only time in this Windows guide when the author would suggest you choose MySQL 4.1. The reason is that Athena compiled with mysql 4.1 libraries will run on Windows MySQL 4.0 and 4.1 server. So go ahead and download mysql-4.1.xx.tar.gz.
  • Read this before you proceed: Athena compiled with MySQL 4.0 library will not run on Windows systems with MySQL 4.1.

Installation:

cyg-home: Copying tarball to Cygwin home
Copy mysql-4.1.xx.tar.gz to C:\cygwin\home


cyg-21: The untar command
Launch Cygwin

Locate MySQL tarball

Unpack:
tar zxf mysql-4.1.xx.tar.gz


cyg-22: Getting to the untar directory
Change to the directory with unpacked source codes
cd mysql-4.1.xx


cyg-23: Configuring MySQL
Issue the command:
./configure --without-server


cyg-24: Configuration in progress
A look of the configure process

Wait for completion


cyg-25: Configuration completed
Completed


cyg-26: Compiling MySQL
Issue the make command:
make

Wait for completion


cyg-27: Installing MySQL
Issue the make install command:
make install

When done, MySQL library would have been installed at the location expected by Athena Makefile


Some notes for you:

That will be your first compile on Cygwin and as close as you can get to Linux. Explanation:
  • tar is a Linux decompress program, zxf is a set of three switches (which means extract files and pass them through gzip). Add v if you want to see the output.
  • tar zxf (or zxvf) is generally called untar
  • ./configure is the Linux way of launching an executable, configure in this case. --without-server is a CFLAG
  • the CFLAG tells the compiler to configure mysql for installation without the server (since another MySQL server is already installed)
  • make is the compile command
  • make install is the installation command