[ts-gen] How to compile for OS X

Ugo Kanain ugokanain at newsguy.com
Tue Sep 25 22:12:35 EDT 2007


You need to have mysql installed (it doesn't seem to be included but  
on the OS X server). Tried it with MAMP, but couldn't get it to work.  
Besides it doesn't come with the include h  files.
Then you need to create two links (ln -s) within two of the folders  
of the mysql installation, because of a problem with the way that  
mysql creates its paths

sudo ln -s /usr/local/mysql/lib /usr/local/mysql/lib/mysql
sudo ln -s /usr/local/mysql/include /usr/local/mysql/include/mysql

Substitute these two lines within the makefile
CPPFLAGS  = -I/usr/local/mysql/include
LIB       = -L/usr/local/mysql/lib -lmysqlclient


cd to the shim folder and issue a make command

if you didn't get an error, probably everything is ok

Create the database if you haven't already
cd sql
mysql -u root -p
(it might ask you for the mysql's root password, think the installed  
default is empty)
source setup.sql
quit

test it all by typing
cd ..
./shim --help

you should see a response by the shim


More information about the ts-general mailing list