Hi; I'm trying to build 2.10.x on a CentOS 5.4 server. I get the error that I need to upgrade my Python from 2.4.3 to (I believe) 2.4.6. The problem is that I really can't do that using rpms unless I roll my own. Before doing that I wanted to consult you all and ask your advice. TIA, Susan PS Another option would be to build this on my Mac, but it doesn't look like Zope supports that platform.
+-------[ Susan Day ]---------------------- | Hi; | I'm trying to build 2.10.x on a CentOS 5.4 server. I get the error that I need to upgrade my Python from 2.4.3 to (I believe) | 2.4.6. The problem is that I really can't do that using rpms unless I roll my own. Before doing that I wanted to consult you all | and ask your advice.
2.4.3 should be fine as a substitute for 2.4.6 sans some bug fixes in python.
| PS Another option would be to build this on my Mac, but it doesn't | look like Zope supports that platform.
Zope should work anywhere python works. And python definitely works under OSX (given it's just unix under the hood).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Susan Day wrote:
Hi; I'm trying to build 2.10.x on a CentOS 5.4 server. I get the error that I need to upgrade my Python from 2.4.3 to (I believe) 2.4.6. The problem is that I really can't do that using rpms unless I roll my own. Before doing that I wanted to consult you all and ask your advice.
You should be able to override the "allowed" versions of Python:
$ cd /path/to/Zope-2.10.11 $ ./configure --with-python=/usr/bin/python && make inplace
It is unlikely that whatever bugfix was in Python 2.4.4 will keep Zope from working, although running with that version in production might be less stable somehow.
PS Another option would be to build this on my Mac, but it doesn't look like Zope supports that platform.
Zope will build pretty much anywhere the corresponding Python will build. Lots of developers use Zope on their OS/X laptops, for instance.
Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com
On Wed, Mar 24, 2010 at 9:12 AM, Tres Seaver tseaver@palladion.com wrote:
You should be able to override the "allowed" versions of Python:
$ cd /path/to/Zope-2.10.11 $ ./configure --with-python=/usr/bin/python && make inplace
I tried just that and got the following error:
error: command 'gcc' failed with exit status 1 make: *** [build] Error 1
So I did this:
[root@Zope-2.10.9-final]# yum install gcc
and got this at the end:
Updated: gcc.x86_64 0:4.1.2-46.el5_4.2
Dependency Updated: cpp.x86_64 0:4.1.2-46.el5_4.2 gcc-c++.x86_64 0:4.1.2-46.el5_4.2 libgcc.i386 0:4.1.2-46.el5_4.2 libgcc.x86_64 0:4.1.2-46.el5_4.2 libstdc++.i386 0:4.1.2-46.el5_4.2 libstdc++.x86_64 0:4.1.2-46.el5_4.2 libstdc++-devel.x86_64 0:4.1.2-46.el5_4.2
Complete!
So I tried Zope again and again got this:
error: command 'gcc' failed with exit status 1 make: *** [build] Error 1 [root@Zope-2.10.9-final]# gcc -V gcc: '-V' option must have argument # Whatever. At least it recognized gcc
So what up? I also tried installing Python 2.4.6 on my Mac and got a gcc error!? What do? TIA, Susan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Susan Day wrote:
On Wed, Mar 24, 2010 at 9:12 AM, Tres Seaver tseaver@palladion.com wrote:
You should be able to override the "allowed" versions of Python:
$ cd /path/to/Zope-2.10.11 $ ./configure --with-python=/usr/bin/python && make inplace
I tried just that and got the following error:
error: command 'gcc' failed with exit status 1 make: *** [build] Error 1
So I did this:
[root@Zope-2.10.9-final]# yum install gcc
and got this at the end:
Updated: gcc.x86_64 0:4.1.2-46.el5_4.2
Dependency Updated: cpp.x86_64 0:4.1.2-46.el5_4.2 gcc-c++.x86_64 0:4.1.2-46.el5_4.2 libgcc.i386 0:4.1.2-46.el5_4.2 libgcc.x86_64 0:4.1.2-46.el5_4.2 libstdc++.i386 0:4.1.2-46.el5_4.2 libstdc++.x86_64 0:4.1.2-46.el5_4.2 libstdc++-devel.x86_64 0:4.1.2-46.el5_4.2
Complete!
So I tried Zope again and again got this:
error: command 'gcc' failed with exit status 1 make: *** [build] Error 1
You need to show us the lines above that. You almost certainly need to have the python-dev (or python-devel) RPM installed too: it has the header files for Python.
[root@Zope-2.10.9-final]# gcc -V gcc: '-V' option must have argument # Whatever. At least it recognized gcc
Try:
$ gcc --version
So what up? I also tried installing Python 2.4.6 on my Mac and got a gcc error!? What do?
The system Python supplied by Apple is built *very* strangely, and is likely not to be satisfactory. My Mac-wielding partners recommend installing the Xcode (?) tools first, then building Python from source before building Zope. Some folks use the compiler / Python from fink or MacPorts, as well.
Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com
On Wed, Mar 24, 2010 at 10:13 AM, Tres Seaver tseaver@palladion.com wrote:
You need to show us the lines above that. You almost certainly need to have the python-dev (or python-devel) RPM installed too: it has the header files for Python.
Bingo. That did it and got me in. Been years since I screwed around in Zope ;/ Thanks, Susan