473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

No zlib in Python 2.4.4

Hi,

I've compiled (configure/make/make install) Python 2.4.4 from source
on Suse Linux Enterprise Server 9 (x64).

I need Python to be compiled with Zlib so that I can compile and use
Zope.

After installing Python, zlib doesn't seem to have been compiled with
it, I've checked the /usr/local/lib/python2.4/lib-dynload/ folder and
there is no zlib.so in there.

Shouldn't zlib be compiled as a Python module automatically in Python
2.4.4. I'm guessing Python is doing some kind of check and not
compiling zlib for some reason?

Any help would be appreciated.

Thanks,
Shams

Apr 11 '07 #1
4 7422
In <11**********************@p77g2000hsh.googlegroups .com>, shamzz wrote:
Shouldn't zlib be compiled as a Python module automatically in Python
2.4.4. I'm guessing Python is doing some kind of check and not
compiling zlib for some reason?
It only gets compiled if the header files can be found. Is the zlib-dev
or zlib-devel package installed?

Ciao,
Marc 'BlackJack' Rintsch
Apr 11 '07 #2
I need Python to be compiled with Zlib so that I can compile and use
Zope.
I am guessing you need zlib_dev.rpm (or somesuch) installed
for the python build process to find the relevant headers.
Sorry I cannot be more specific not being a SuSE user myself
(anymore)...

Bernard.
Apr 11 '07 #3
On Apr 11, 9:14 am, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
In <1176278576.196716.104...@p77g2000hsh.googlegroups .com>, shamzz wrote:
Shouldn't zlib be compiled as a Python module automatically in Python
2.4.4. I'm guessing Python is doing some kind of check and not
compiling zlib for some reason?

It only gets compiled if the header files can be found. Is the zlib-dev
or zlib-devel package installed?
Thanks for the fast reply... this seems to be going off topic from
Python so sorry about that.

But yep, I've just installed (through YAST) the zlib-devel and zlib-
devel-32 packages (zlib and zlib-32bit are already installed).

I then did a make clean/configure/make/make install with the Python
source, but it's still not compiling with zlib.

I've downloaded the latest (source) version of zlib 1.2.3, is it
possible to manually compile it from the zlib source into Python?

Thanks for your help,
Shams.

Apr 11 '07 #4
On 2007-04-11, sh****@gmail.com <sh****@gmail.comwrote:
On Apr 11, 9:14 am, Marc 'BlackJack' Rintsch <bj_...@gmx.netwrote:
>In <1176278576.196716.104...@p77g2000hsh.googlegroups .com>, shamzz wrote:
Shouldn't zlib be compiled as a Python module automatically in Python
2.4.4. I'm guessing Python is doing some kind of check and not
compiling zlib for some reason?

It only gets compiled if the header files can be found. Is the zlib-dev
or zlib-devel package installed?

Thanks for the fast reply... this seems to be going off topic from
Python so sorry about that.

But yep, I've just installed (through YAST) the zlib-devel and zlib-
devel-32 packages (zlib and zlib-32bit are already installed).

I then did a make clean/configure/make/make install with the Python
source, but it's still not compiling with zlib.
carefully inspect the configure output. Where it gets to the zlib output, it
should print a message about whether it found the libraries or not.
Usually, in these situations, I find myself looking closely at the output
in config.log to see exactly what gcc command it tried to run.

If that doesn't help, take a look at the 'make' output. It might be that there
is no check for zlib in configure, but Python goes to build the module and fails
due to missing headers or libraries.

Dave
Apr 11 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alan Toppen | last post by:
I was unable to use the ZipFile class in the zipfile module in Python2.4. I got an error that zlib could not be found. Comparing my Python 2.2 installation I noticed Python 2.4 was missing a...
6
by: Laszlo Zsolt Nagy | last post by:
Sorry, I realized that the import zlib was not executed from my (working) service. So here is the question: why can't I use zlib from a win32 service? Is there any way to make it working? ...
16
by: Claudio Grondi | last post by:
What started as a simple test if it is better to load uncompressed data directly from the harddisk or load compressed data and uncompress it (Windows XP SP 2, Pentium4 3.0 GHz system with 3 GByte...
2
by: Milos Prudek | last post by:
Although I have Python 2.5 with zlib in my Linux disto, I need to install my own Python (as most Zope developers do). Zope requires zlib. Python 2.4.4 does not contain zlib. What is the correct...
3
by: stuntgoat | last post by:
import zlib works in Python 2.4 (debian etch AMD64 - default python version for that distro) I built python 2.5 from source; zlib is not importable. I am trying to compile MySQLdb. any...
1
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I can't seem to get the zlib module to build on an RHEL box. I did the following: 1) Download zlib 1.2.3 2) configure;make;make install 3) Download python 2.5.2 4) configure;make;make install...
2
by: rajevar | last post by:
hi, i have seen various post related to this topic but i couldnt resolve my issue yet. Im using python version 2.5 on Linux environment this is the error im getting if i try to import zlib ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.