-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello all,
here's what I've found trying to building HSQL 1.4
with mysql support on my GNU/Linux FC2 box.
Step 1. at the configure...
[gpciceri@annie HSQL]$ ./configure --enable-postgres --enable-mysql
- --enable-sqlite
...
checking for mysql_config... /usr/bin/mysql_config
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
configure: error: mysql.h header not found
Issue: on my box, mysql_config returns unneeded "'"
[gpciceri@annie HSQL]$ /usr/bin/mysql_config
Usage: /usr/bin/mysql_config [OPTIONS]
Options:
~ --cflags [-I'/usr/include/mysql']
~ --libs [-L'/usr/lib/mysql' -lmysqlclient -lz -lcrypt
- -lnsl -lm]
~ --socket [/var/lib/mysql/mysql.sock]
~ --port [3306]
~ --version [3.23.58]
so the ./configure fails
Workaround: in ./configure, about line 4443 iron the right
paths (FC2 - specific)
LDFLAGS="$LDFLAGS -L/usr/lib/mysql"
CPPFLAGS="$CPPFLAGS -I/usr/include/mysql"
Step 2: in the following make...
[gpciceri@annie HSQL]$ make
...
/usr/local/bin/hsc2hs src/HSQL/MySQL.hsc -I/usr/include
- -I/usr/include/pgsql/server -I/usr/include/mysql
MySQL.hsc:33:21: HsMySQL.h: No such file or directory
...
make: *** [build/Database/HSQL/MySQL.hs] Error 1
Issue: no include path for src/HSQL/HsMySQL.h
Workaround: in config.mk, add the directory needed to the CPPFLAGS
CPPFLAGS = -I./src/HSQL
After these, it builds.
HTH
/gp
- --
gian paolo ciceri - japanman
suddenthinks, excellence through refactoring
++39 340 7218101
gp....@ac...
gp....@su...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBRB5v5CXmEF0gaHgRAgHSAKClApP3wXeK+tW9Agzrapb8vQDK3ACeIHu4
NQmx6H2ePKfAfflLxQH93rM=
=/C+H
-----END PGP SIGNATURE-----
|