#use "findlib";;
#require "mysql";;
I get:
Cannot load required shared library dllmysql_stubs.
Reason: Symbol not found: _mysql_insert_id
Referenced from:
/usr/local/lib/ocaml/site-lib/mysql/dllmysql_stubs.so
Expected in: flat namespace
Any ideas? Am I doing this right?
Thanks,
-Lucas
Type ./configure
Edit your Makefile to change the export OCAMLMKLIB_FLAGS line to:
export OCAMLMKLIB_FLAGS=-L/usr/lib -L/usr/local/mysql/lib -verbose
-lmysqlclient -lz -lm -lpthread -ldl -lobjc
make && make opt && sudo make install
Works like a charm. Hooray. I think the main part that was missing was
adding the -lmysqlclient. I hope this can be fixed for the next release
of ocaml-mysql.
-Lucas
sudo ln -s /usr/local/mysql/include /usr/local/include/mysql
Then the compile went smoothly for me.