compile python 3.3 with bz2 support on RedHat 5.5

Isml 76069016 at qq.com
Fri Dec 21 01:35:57 EST 2012


hi, everyone:
    I want to compile python 3.3 with bz2 support on RedHat 5.5 but fail to do that. Here is how I do it:
    1、download bzip2 and compile it(make、make -f Makefile_libbz2_so、make install)
    2、chang to python 3.3 source directory : ./configure --with-bz2=/usr/local/include
    3、make
    4、make install
 
    after installation complete, I test it:
    [root at localhost Python-3.3.0]# python3 -c "import bz2"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.3/bz2.py", line 21, in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
ImportError: No module named '_bz2'
 By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121221/c42b3824/attachment.html>


More information about the Python-list mailing list