|
From: Fabian D. <Fab...@im...> - 2006-03-01 13:41:21
|
On Tue, 2006-02-28 at 12:08, Bernhard Reiter wrote:
> On Mon, Feb 27, 2006 at 02:42:42PM +0100, Fabian Dortu wrote:
> >
> > Finally, thanks to --J's fonts documentation, I was able to get the
> > fonts working under RedHat Entreprise 9.
>
> Cool.
>
> How did you install Skencil initially?
>
I compiled python 2.4 with tkinter and with PIL and PyXML
Then I compiled skencil. Here is the procedure:
Python 2.4.2 and Skencil 0.6.17:
-----------------------------------------------
In order to compile and use skencil, a writable python tree is needed.
Important aspect:
* tkinter must be build. tk8.4 is needed for that. It is
therefore important to add the /scratch /usr/lib in the LD_RUN_PATH.
* The PIL (Python Imaging Libray) is also required.
to build python:
$ tar xfvz Python-2.4.2.tgz
$ setenv LD_RUN_PATH /scratch/usr/lib
$ ./configure --prefix=/scratch/usr
$ make
$ make install
$ set path = ( /scratch/usr/bin $path )
To check if Tkinter has been included properly into Python,
just try it
$ python
>>> import _tkinter
if there is no error message, that's fine.
Then it's time to instal PIL (download sources at
http://www.pythonware.com).
$ tar xvfz Imaging-1.1.5.tar.gz
$ cd Imaging-1.1.5
$ python setup.py install
The header files need to be copied manually:
$ cd libImaging
$ cp ImConfig.h ImPlatform.h Imaging.h /scratch/usr/include/python2.4/
The XML module is also needed in order
to support SVG (http://www.python.org/topics/xml/download.html)
$ tar xfvz PyXML-0.8.4.tar.gz
$ python setup.py build
$ python setup.py install
Installing Skencil:
-------------------
$ tar xfvz skencil-0.6.17.tar.gz
$ cd skencil-0.6.17
The setup.py script need to be edited at 3 places.
Do the following modifications (add '/scratch/usr/lib', ):
lib_dirs = ['/scratch/usr/lib', '/usr/lib', '/usr/local/lib']
...
std_inc_dirs = ["/scratch/usr/include", "/usr/include/",
"/usr/local/include"]
...
inc_dirs = ["/scratch/usr/include", "/usr/include/tcl" + version] +
std_inc_dirs
Save and type:
$ ./setup.py configure --prefix=/scratch/usr --tk-flags=/scratch/usr/lib
$ ./setup.py build
$ ./setup.py install --prefix=/scratch/usr
To run skencil, don't forget to add the this in the path:
$ set path = ( /scratch/usr/bin $path )
$ skencil
> Did you use the RedHat RPMs by Axel Thimm as can reached from
> the downloade page?
No, I haven't tried.
>
> If this is a bug in the RedHat RPMS, we might help the packager to
> correct them.
>
> Bernhard R.
Fabian
|