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:
Copy mysql-4.1.xx.tar.gz to C:\cygwin\home
Launch Cygwin
Locate MySQL tarball
Unpack:
tar zxf mysql-4.1.xx.tar.gz
|
Change to the directory with unpacked source codes
Issue the command:
./configure --without-server
|
A look of the configure process
Wait for completion
Completed
Issue the make command:
Wait for completion
Issue the make install command:
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
|