Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'configure': 0.04; 'output': 0.04; 'importerror:': 0.05; 'python3': 0.05; '21,': 0.07; 'list?': 0.07; 'problem?': 0.07; 'python': 0.09; 'subject:python': 0.11; 'dec': 0.15; '"import': 0.16; 'bz2': 0.16; 'subject:3.3': 0.16; 'to:name:python list': 0.16; 'wrote:': 0.17; 'module': 0.19; 'skip:" 30': 0.20; 'import': 0.21; '"",': 0.22; 'subject:support': 0.22; 'installation': 0.23; '>': 0.23; 'header:In-Reply-To:1': 0.25; 'skip:[ 10': 0.26; '(most': 0.27; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'built.': 0.29; 'complete,': 0.29; 'skip:& 10': 0.29; 'source': 0.29; 'install': 0.29; 'that.': 0.30; 'header:Received:8': 0.30; 'file': 0.32; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'skip:& 20': 0.33; 'skip:- 20': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'built-in': 0.35; 'fail': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'modules': 0.36; 'subject:with': 0.36; 'test': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'here': 0.65; '8bit%:21': 0.69; './configure': 0.84 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=E8dnJvqyAL+NUgzA8xm59JM+IdBVFwnrIeQ6raHpy08=; b=WFEjQhoDZXQcWSI78yczM1QIvW1ne6T3cm7X8h+VFeqFKSkRTswBhJX55Lo8sf63HW 6Fz8/oQIzS93P08N96nSoxmOLB+KIXarAknm+Vc9zC4Xfa0LdfH9kl7REgYNiauu2N8v XrrLKT7d9Qu8QdTyIfYP0od1tUrbQFiHvkVD4gDET/sWCqozF7XV/YlBm9erWBg2AY+I RUq9PXwesBSx6P++ScwYIUgfLQ8gOO46JjhE1bGP24TAyOOJIsV0A5ECzsUTxFA9J8xB csQk1WfWkhFpn9TPslsda1/XoatM0bJBOUIb5PfZG7TuJATKa2x78CyYVQgetX+1EbKq oGRw== X-Received: by 10.60.172.71 with SMTP id ba7mr2134053oec.50.1356192412200; Sat, 22 Dec 2012 08:06:52 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 22 Dec 2012 08:06:51 -0800 Subject: Re: compile python 3.3 with bz2 support From: Benjamin Kaplan To: Python List Content-Type: multipart/alternative; boundary=bcaec54c5252f8ae3104d1732674 X-Gm-Message-State: ALoCoQnw4rEZ3QLLtBeB6p8lakqnSWzakfvekYrwxF077maPtUqM2Rb4n/UR8/mpHqd8UAXlpgICPQYTbTX6W1v1a5IfclDuTPbReh8mnLJpSOTrdOe5F8O4neBvJX5vP1ump8YkEBHmZ+8OBwawrruxarvV6R445g== X-Junkmail-Whitelist: YES (by domain whitelist at mpv1.tis.cwru.edu) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 73 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356192420 news.xs4all.nl 6950 [2001:888:2000:d::a6]:52766 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35374 --bcaec54c5252f8ae3104d1732674 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Dec 21, 2012 1:31 AM, "Isml" <76069016@qq.com> 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=E3=80=81make -f Makefile_libbz2= _so=E3=80=81make install) > 2.chang to python 3.3 source directory : ./configure --with-bz2=3D/usr/local/include > 3. make > 4. make install > > after installation complete, I test it=EF=BC=9A > [root@localhost Python-3.3.0]# python3 -c "import bz2" > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python3.3/bz2.py", line 21, in > 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= ? > > > -- What is the output of configure? The last thing it does is list which modules are not going to be built. Is bz2 on the list? What does configure say when it's looking for bz2? --bcaec54c5252f8ae3104d1732674 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Dec 21, 2012 1:31 AM, "Isml" <76069016@qq.com> wrote:
>
> hi, everyone:
> =C2=A0 =C2=A0 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:
> =C2=A0 =C2=A0 1. download bzip2 and compile it(make=E3=80=81make -f Ma= kefile_libbz2_so=E3=80=81make install)
> =C2=A0 =C2=A0 2.chang to python 3.3 source directory : ./configure --w= ith-bz2=3D/usr/local/include
> =C2=A0 =C2=A0 3. make
> =C2=A0 =C2=A0 4. make install
> =C2=A0
> =C2=A0 =C2=A0 after installation complete, I test it=EF=BC=9A
> =C2=A0 =C2=A0 [root@localhost Python-3.3.0]# python3 -c "import b= z2"
> Traceback (most recent call last):
> =C2=A0 File "<string>", line 1, in <module>
> =C2=A0 File "/usr/local/lib/python3.3/bz2.py", line 21, in &= lt;module>
> =C2=A0 =C2=A0 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 prob= lem?
> =C2=A0
>
> --

What is the output of configure? The last thing it does is list which mo= dules are not going to be built. Is bz2 on the list? What does configure sa= y when it's looking for bz2?

--bcaec54c5252f8ae3104d1732674--