< GLPK

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

Setting MySQL option

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.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.