Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35273

compile python 3.3 with bz2 support

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <76069016@qq.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'importerror:': 0.05; 'python3': 0.05; '21,': 0.07; 'position:': 0.07; 'problem?': 0.07; 'python': 0.09; 'relative;': 0.09; 'subject:python': 0.11; 'to:name:python-list': 0.15; '"import': 0.16; '10px;': 0.16; '14px;': 0.16; 'bz2': 0.16; 'subject:3.3': 0.16; 'module': 0.19; 'skip:" 30': 0.20; 'import': 0.21; '"",': 0.22; '<div': 0.22; 'subject:support': 0.22; 'installation': 0.23; 'skip:[ 10': 0.26; '(most': 0.27; 'complete,': 0.29; 'skip:& 10': 0.29; 'source': 0.29; 'install': 0.29; 'that.': 0.30; 'auto;': 0.30; 'file': 0.32; 'padding-top:': 0.33; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'skip:- 20': 0.34; 'built-in': 0.35; 'fail': 0.35; 'but': 0.36; 'subject:with': 0.36; 'test': 0.36; 'to:addr:python.org': 0.39; 'skip:" 10': 0.40; 'here': 0.65; './configure': 0.84; 'from:addr:qq.com': 0.84; 'message- id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1356071344; bh=qvMK0dSO53+MM4Lz92LMNoY71dwwbJnipGneHF9WwqE=; h=X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN:X-Originating-IP: X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer; b=QiEfWcOkPuio2uDKZrfccvMElRYszRzgLndugIVEXReWjTLWI5Etj/bu9BwnmtrRu n5zqXZMyuZ3VzGrnFH9DG7OHQvA/BrCI5zqFVZShKNCjD5RQjOku1vxPPHCTNuX
X-QQ-SSF 00000000000000F000000000000000S
X-HAS-ATTACH no
X-QQ-BUSINESS-ORIGIN 2
X-Originating-IP 180.168.45.138
X-QQ-STYLE
X-QQ-mid webmail607t1356071274t926956
From "Isml" <76069016@qq.com>
To "python-list" <python-list@python.org>
Subject compile python 3.3 with bz2 support
Mime-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_50D4016A_D5414260_416B38CD"
Content-Transfer-Encoding 8Bit
Date Fri, 21 Dec 2012 14:27:54 +0800
X-Priority 3
X-QQ-MIME TCMime 1.0 by Tencent
X-Mailer QQMail 2.x
X-QQ-Mailer QQMail 2.x
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1139.1356071349.29569.python-list@python.org> (permalink)
Lines 61
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356071349 news.xs4all.nl 6941 [2001:888:2000:d::a6]:58944
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35273

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

compile python 3.3 with bz2 support "Isml" <76069016@qq.com> - 2012-12-21 14:27 +0800
  Re: compile python 3.3 with bz2 support Miki Tebeka <miki.tebeka@gmail.com> - 2012-12-22 07:28 -0800
  Re: compile python 3.3 with bz2 support Miki Tebeka <miki.tebeka@gmail.com> - 2012-12-22 07:28 -0800

csiph-web