Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99486
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Zachary Ware <zachary.ware+pylist@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Help needed with compiling python |
| Date | Wed, 25 Nov 2015 14:49:16 -0600 |
| Lines | 42 |
| Sender | zachary.ware@gmail.com |
| Message-ID | <mailman.94.1448484579.20593.python-list@python.org> (permalink) |
| References | <877fl596c6.fsf@Equus.decebal.nl> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de ZKTJWMzFCnYKGQ+3aq7/OQdeOpD5QEf26t68CEeXNPaQ== |
| Return-Path | <zachary.ware@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'importerror:': 0.05; 'skip:/ 10': 0.07; 'default)': 0.09; 'optional': 0.09; 'subject:Help': 0.10; 'python': 0.10; 'causing': 0.13; 'subject:python': 0.14; 'suggest': 0.15; 'wed,': 0.15; '(and,': 0.16; 'did:': 0.16; 'overwriting': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; 'differ': 0.18; 'have:': 0.18; 'stick': 0.18; '2015': 0.20; 'to:name:python-list@python.org': 0.20; '(the': 0.22; 'libraries': 0.22; 'dependent': 0.23; 'import': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'install': 0.25; 'message-id:@mail.gmail.com': 0.27; 'readline': 0.29; 'strongly': 0.30; 'compiled': 0.32; 'source': 0.33; 'traceback': 0.33; 'skip:- 10': 0.34; 'quickly': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'nov': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'lines': 0.36; 'received:209.85': 0.36; 'modules': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'setting': 0.37; 'wanted': 0.37; 'doing': 0.38; 'received:209': 0.38; 'several': 0.38; 'received:209.85.214': 0.39; 'build': 0.40; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'some': 0.40; 'your': 0.60; "you'll": 0.61; 'hope': 0.61; 'avoid': 0.61; 'more': 0.63; 'fact,': 0.67; './configure': 0.84; 'build-dep': 0.84; 'cecil': 0.84; 'off,': 0.84; 'westerhof': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=kislZly3rWNyffvpm3s6a3w7C89VQrVVkuxC3Mnc8yU=; b=EAD5qa0Z1oJ3nQKA++viCnx6SkRHrxIxw1DmvlI3Lj/WrQVJsjKZAMRaOGx65HkLF2 AJFWFvhFF8lO2ySsmbPaDiGWjh3IJ4Jb+jgFTdX3Afq9p1eyYESnzGR9EST53oOnqxih IEruYXoJYFuf9mdbsn+0b1tF9RWg9V8UlYurpQOk0ethH/h7A86mvfB9yBhXzVtDTUOk 1JZO+KhY4wp8pMyFiHmaZ/0nnlksJeJflkViPnm4YvjLBK+XQjpResbZ317HiyPi//Ha seYTxiEUKE5ZZCBEoVbfJPD5J4PFb2hNYiOQ8oXD29EPQ8XGQQpUSJYkKk3CpC59cD8Y bLYA== |
| X-Received | by 10.60.226.194 with SMTP id ru2mr27258730oec.12.1448484576071; Wed, 25 Nov 2015 12:49:36 -0800 (PST) |
| In-Reply-To | <877fl596c6.fsf@Equus.decebal.nl> |
| X-Google-Sender-Auth | R11atJXg8O2UVRo3fnAt_-rjdGk |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:99486 |
Show key headers only | View raw
On Wed, Nov 25, 2015 at 2:23 PM, Cecil Westerhof <Cecil@decebal.nl> wrote: > I wanted to install python myself. I started with 2.7.10. If that > works I also will install 3.5.0. > > I did: > ./configure --prefix=/usr > make > make altinstall > > I have: > /usr/bin/python2.7 > > But when I execute this, I get: > Could not find platform dependent libraries <exec_prefix> > Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] > Python 2.7.10 (default, Nov 25 2015, 20:58:29) > [GCC 4.8.5] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > Traceback (most recent call last): > File "/etc/pythonstart", line 7, in <module> > import readline > ImportError: No module named readline > > What do I need to do to get it working? First off, I strongly suggest not using --prefix=/usr. Stick with --prefix=/usr/local (the default) to avoid overwriting the system Python, which may differ from a source build (and, in fact, overwriting your system Python may be what's causing some of your problems; those first two lines are worrying). Secondly, there are several optional modules that are not compiled unless particular libraries are found to link against, including readline. You'll need the readline development package (probably readline-dev or readline-devel, depending on your distribution). You can quickly pull in the dependencies for all optional modules by doing something like the following for an apt-based system: `apt-get build-dep python3`. Hope this helps, -- Zach
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-25 21:23 +0100
Re: Help needed with compiling python Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-25 14:49 -0600
Re: Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-25 22:52 +0100
Re: Help needed with compiling python Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-25 16:39 -0600
Re: Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-26 07:55 +0100
Re: Help needed with compiling python Laura Creighton <lac@openend.se> - 2015-11-25 23:58 +0100
Re: Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-26 08:00 +0100
Re: Help needed with compiling python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-11-26 19:29 +1100
Re: Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-26 22:33 +0100
Re: Help needed with compiling python Kev Dwyer <kevin.p.dwyer@gmail.com> - 2015-11-27 06:46 +0000
Re: Help needed with compiling python Dave Farrance <df@see.replyto.invalid> - 2015-11-26 11:07 +0000
Re: Help needed with compiling python Cecil Westerhof <Cecil@decebal.nl> - 2015-11-26 22:39 +0100
Re: Help needed with compiling python Zachary Ware <zachary.ware+pylist@gmail.com> - 2015-11-26 23:48 -0600
csiph-web