Episodes
Tuesday Nov 27, 2007
Install python-mysql ZMySQLDA for zope plone
Tuesday Nov 27, 2007
Tuesday Nov 27, 2007
After I installed plone for my Suse 10.2, I found the python-mysql, ZMySQLDA are not there. It turns out the plone 3 and zope 2.10 only supports Python 2.4, thus I download python-mysql rpm for python2.4 at ftp://rpmfind.net/linux/SuSE-Linux/i386/9.3/suse/i586/python-mysql-1.2.0-3.i586.rpm $ sudo rpm -ivh python-mysql-1.2.0-3.i586.rpm The above will install the package to default location /usr/lib . $rpm -ql python-mysql-1.2.0-3 This will tell you what installed by this rpm. Just copy things to the zope instance folder /opt/python24/lib/python2.4/site-packages/ $sudo cp -r /usr/local/lib/python2.4/site-packages/MySQLdb /opt/python24/lib/python2.4/site-packages/ $sudo cp /usr/local/lib/python2.4/site-packages/_mysql.so /opt/python24/lib/python2.4/site-packages/ $sudo cp /usr/local/lib/python2.4/site-packages/_mysql_exceptions.py /opt/python24/lib/python2.4/site-packages/ $sudo cp /usr/local/lib/python2.4/site-packages/_mysql_exceptions.pyc /opt/python24/lib/python2.4/site-packages/ Try to import _mysql in python $python2.4 >>>import _mysql It should give you no error. $tar -xzvf ZMySQLDA-2.0.8.tar.gz Files will be untared to ./lib/python/Products/ZMySQLDA/ $sudo cp -r ./lib/python/Products/ZMySQLDA /var/opt/zope/default/Products Restart zope: sudo rczope restart You should be able to see ZMySQLDA in Zope now.
Comments (0)
To leave or reply to comments, please download free Podbean or
No Comments
To leave or reply to comments,
please download free Podbean App.