Jump to content

GLPK/Mac OS X

From Wikibooks, open books for an open world
Clipboard

To do:
A Mac OS X user might like to add material on compiling GLPK under this operating system


For the general instruction for compiling see the GLPK/Linux OS.

Setting MySQL option

[edit | edit source]

If you want to enable MySQL for access to database tables from GLPK, it is likely you will have to set the MySQL include directory (the one with mysql.h in it). On the Mac, it is often found in:

/usr/local/mysql/include

So, when configuring use:

./configure --enable-dl --enable-mysql CPPFLAGS=-I/usr/local/mysql/include

Your make job should then pick up the correct directory set in Makefile.