Hi,
I need to upgrade Python to at least 2.3.5, (but 2.4.3 would probably be better), to run Zope & Plone.
Is it possible to replace the current version without breaking anything? or should I run two versions in parallel?
What's the best way to go about doing this?
Ben (please CC me in responses as I use digest)
On Jul 17, 2006, at 8:55 AM, Ben wrote:
I need to upgrade Python to at least 2.3.5, (but 2.4.3 would probably be better), to run Zope & Plone.
Is it possible to replace the current version without breaking anything? or should I run two versions in parallel?
What's the best way to go about doing this?
RHEL (and thus CentOS) depends heavily upon Python for lots of apps, utilities etc.; as such, i'd recommend against altering the system Python. i haven't done what you are trying to do, but i did end up installing another Python on a CentOS 3 machine in order to get DenyHosts working (it needs at least Python 2.4) in /usr/local/python24.
on the other hand, the indefatigable Karanbir seems to have built RPMS of Zope 2.8.0 and Plone 2.1.2; they're available from his repository:
http://centos.karan.org/el4/extras/stable/i386/RPMS/index.html
will those work for you?
-steve
--- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On 7/17/06, Steve Huff shuff@vecna.org wrote:
RHEL (and thus CentOS) depends heavily upon Python for lots of apps, utilities etc.; as such, i'd recommend against altering the system Python.
OK, I'll just go for a parallel installation then.
i haven't done what you are trying to do, but i did end up installing another Python on a CentOS 3 machine in order to get DenyHosts working (it needs at least Python 2.4) in /usr/local/python24.
I'll give that a shot with 2.4.3 then, and see if I can get Zope running on top of it.
on the other hand, the indefatigable Karanbir seems to have built RPMS of Zope 2.8.0 and Plone 2.1.2; they're available from his repository:
http://centos.karan.org/el4/extras/stable/i386/RPMS/index.html
will those work for you?
I'll be maintaining my own Zope and Plone installations, and I want to use the current versions.
Thanks for your response. I'll try to setup a parallel installation and come back if I hit any bumps.
Ben (please CC me in responses as I use digest)
Ben:
I'll give that a shot with 2.4.3 then, and see if I can get Zope running on top of it.
Any luck installing a parallel version of Python? If so, can you post the recipe? I need Python 2.4.3 for a project, and while I was able to build it from source (./configure --prefix=/some/where/else; make; make install), I was not successful in getting the Tk interface (Tkinter) to work. Also, I'd like to be able to package the whole thing up as a (relocatable) RPM, but I've never build my own RPM. So before I go re-inventing the wheel, I'd like to leverage the collective experience of this group.
Thanks, Alfred
On Fri, Jul 21, 2006 at 02:55:48PM -0400, Alfred von Campe enlightened us:
Ben:
I'll give that a shot with 2.4.3 then, and see if I can get Zope running on top of it.
Any luck installing a parallel version of Python? If so, can you post the recipe? I need Python 2.4.3 for a project, and while I was able to build it from source (./configure --prefix=/some/where/else; make; make install), I was not successful in getting the Tk interface (Tkinter) to work. Also, I'd like to be able to package the whole thing up as a (relocatable) RPM, but I've never build my own RPM. So before I go re-inventing the wheel, I'd like to leverage the collective experience of this group.
Google pyvault - they've already done the hard parts for you.
Matt
On 7/22/06, Alfred von Campe alfred@110.net wrote:
Any luck installing a parallel version of Python? If so, can you post the recipe?
The following is for CentOS 4.3 - I'm going to have to do it all again for CentOS 3.x soon, unless my VPS provider starts supporting 4.x before my project deadline :-(
The following gets everything but tkinter working with Python 2.4.3
#0. You need the basics, eg. gcc, gcc-c++, vim-enhanced, wget etc. There's some other stuff on this install, so if you still have problems I can give you some more info.
#1. I installed yum packages in this order (and accepted the dependencies). No doubt not all of these are needed, but I don't know which ones are safe to avoid and I just need to get something up and working to develop on ASAP.
zlib-devel libjpeg-devel freetype freetype-devel tcl tcl-devel tk tk-devel
#2. Build Python 2.4.3, with all defaults ./configure make make install
#3. Build PIL - not sure if you need this, but I do for Plone). Instructions as per the PIL README. For your reference, I have included the following output - note tkinter is working (it wasn't for me until I added the tcl, tcl-devel, tk and tk-devel packages).
/usr/local/bin/python setup.py build_ext -i ... -------------------------------------------------------------------- PIL 1.1.5 BUILD SUMMARY -------------------------------------------------------------------- version 1.1.5 platform linux2 2.4.3 (#3, Jul 23 2006, 18:03:51) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] -------------------------------------------------------------------- --- TKINTER support ok --- JPEG support ok --- ZLIB (PNG/ZIP) support ok --- FREETYPE2 support ok -------------------------------------------------------------------- ...
I don' t think the selftest.py will work through SSH on a system without xwindows, but I don't know enough Python to know for sure - in any case, it reported only one error, but for all I know it just gave up at the first step.
#4 Install Zope & Plone - You're probably not interested in this.
Plone's site setup page now shows PIL v1.1.5 (instead of reporting an error) I haven't had a chance to verify this yet.
Also, I'd like to be able to package the whole thing up as a (relocatable) RPM, but I've never build my own RPM. So before I go re-inventing the wheel, I'd like to leverage the collective experience of this group.
Sorry, I don't have experience with building RPMs.
HTH,
Ben please CC me as I use digest.
Ben:
The following gets everything but tkinter working with Python 2.4.3
But it's tkinter that I need (I had everything else working).
#0. You need the basics, eg. gcc, gcc-c++, vim-enhanced, wget etc. There's some other stuff on this install, so if you still have problems I can give you some more info.
Check!
#1. I installed yum packages in this order (and accepted the dependencies). No doubt not all of these are needed, but I don't know which ones are safe to avoid and I just need to get something up and working to develop on ASAP.
zlib-devel libjpeg-devel freetype freetype-devel tcl tcl-devel tk tk-devel
That was it! As soon as I installed tcl-devel and tk-devel, the setup.py script built tkinter for me! I'm up and running now.
Now I just need to figure out how to make an RPM out of this Python build...
Thanks, Alfred