Problem Building 2.10.x
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). -- Andrew Milton akm@theinternet.com.au
-----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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkuqD7sACgkQ+gerLs4ltQ4JuQCcDU/hTJourpjZ7+2ZwvCX92j1 b/sAn10zSdLOkHG7mpOo1fZNIQF2GYc5 =X/Th -----END PGP SIGNATURE-----
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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkuqHh0ACgkQ+gerLs4ltQ6WLACfWE0hPKm/3ywTryQ1KwMDOaa9 UeoAn2PENpG7DQP+R/zkPbYvp0lpdrvi =KSoJ -----END PGP SIGNATURE-----
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
participants (3)
-
Andrew Milton -
Susan Day -
Tres Seaver