-
Building Open Plans On Ubuntu
last modified June 8, 2007 by myddrin
Quick over view of getting Open Plans up and running on Ubuntu (various versions)
- Dapper Drake
Dapper Drake is the most recent version of Ubuntu to have a genuine version of python, so it is the easiest to develop with. (Both edgy and fiesty have wierd interim release version numbers 2.4.4c2 and 2.5.1c1 or something like that, which makes deployment more difficult.)
Before starting to follow the main directions, you will need to make sure you have both the libxml2, libxslt1, libxml2-dev and libxslt1-dev packages installed. You will also need a complete build setup, with the python and linux headers, gcc, etc.
If you lack these packages, you will encounter strange behavior. For example, if you lack libxslt-dev with the current tag ( 0.1.3 ) of topp.build.opencore will fail to install several packages that you need. Although, Jeff has said that future versions will simply fail.
To install these packages, simply open a terminal and enter the following command and hit enter:
sudo apt-get install libxml2 libxslt1 libxml2-dev libxslt1-dev gcc build-essential linux-headers python-dev
You will be prompted for a password, enter your login password and hit enter. This will download and install
There are two additional issues that you likely will encounter:
1) When pulling down topp.build.opencore, topp.build.opencore-0.1.4dev_r4918-py2.4.egg/topp/build/opencore/skel/bin/accept_certificates.sh, sometimes will not be marked as executable. This will cause the build to fail before retrieving the openplans bundle. To fix this, cd to you python site-packages directory (/usr/lib/python2.4/site-packages) and enter the following command:
sudo chmod +x topp.build.opencore-0.1.4dev_r4918-py2.4.egg/topp/build/opencore/skel/bin/accept_certificates.sh
2) After the install you may get an error that a file plone.app.form<somestring>.egg could not be found. Change to the ${deploy_dir}/lib/python directory, unzip plone.app.form<something>.egg, and edit easy-install.pth to remove the plone.app.form entry.
- Edgy Eft
build-opencore --with-python=/usr/local/bin/python2.4 --deploy-dir=~/foo
Alternately, you can download the Zope-2.9.6 source code, and make the following change:
In the Zope source(Thanks to WebMaven for this tip).
directory, the 'configure' file specifies the 'target' (line 15) and
'acceptable' (line 21) python versions for compilation. The target
should simply be changed from '2.4.4' to '2.4.4c1'.
Then use the --with-zope arguement on build-opencore to specify this modified zope base.
Either of these will ensure that Zope builds correctly.
- Fiesty Fawn