Problem deploying Unified Installer on Linux 64b
The problem described below is fixed in the 4.1.3 installer and in later releases of the 4.1.2 installer. If you encounter installation problems on Linux or BSD systems, please file a bug report.
While attempting to deploy Plone 4.1.2 using the UnifiedInstaller on a very new openSuSE 12.1 64b platform, I kept getting errors like
LookupError: unknown encoding: zip Python zlib support is missing; something went wrong in the zlib or python build.
and I could not progress installation. To successfully complete a build of python 2.6, a number of libraries and their development support packages (-devel) need to be installed. Such packages include libxml, libxslt2, readline, zlib and openssl. Make sure these are installed for your distribution. If you still get an error like the above, this may indicate that python has not been built or installed correctly. Try this...
- pick out the python tarball from your Plone package (it should be below packages in the Unified Installer folder) and try and build an independent version of python 2.6 or alternatively build a python version using another means
- once you can demonstrate a functional version of python 2.6 you can then deploy Plone using the Unified Installer by passing it the switch --with-python=/usr/local/bin/python2.6 or similar pointing at an appropriate python binary
- unpack the Python tarball as described above and follow a build sequence of ./configure; make
- if all the appropriate libraries are available, this should build successfully creating a python binary at the top of the build tree
- execute this binary and verify that you can import modules like xml, readline, zlib and ssl
- make install can now be invoked to deploy the package; this should install a binary in /usr/local/bin
- again attempt to verify that these imports will succeed using this installed binary
- if these modules now fail to load, check if there is a tree in /usr/local/lib64/python2.6 containing folders such as config or lib-dynload - these probably should have been installed below /usr/local/lib/python2.6. Make symbolic links to the actual directories in local/lib/python2.6 and try the imports again. Hopefully they will now work
