Date: Monday, May 7, 2007 @ 21:30:06
  Author: marc
    Path: /cvsroot/carob/libmysequoia

Modified: README (1.11 -> 1.12)

More LD_PRELOAD instructions


--------+
 README |   39 ++++++++++++++++++++++++++++-----------
 1 files changed, 28 insertions(+), 11 deletions(-)


Index: libmysequoia/README
diff -u libmysequoia/README:1.11 libmysequoia/README:1.12
--- libmysequoia/README:1.11    Wed Apr 11 17:22:18 2007
+++ libmysequoia/README Mon May  7 21:30:06 2007
@@ -14,22 +14,38 @@
   * If your_program is dynamically linked to libmysqlclient, just run
     this:
 
-     LD_PRELOAD=/path/to/libmysequoia.so   your_program
- 
+      LD_PRELOAD=/path/to/libmysequoia.so   your_program
+
+    On FreeBSD you need to add a threads library like this:
+
+      LD_PRELOAD=/usr/lib/libpthread.so:/path/to/libmysequoia.so   your_program
+
+    If your_program is PHP on Linux, you have to also preload the
+    mysql PHP plugins before PHP has a chance to load them in a dirty
+    way (using RTLD_DEEPBIND). Do something like this in the
+    apache2ctl shell script, replace:
+
+      HTTPD='/usr/sbin/apache2
+
+    with:
+
+      
MYLIBS="/path/to/libmysequoia.so.14:/usr/lib/php4/20050606/mysql.so:/usr/lib/apache2/modules/libphp4.so"
+      HTTPD="env LD_PRELOAD=$MYLIBS /usr/sbin/apache2"
+
+
+  * If your application is linked statically or in a  weird way to
+    libmysqlclient then you may need to recompile it.
     Use "ldd your_program" to check the linking configuration of
     your_program. In the case of plugins (like for instance the mysql.so
     and mysqli.so PHP extensions), you have to run "ldd" checks on the
-    plugins, NOT on the main executable. However you must still
-    LD_PRELOAD the main executable (PHP or apache for instance)
-
-  * If your application is linked statically or in a  weird way to
-    libmysqlclient then you may need to recompile it. It's easy just
-    replace every occurence of "mysql_config" with "mysequoia_config".
-    In the CVS there are patch files for recompiling PHP, Python and
-    Perl for Redhat.
+    plugins, NOT on the main executable.
+    To recompile your application just replace every occurence of
+    "mysql_config" with "mysequoia_config". In the CVS there are patch
+    files for recompiling PHP, Python and Perl for Redhat.
 
     Please report any LD_PRELOAD and linking issues to the carob
-    mailing-list.
+    mailing-list (please search the archive first).
+
 
 SEQUOIA CONFIGURATION
 
@@ -61,6 +77,7 @@
 
   libmysequoia build is using GNU autotools, so you can use the
   standard sequence: "./configure && make && sudo make install".
+  Check the standard INSTALL text file for more details.
   If you have a currently supported system, replace "./configure"
   above by:
 

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to