Installing Chimera on Debian
This How-to is intended for:
End user
apt-get install gcc-3.4
apt-get install python2.4
apt-get install libjpeg62-dev
apt-get install libpng3-dev
apt-get install gettext
apt-get install libfontconfig1 libfontconfig1-dev
apt-get install libxrender1 libxrender-dev
Install unvailable Packages form source:
The following Packages we need to build form source cause they were not available by the time of writing this how to.
1. Download the following packages in a temporary directory:
cd /tmp
curl -O ftp://ftp.gtk.org/pub/gtk/v2.10/glib-2.10.2.tar.gz
curl -O http://cairographics.org/releases/cairo-1.0.4.tar.gz
curl -O http://ftp.gnome.org/pub/GNOME/sources/pango/1.12/pango-1.12.1.tar.bz2
curl -O http://effbot.org/downloads/Imaging-1.1.5.tar.gz
curl -O http://www.cosc.canterbury.ac.nz/%7Egreg/python/Pyrex/Pyrex-0.9.3.1.tar.gz
curl -O http://cheeseshop.python.org/packages/source/c/chimera/chimera-0.4.0.tar.gz
2. Unpack the Packages and install them:
do the following step for all 3 packages.
tar xfvz /tmp/glib-i2.10.2.tar.gz
cd /tmp/glib-i2.10.2
./configure -—prefix=/usr
make
make install
3. Install Pil 1.1.5 with python 2.4:
cd /tmp
tar xfvz Imaging-1.1.5.tar.gz
cd Imaging-1.1.5
python2.4 setup.py build
python2.4 setup.py install
4. Install Pyrex:
cd /tmp
tar xfvz Pyrex-0.9.3.1.tar.gz
cd Pyrex-0.9.3.1
python2.4 setup.py install
5. Install Cairo:
cd /tmp
tar xfvz cairo-1.0.4.tar.gz
cd cairo-1.0.4
CC="gcc -V3.4" ./configure --prefix=/usr
we want to make sure that Xlib, FreeType, PNG functions get recognized by cairo.
you should see a similar output:
cairo will be compiled with the following surface backends:
Xlib: yes
Quartz: no
XCB: no
Win32: no
PostScript: no
PDF: no
glitz: nothe following font backends:
FreeType: yes
Win32: no
ATSUI: noand the following features:
PNG functions: yes
continue here if all is set.
make
make install
6. Install glib:
cd /tmp
tar xfvz glib-2.10.2.tar.gz
cd glib-2.10.2
CC="gcc -V3.4" ./configure --prefix=/usr
make
make install
7. Install Pango
cd /tmp
bunzip2 pango-1.12.1.tar.bz2
tar xfv pango-1.12.1.tar
cd pango-1.12.1
CC="gcc -V3.4" ./configure --prefix=/usr
Check if the following config is done:
configuration:
backends: FreeType Cairo
make
make install
8.a Install Chimera from Source: (incomplate)
cd /tmp
tar xfvz chimera-0.4.0.tar.gz
cd chimera-0.4.0
python2.4 setup.py build
python2.4 setup.py install
8.b Install Chimera as Egg directly form cheesshop.python.org:
For this you need to have "Easy Install" installed on your box.
easy_install chimera
9. Testing Installation:
To verify that Chimera is successfully installed on your box start the python interactive prompt the following commands.
zope@zopedev:~$ /usr/bin/python2.4
Python 2.4.2 (#2, Nov 20 2005, 17:04:48)
[GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import chimera.pangocairo
>>>
10. Install Chimera in Zope:
Inside the 'chimera' folder move the zope dir into the INSTANCE HOME Prodcuts directory and rename it into Cimera.
11. Start your Zope instance in debug mode to verify that all is working properly
Troubleshoot:
- Zope does not start but the python import 'import chimera.pangocairo' did not give me any error:
- Check if zope has r/w access to the Product Directory
- Be sure that the Zope Installation and the Zope Instance do use the propper Python (2.4 in this case)
see also:
-
How to setup Chimera font receipts
- It you succesfully installed Chimra this is the next step in setting up Font receipts and configuring Chimera.
wrong correction but still need correcting
curl -O ftp://ftp.gtk.org/pub/glib/2.10/glib-2.10.2.tar.gz
untar needs correcting also
tar xfvz /tmp/glib-2.10.2.tar.gz
other stuff
I see how this works now
untar for pango
tar xvjf <filename>
Got an error please help
ethanol:/tmp# /opt/Plone-2.5-bcmp/Python-2.4.3/bin/python2.4
Python 2.4.3 (#1, Sep 16 2006, 13:27:57)
[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import chimera.pangocairo
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/opt/Plone-2.5-bcmp/Python-2.4.3/lib/python2.4/site-packages/PIL/__init__.py", line 24, in ?
File "/opt/Plone-2.5-bcmp/Python-2.4.3/lib/python2.4/site-packages/chimera-0.4.6-py2.4-linux-i686.egg/chimera/chimera.py", line 24, in ?
File "/opt/Plone-2.5-bcmp/Python-2.4.3/lib/python2.4/site-packages/chimera-0.4.6-py2.4-linux-i686.egg/chimera/pangocairo.py", line 7, in ?
File "/opt/Plone-2.5-bcmp/Python-2.4.3/lib/python2.4/site-packages/chimera-0.4.6-py2.4-linux-i686.egg/chimera/pangocairo.py", line 6, in __bootstrap__
ImportError: librsvg-2.so.2: cannot open shared object file: No such file or directory
>>>
glib install line
curl -O ftp://ftp.gtk.org/pub/gtk/v2.10/gtk+-2.10.2.tar.gz
note the gtk+-2.10.2.tar.gz instead of gtk-2.10.2.tar.gz