Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35274
| 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.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'importerror:': 0.05; 'python3': 0.05; '21,': 0.07; 'problem?': 0.07; 'python': 0.09; 'subject:python': 0.11; 'to:name:python-list': 0.15; '"import': 0.16; 'bz2': 0.16; 'subject:3.3': 0.16; 'module': 0.19; 'skip:" 30': 0.20; 'import': 0.21; '"",': 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; 'file': 0.32; '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:64.71': 0.84; 'received:64.71.138': 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=1356071828; bh=+x6VpmFtcAsULbUd1H9LiMDBp49bQfSlepWsmgu7HXA=; 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=hDPrmPB/Q/hmY2s2Xt4tOvqRI144JBPf/h7HGHsfoIDlZSoIZMs2I3mOwFTmzadtD 3nyYs4geyfKRJlcGWdp8WVQLhX4IMq53IkY/OCgCaCwnjMFA8B2oPlymaSCyUWL |
| 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 | webmail607t1356071757t5191953 |
| From | "Isml" <76069016@qq.com> |
| To | "python-list" <python-list@python.org> |
| Subject | compile python 3.3 with bz2 support on RedHat 5.5 |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="----=_NextPart_50D4034D_D683B0F0_42A854F1" |
| Content-Transfer-Encoding | 8Bit |
| Date | Fri, 21 Dec 2012 14:35:57 +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.1140.1356071834.29569.python-list@python.org> (permalink) |
| Lines | 48 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1356071834 news.xs4all.nl 6983 [2001:888:2000:d::a6]:33572 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:35274 |
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 | Next — Next in thread | Find similar | Unroll thread
compile python 3.3 with bz2 support on RedHat 5.5 "Isml" <76069016@qq.com> - 2012-12-21 14:35 +0800 Re: compile python 3.3 with bz2 support on RedHat 5.5 Ramchandra Apte <maniandram01@gmail.com> - 2012-12-21 04:15 -0800
csiph-web