Thanks for your reply! Ok, so I switched to mysqli and noticed a few things. Perhaps liblog4cxx9-dev should be made a dependency of liblog4cxx9 so they will both be installed at the same time via apt, if it's not installed php compilation will fail with the following:
grep: /usr/lib/liblog4cxx.la: No such file or directory
/bin/sed: can't read /usr/lib/liblog4cxx.la: No such file or directory
libtool: link: `/usr/lib/liblog4cxx.la' is not a valid libtool archive
make: *** [ libphp5.la] Error 1
Once I got past that wrote a trivial php page to test it out and I got the following error:
[php page]
Warning: mysqli_connect() [function.mysqli-connect]: (28000/2000): Connection failed: Driver protocol is not compatible with controller (driver = 2.0, controller = 0.40). in /var/www/index.php on line 3
[Machine Running sequoia]
12:29:00,798 WARN controller.core.Controller Driver protocol is not compatible with controller (driver = 2.0, controller = 0.40)
The controller I am running is sequoia 2.7 on jdk1.5.06 (if that makes a difference) and everything seems to be working from the java side of things (wrote a simple class that creates a table via jdbc to test out).
Any thoughts?
Best,
Yousef
On 4/29/06, Csaba Simon <
[EMAIL PROTECTED]> wrote:
Hi Yousef,
> ls -l /usr/lib/libmysequoia.so
> lrwxrwxrwx 1 root root 17 2006-04-27 20:18 /usr/lib/libmysequoia.so ->
> libmysequoia.so.0 (which ofcourse doesn't exist)
Fixed the deb package. Just apt-get update && apt-get upgrade
> WARN: (src/StringCodecs.cpp:trylocale()) attempt to create locale from
> unknown name, locale name was: en_US.utf8
sudo dpkg-reconfigure locales
and select the en_US.utf8 locale.
> Also I'm a wee bit confused on how to get PHP working with libmysequoia.
> I installed the libmysequoia package via apt (debian 3.1), I ran find /
> -name "*sequoia*" and found the *.so under /usr/lib... Now what? Am I
> supposed to compile php with --mysql=/usr/local/mysql --enable-shared
> and then copy the libmysequoia.so....or something else? The carob
> documentation isnt' very clear on this.
For the mysqli extension it's easy:
- apt-get install libmysequoia-dev
- ./configure --with-mysqli=shared,/usr/bin/mysequoia_config ...
(please note that is mysequoia_config and not mysql_config)
For the mysql extension you need to tweak the Makefiles and config.m4
files because is hardcoded the link to libmysqlclient.
Copying the libmysequoia.so library over the libmysqlclient.so library
is not a good idea. The mysql programs (mysql, mysqldump, ....) will
stop to work because in the libmysequoia.so you will find only the
*documented* mysql C API implemented. Here is the documentation:
http://dev.mysql.com/doc/refman/5.0/en/c.html
The *undocumented* not public function are *not in* the libmysequoia.so
library so the mysql programs will stop to work.
> If you need someone to tweak the documentation I would be more than
glad to contribute my time towards that.
It would be nice if you can contribute to the documentation.
Thanks for you feedback,
Csaba
---
Documentation: http://carob.continuent.org/LibMySequoia
Bug tracker: https://forge.continuent.org/jira/browse/LMS
_______________________________________________ Carob mailing list [email protected] https://forge.continuent.org/mailman/listinfo/carob
