Menu

Problem running Zope2.6.2 with ZMySQLDA-2.0.8

Help
Anonymous
2003-10-02
2012-09-19
  • Anonymous

    Anonymous - 2003-10-02

    Hi
    I installed Zope2.6.2. and got it running OK, but I tried adding ZMySQLDA-2.0.8 with MySQL-python-0.9.2 and now Zope doesn't start but gives error messages:
    zeno # ./start
    ------
    2003-10-02T14:17:05 INFO(0) zdaemon Started subprocess: pid 15645
    ------
    2003-10-02T14:17:09 ERROR(200) Zope Could not import Products.ZMySQLDA
    Traceback (innermost last):
      File /usr/local/zope/Zope-2.6.2-src/lib/python/OFS/Application.py, line 522, in import_product
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/__init__.py, line 91, in ?
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/DA.py, line 92, in ?
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/db.py, line 89, in ?
    ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /usr/local/lib/python2.1/site-packages/_mysql.so: symbol mysql_errno: referenced symbol not found
    ------
    2003-10-02T14:17:09 PANIC(300) z2 Startup exception
    Traceback (innermost last):
      File /usr/local/zope/Zope-2.6.2-src/z2.py, line 585, in ?
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Zope/__init__.py, line 46, in startup
        (Object: startup)
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Zope/App/startup.py, line 45, in startup
      File /usr/local/zope/Zope-2.6.2-src/lib/python/OFS/Application.py, line 500, in import_products
      File /usr/local/zope/Zope-2.6.2-src/lib/python/OFS/Application.py, line 522, in import_product
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/__init__.py, line 91, in ?
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/DA.py, line 92, in ?
      File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZMySQLDA/db.py, line 89, in ?
    ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /usr/local/lib/python2.1/site-packages/_mysql.so: symbol mysql_errno: referenced symbol not found

    Any help much appreciated.

    Solaris 9
    Zope 2.6.2
    Python-2.1.3
    gcc-3.3.1

     
    • Anonymous

      Anonymous - 2003-10-03

      Forgot to add:
      mysql-standard-4.0.15a-sun-solaris2.9-sparc-64bit

       
    • Flemming Bjerke

      Flemming Bjerke - 2003-10-06

      You are told that it can't finde: mysql_errno
      mysql_errno (and a number of other relevant files) should be in your mysql folder in the folder include. Copy its content to /usr/include/mysql

      cp -r <path to your mysql-folder>/include /usr/include/mysql

      That should fix it. But, please let me (us) know if you can make ZMySQLDA work with zope2.6.2, because I couldn't. Cf. my thread just below yours.

      Flemming

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.