Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Gump Wiki" for change 
notification.

The following page has been changed by LeoSimons:
http://wiki.apache.org/gump/GumpZonesConfig

------------------------------------------------------------------------------
  
   * Mysqldb
     * download and extract [http://sourceforge.net/projects/mysql-python/ 
Mysqldb]
-    * having trouble compiling so far :(
+    * apply this patch to setup.py:
+    {{{
+ --- setup.py    Tue Feb  8 01:01:09 2005
+ +++ setup.py.new        Sat Jun 11 13:46:31 2005
+ @@ -30,7 +30,7 @@
+  from distutils.core import setup
+  from distutils.extension import Extension
+ 
+ -mysqlclient = os.getenv('mysqlclient', 'mysqlclient_r')
+ +mysqlclient = 'mysqlclient'
+  mysqlstatic = eval(os.getenv('mysqlstatic', 'False'))
+  embedded_server = (mysqlclient == 'mysqld')
+ 
+ @@ -64,7 +64,7 @@
+          from os import popen
+          return popen("mysql_config --%s" % what).read().strip().split()
+ 
+ -    include_dirs = [ i[2:] for i in config('include') ]
+ +    include_dirs = [ i[2:] for i in config('cflags') ]
+ 
+      if mysqlclient == "mysqlclient":
+          libs = config("libs")
+ @@ -75,6 +75,21 @@
+      library_dirs = [ i[2:] for i in libs if i.startswith("-L") ]
+      libraries = [ i[2:] for i in libs if i.startswith("-l") ]
+ 
+ +    # Work around quotes in the results from mysql_config
+ +    library_dirs = [ i.replace("'","") for i in library_dirs ]
+ +    libraries = [ i.replace("'","") for i in libraries ]
+ +    include_dirs = [ i.replace("'","") for i in include_dirs ]
+ +    library_dirs = [ i.replace('"',"") for i in library_dirs ]
+ +    libraries = [ i.replace('"',"") for i in libraries ]
+ +    include_dirs = [ i.replace('"',"") for i in include_dirs ]
+ +
+      # Workaround for a pre-4.1.9 bug
+      if "z" not in libraries:
+          libraries.append("z")
+ }}}
+  * build and install:
+   {{{
+ /export/opt/python2.4/bin/python setup.py install --prefix=/export/opt
+ }}}
  
  === Optional prereqs ===
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to