Personal tools
You are here: Home Products Chimera Documentation How-to Installing Chimera on Debian
Document Actions

Installing Chimera on Debian


This How-to is intended for: End user

To make this installation easy for non system admins like me :) we decided to write a step by step How-To to make it easy to go through the installation process.

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: no

the following font backends:
  FreeType: yes
  Win32: no
  ATSUI: no

and 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
>>>
If this does not return an error congratulations. Almost done!

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:
    1. Check if zope has r/w access to the Product Directory
    2. 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.
by Christof Haemmerle last modified July 11, 2006 - 05:14
Contributors: Benjamin Saller

glib install line

Posted by Peter Simmons at October 16, 2006 - 22:30
I found I needed to use the command

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

wrong correction but still need correcting

Posted by Peter Simmons at October 16, 2006 - 22:33
actually the glib curl line should be

curl -O ftp://ftp.gtk.org/pub/glib/2.10/glib-2.10.2.tar.gz

untar needs correcting also

Posted by Peter Simmons at October 16, 2006 - 22:34
so the untar should be

tar xfvz /tmp/glib-2.10.2.tar.gz

other stuff

Posted by Peter Simmons at October 16, 2006 - 22:37
I was installing against a plone installed from the unified source so I didn't need to install python2.4 via apt-get or install the PIL and the python I needed to use was /opt/Plone-2.5/Python-2.4.3/bin/python2.4

I see how this works now

Posted by Peter Simmons at October 16, 2006 - 23:08
I think you should get rid of the intial do this for all 3 packages stuff as it is confusing and repeated further down

untar for pango

Posted by Peter Simmons at October 16, 2006 - 23:09
can use the j switch to make untar one step for bzip compressed

tar xvjf <filename>

Got an error please help

Posted by Peter Simmons at October 16, 2006 - 23:15
All the rest seemed to install correctly, and the configs were correct when I got to the final installing chimera it went fine but the shell test errored see below.

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
>>>

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by