I had no trouble getting the Windows installer to get my Win32 version of Python1.5.2 to work with the package, but when I hopped my Linux box, I kept coming up with "Illegal instruction" errors, which means that I can't trace it back. I'm running a pretty clean RH7.1 installation (I used the RH RPMs for MySQL, if that makes a difference.) Oh--and I couldn't find the setup.py file that is referenced in the README. It doesn't appear to be in the .rpm file and I'm not sure where it would potentially be installed.
Python will let me import MySQLdb, but as soon as I try to create a connection, the Illegal instruction occurs and Python crashes.
Any suggestions?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The RPMs are compiled for Red Hat 7.2, which should not be a problem, and for Pentium-III, which could be. Another possible culprit are the MySQL client libraries I used. setup.py is not installed by the RPM, since it is only used for installing. Get the tarball (.tar.gz) and follow the instructions for building RPMs. Then you should have no problems.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-11-12
That worked. I did have to change the paths in the setup.py file--my includes are in /usr/local/mysql/include and my libs are in /usr/local/mysql/lib. With that in place, the setup script worked perfectly. (I think that the path I have for MySQL is the standard location for RH7.1, if that's of any use to you.)
Thanks for the help.
- Orion
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had no trouble getting the Windows installer to get my Win32 version of Python1.5.2 to work with the package, but when I hopped my Linux box, I kept coming up with "Illegal instruction" errors, which means that I can't trace it back. I'm running a pretty clean RH7.1 installation (I used the RH RPMs for MySQL, if that makes a difference.) Oh--and I couldn't find the setup.py file that is referenced in the README. It doesn't appear to be in the .rpm file and I'm not sure where it would potentially be installed.
Python will let me import MySQLdb, but as soon as I try to create a connection, the Illegal instruction occurs and Python crashes.
Any suggestions?
The RPMs are compiled for Red Hat 7.2, which should not be a problem, and for Pentium-III, which could be. Another possible culprit are the MySQL client libraries I used. setup.py is not installed by the RPM, since it is only used for installing. Get the tarball (.tar.gz) and follow the instructions for building RPMs. Then you should have no problems.
That worked. I did have to change the paths in the setup.py file--my includes are in /usr/local/mysql/include and my libs are in /usr/local/mysql/lib. With that in place, the setup script worked perfectly. (I think that the path I have for MySQL is the standard location for RH7.1, if that's of any use to you.)
Thanks for the help.
- Orion