SliTaz SliTaz Forum

You are not logged in.

#1 2011-04-23 05:29:27

Guest
Guest

zope, python et zlib

Bonjour,

voulant installer zope2 j'ai une erreur de compilation en utilisant le paquet python2.5 de la distrib (Slitaz3.0):

error: invalid Python installation: unable to open /usr/include/python2.5/pyconfig.h (No such file or directory)

j'ai donc téléchargé et compilé une version 2.4 de python (sous /opt) mais la compilation de zope2 en précisant cette version de python

./configure --prefix=/opt --with-python=/opt/python2-4/bin/python

me renvoie un problème de dépendance avec zlib (/usr/lib/libz.so sous slitaz):

Configuring Zope installation

The Python interpreter you are using does not appear to have the 'zlib'

library module installed.  For Zope to be able to run, you must install a

Python interpreter which includes the zlib module, or install the zlib library

into your Python interpreter manually.  The file which represents the library

is named 'zlib.so' (UNIX) or 'zlib.dll' (Windows) and is typically located in

the 'lib-dynload' directory of your Python's library directory.  Some

Python packagers ship the zlib module as a separate installable binary. If you

are using a system-provided Python installation, you may want to look for

a 'python-zlib' package (or something like it) and install it to make the

Python zlib module available to Zope.

Run the configure script with the --ignore-zlib option to prevent this

warning with the understanding that Zope will not start properly until

you've installed the zlib module.

j'ai essayé un lien symbolique, copié la lib en la rennomant, recompilé python avec:

./configure --prefix=/opt/python2-4 --with-zlib=/usr/lib/libz.so

mais que neni, toujours la même erreur pour zope! hmm

bon je peux compiler zope en ignorant la zlib, mais franchement.......non!  wink

Merci pour vos idées et vos lumières wink

quercus

#2 2011-04-25 20:43:15

pankso
Administrator
Registered: 2026-06-27
Posts: 341
Website

Re: zope, python et zlib

Hello,

je pense qu'il manque python-dev pour compiler avec Python de la 3.0. Petite astuce, le getsonnaire paquet peut chercher un fichier (aussi depuis http://pkgs.slitaz.org/):

$ tazpkg search-file pyconfig.h --mirror

Oh pis pour le python compilé nativement, je suppose qu'il manquait zlib-dev à la compilation, sinon il aurait le support zlib.

Offline

#3 2011-05-08 08:23:58

Guest
Guest

Re: zope, python et zlib

Bonjour

et merci de m'avoir répondu. Mais le problème venait de la version de zope (2.11.4) qui ne fonctionne qu'avec python.2.4.6 (zlib intégré) !

La compilation s'est très bien déroulée une fois les bonnes versions installées...

j'ai tout de même installé les paquets de dev wink

Merci de cette "astuce" concernant la recherche de fichiers sur les paquets non installés, ça m'a servi pour essayer de compiler Lyx sur ma 3.0 mais trop de dépendances insatisfaites pour y arriver (Lyx est dans cooking par contre)

Je me disais que j'essayerai bien de faire une "receipt" pour zope...et de cuisiner ça dans un wok  wink

J'aurais sans doute besoin d'un peu d'aide mais on va attendre que "Solutions Linux" soit passé peut-être.

Encore merci et bon "salon parisien" à toute l'équipe.

Quercus

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]