I tried to build Zope on AIX and gave up pretty quickly. All of the dynamic extensions fail - it looks like for the following reasons. It tries to use './ld_so_aix' as the linker - this is a script that comes with the python source kit but doesn't get installed and obviously doesn't exist in dot. I changed the makefile so it could find ld_so_aix but now it fails because in each dir with a dynamic extension it is looking for a file called ./python.exp - which is a some file needed to build dynamic libs on aix that is generated by running makexp_aix (another script shipped with the python source kit) on each .o file (which seems to pretty much just run 'nm' on the object files.) Is there a way I can have the build process make static extension and just create a new python - like Zpython or something? Anyway, I copied most of the extensions into the python source tree and rebuilt it - but the zope build process fails because it tries to build the extensions anyway. So, I just tried to run it - and I get Sorry, an error occurred.<p> <!-- Traceback (innermost last): File /data/zope/lib/python/ZPublisher/Publish.py, line 879, in publish_module File /data/zope/lib/python/ZPublisher/Publish.py, line 595, in publish (Info: /index_html) File /data/zope/lib/python/OFS/Document.py, line 181, in __call__ (Object: index_html) File /data/zope/lib/python/OFS/Document.py, line 177, in __call__ (Object: index_html) TypeError: Sorry, an error occured --> with the zope http zerver and: Sorry, the requested document does not exist. Traceback (innermost last): File /data/zope/lib/python/ZPublisher/Publish.py, line 879, in publish_module File /data/zope/lib/python/ZPublisher/Publish.py, line 407, in publish (Info: ) File /data/zope/lib/python/OFS/Application.py, line 279, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) NotFound: (see above) with apache. Is there something I missed? Something the build process does other than making the extensions that I need to do? Thanks, ^Roman
Roman Milner wrote:
but the zope build process fails because it tries to build the extensions anyway. So, I just tried to run it - and I get
We don't have AIX here, so we can't test it live...however, it's possible that the sample database didn't get copied over but Zope is still working... which means there won't be an index_html object (thus you'd get the not found error below). Can you go to /manage? Michel
Sorry, an error occurred.<p> <!-- Traceback (innermost last): File /data/zope/lib/python/ZPublisher/Publish.py, line 879, in publish_module File /data/zope/lib/python/ZPublisher/Publish.py, line 595, in publish (Info: /index_html) File /data/zope/lib/python/OFS/Document.py, line 181, in __call__ (Object: index_html) File /data/zope/lib/python/OFS/Document.py, line 177, in __call__ (Object: index_html) TypeError: Sorry, an error occured
-->
with the zope http zerver and:
Sorry, the requested document does not exist.
Traceback (innermost last): File /data/zope/lib/python/ZPublisher/Publish.py, line 879, in publish_module File /data/zope/lib/python/ZPublisher/Publish.py, line 407, in publish (Info: ) File /data/zope/lib/python/OFS/Application.py, line 279, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) NotFound: (see above)
with apache. Is there something I missed? Something the build process does other than making the extensions that I need to do?
Thanks, ^Roman
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
Roman Milner wrote:
I tried to build Zope on AIX and gave up pretty quickly. All of the dynamic extensions fail - it looks like for the following reasons.
It tries to use './ld_so_aix' as the linker - this is a script that comes with the python source kit but doesn't get installed and obviously doesn't exist in dot.
I changed the makefile so it could find ld_so_aix but now it fails because in each dir with a dynamic extension it is looking for a file called ./python.exp - which is a some file needed to build dynamic libs on aix that is generated by running makexp_aix (another script shipped with the python source kit) on each .o file (which seems to pretty much just run 'nm' on the object files.)
Is there a way I can have the build process make static extension and just create a new python - like Zpython or something?
I've compiled Zope in AIX, the process to do it is really a little dirty. If you don't want to use your own python, I believe you'd be able to compile it statically just by removing the line "*shared*" from the Setup files. There are some of them, see: find . -name "Setup" -exec grep "*shared*" /dev/null {} \; ./lib/python/Setup:*shared* ./lib/python/BoboPOS/Setup:*shared* ./lib/python/DocumentTemplate/Setup:*shared* ./lib/python/Products/MailHost/Setup:*shared* ./lib/python/Products/MailHost/sample/Setup:*shared* ./lib/python/Products/ZMySQLDA/src/Setup:*shared* ./lib/Components/ExtensionClass/Setup:*shared* ./lib/Components/cPickle/Setup:*shared* ./lib/Components/zlib/Setup:*shared* Here's how I've compiled with my own python: 1)Download, compile, and install your own python from http://www.python.org 2)Get the source Zope 3)You'll have to copy(link) from the python/Modules dir the files ld_so_aix, makexp_aix, and python.exp to the dirs: find . -name "ld_so_aix" -print ./ld_so_aix ./lib/python/BoboPOS/ld_so_aix ./lib/python/DocumentTemplate/ld_so_aix ./lib/python/ld_so_aix ./lib/Components/ExtensionClass/ld_so_aix Now compile Zope and it should work. hope this helps, -- Paulo Eduardo Neves PUC-Rio de Janeiro Pager: Central: 292-4499 cod. 213 99 64 ou use a URL: http://www.learn.fplf.org.br/neves/mensagempager.html
participants (3)
-
Michel Pelletier -
Paulo Eduardo Neves -
Roman Milner