Re: [Libreoffice] How to build mysql-connector extension on Mac OSX ?
Alexander Thurgood píše v Čt 16. 06. 2011 v 15:31 +0200: Le 16/06/11 10:35, Petr Mladek a écrit : Hi Petr, What exact path are you using? Does it help you to remove the trailing /lib? I have tried various flavours of : /Applications/MySQLWorkbench.app/Contents/Framework/libmysqlclient.dylib /opt/local/lib/mysql5/mysql/libmysqlclient.dylib /usr/local/mysql-5.1.50-osx10.6-x86_64/lib/libmysqlclient.dylib Please, have you tried the following? --with-libmysql-path=/usr/local/mysql-5.1.50-osx10.6-x86_64 with and without the actual file name (my understanding is that one only needed to point to the directory containing the file, not actually name it, but I tried anyway), with and without the trailing /, but none of them work, they all throw the same error message. I wrote in the previous mail that you need to define the path without the /lib subdir. For example, if you have /blabla/lib/libmysql.dylib, you need to use: --with-libmysql-path=/blabla Hmm, I see your original message: --- cut --- checking for mysqlc module... OK checking for mysql pre-requisites... external Connector/C (libmysql) checking for libmysqlclient.dylib... configure: error: not found. Please specify proper path in --with-libmysql-path --- cut --- I wonder why it writes libmysqlclient.dylib. I see libmysql.dylib in bootstrap/configure.in (libreoffice-3-4 branch). Have modified the configure? Are the messages from another configure script? Best Regards, Petr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] How to build mysql-connector extension on Mac OSX ?
Le 17/06/11 12:51, Petr Mladek a écrit : Hi Petr, First, thanks for trying to help me sort this out. Please, have you tried the following? --with-libmysql-path=/usr/local/mysql-5.1.50-osx10.6-x86_64 I wrote in the previous mail that you need to define the path without the /lib subdir. For example, if you have /blabla/lib/libmysql.dylib, you need to use: --with-libmysql-path=/blabla Yes, I tried this already, but it still didn't work. Hmm, I see your original message: --- cut --- checking for mysqlc module... OK checking for mysql pre-requisites... external Connector/C (libmysql) checking for libmysqlclient.dylib... configure: error: not found. Please specify proper path in --with-libmysql-path --- cut --- I wonder why it writes libmysqlclient.dylib. I see libmysql.dylib in bootstrap/configure.in (libreoffice-3-4 branch). That is, as I said in my initial post, because on Mac at least (don't know about other platforms), the file that configure searches for, i.e. libmysql.dylib does not exist. A locate libmysql.dylib returns no answers, nor does a find /usr -name libmysql.dylib. So I edited configure.in to ask for the correct file name, hence the different message. Alex ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] How to build mysql-connector extension on Mac OSX ?
Le 17/06/11 12:51, Petr Mladek a écrit : Hi Petr, *, OK, I've sussed it. The path to provide is : /usr/local/mysql/ or /usr/local/mysql-5.1.50-osx10.6-x86_64/ However, the configure.in script needs modifying at line 4737 to tell it to look for libmysqlclient.dylib. I have enclosed a diff patch that shows this change. Released under the usual LGPL3/MPL license. Alex diff --git a/configure.in b/configure.in index 5177e4e..9c61b3e 100755 --- a/configure.in +++ b/configure.in @@ -4734,7 +4734,7 @@ else AC_MSG_RESULT([external Connector/C (libmysql)]) LIBMYSQL=libmysql.so if test $_os = Darwin; then -LIBMYSQL=libmysql.dylib +LIBMYSQL=libmysqlclient.dylib elif test $_os = WINNT; then LIBMYSQL=libmysql.dll fi ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: [Libreoffice] How to build mysql-connector extension on Mac OSX ?
Alexander Thurgood píše v St 15. 06. 2011 v 17:34 +0200: Hi, I'm having a frustrating time trying to get configure to recognise my mysql installation so that I can build the mysql-connector extension. I am currently using the following switches : --enable-ext-mysql-connector --with-libmysql-path=path/to/libmysqlclient.dylib What exact path are you using? Does it help you to remove the trailing /lib? I think that the -path is a bit confusing. It is used the following way: --- cut bootstrap/configure.in --- LIBMYSQL=libmysql.dylib [...] if test -e $with_libmysql_path/lib/$LIBMYSQL; then AC_MSG_RESULT([found.]) else AC_MSG_ERROR([not found. Please specify proper path in --with-libmysql-path.]) --- cut bootstrap/configure.in --- and --- cut extensions/mysqlc/source/makefile.mk --- MYSQL_LIBDIR=$(LIBMYSQL_PATH)$/lib MYSQL_INCDIR=$(LIBMYSQL_PATH)$/include --- cut extensions/mysqlc/source/makefile.mk --- Is it does not help, could you please attach your config.log? Best Regards, Petr ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[Libreoffice] How to build mysql-connector extension on Mac OSX ?
Hi, I'm having a frustrating time trying to get configure to recognise my mysql installation so that I can build the mysql-connector extension. I am currently using the following switches : --enable-ext-mysql-connector --with-libmysql-path=path/to/libmysqlclient.dylib I've tried encapsulating with single quotes, even the whole switch, alternating between single and double quotes - nada. I thought maybe it was a permissions problem and the normal user couldn't see the directories, so I tried configuring with sudo - nada. Despite having 3 different places where the libmysqlclient library is to be found on my system, configure stubbornly refuses to find the library. Is there something obvious that I'm doing wrong ? Additionally, the configure script looks for the file libmysql.dylib on Mac OSX, which appears to be the incorrect name for the file. On my system, all of the mysql client libraries are all called libmysqlclient.dylib. I corrected this in my local version of the configure script, but it doesn't appear to have made the slightest bit of difference. I can choose any of the 3 locations where the file exists, and yet configure still baulks : checking for mysqlc module... OK checking for mysql pre-requisites... external Connector/C (libmysql) checking for libmysqlclient.dylib... configure: error: not found. Please specify proper path in --with-libmysql-path So how do I specify it ? TIA, for hints, advice, etc. Alex ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice