Re: compile python 3.3 with bz2 support on RedHat 5.5

Discussion in 'Python' started by Ramchandra Apte, Dec 21, 2012.

  1. On Friday, 21 December 2012 12:05:57 UTC+5:30, Isml wrote:
    > 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@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?


    Are the bzip headers in /usr/local/include/ ?
     
    Ramchandra Apte, Dec 21, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. U. George
    Replies:
    4
    Views:
    886
    U. George
    Aug 11, 2005
  2. Magdoll
    Replies:
    3
    Views:
    398
    Steven D'Aprano
    Jun 5, 2010
  3. Chris Angelico
    Replies:
    0
    Views:
    148
    Chris Angelico
    Dec 21, 2012
  4. Miki Tebeka

    Re: compile python 3.3 with bz2 support

    Miki Tebeka, Dec 22, 2012, in forum: Python
    Replies:
    0
    Views:
    183
    Miki Tebeka
    Dec 22, 2012
  5. Benjamin Kaplan

    Re: compile python 3.3 with bz2 support

    Benjamin Kaplan, Dec 22, 2012, in forum: Python
    Replies:
    0
    Views:
    176
    Benjamin Kaplan
    Dec 22, 2012
Loading...

Share This Page