I'm using Redhat 7.3 and it seems to have two versions of python installed. There is a 1.5 version and a 2.2 version. When I installed the RPM, it installed to the python1.5 folder. By default, the python version I run is 2.2 and I would prefer to use 2.2. How can I get this installed correctly?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"The RPMs were compiled on a Red Hat 7.2 i386 (Pentium-III) system with
MySQL-4.0.0 (alpha, but the client libraries should be safe). The
1py1 RPM is for Python-1.5.2 (stock). The 1py2 RPM is for Python-2.1.1
(python2-2.1.1-3 RPM from python.org). They will probably work on
earlier versions of Red Hat 7. No SRPM; make your own RPMs using the
instructions below."
Note that Red Hat 7.3 comes with MySQL-python-0.9.1, but built for Python 1.5.2. I don't presently have a Python-2.2 RPM for 0.9.1, but will for 0.9.2. In your case, I suggest getting the 0.9.2c2 or later tarball and buidling an RPM from that with:
$ python2 setup.py bdist_rpm --python=python2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using Redhat 7.3 and it seems to have two versions of python installed. There is a 1.5 version and a 2.2 version. When I installed the RPM, it installed to the python1.5 folder. By default, the python version I run is 2.2 and I would prefer to use 2.2. How can I get this installed correctly?
Thanks
Using the correct RPM would be a good start.
http://sourceforge.net/project/shownotes.php?release_id=51760
"The RPMs were compiled on a Red Hat 7.2 i386 (Pentium-III) system with
MySQL-4.0.0 (alpha, but the client libraries should be safe). The
1py1 RPM is for Python-1.5.2 (stock). The 1py2 RPM is for Python-2.1.1
(python2-2.1.1-3 RPM from python.org). They will probably work on
earlier versions of Red Hat 7. No SRPM; make your own RPMs using the
instructions below."
Note that Red Hat 7.3 comes with MySQL-python-0.9.1, but built for Python 1.5.2. I don't presently have a Python-2.2 RPM for 0.9.1, but will for 0.9.2. In your case, I suggest getting the 0.9.2c2 or later tarball and buidling an RPM from that with:
$ python2 setup.py bdist_rpm --python=python2
Apologies.
Thanks for the help. It's working now.
Brad