Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81612
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.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; 'scripts': 0.03; 'source,': 0.04; 'configure': 0.05; 'subject:Python': 0.06; 'skip:/ 10': 0.09; 'subject:2.7': 0.09; "system's": 0.09; 'tmp': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; '--prefix': 0.16; 'does,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mkdir': 0.16; 'stable.': 0.16; 'tix': 0.16; 'unnecessary.': 0.16; 'url:ftp': 0.16; 'apps': 0.16; 'wrote:': 0.18; 'library': 0.18; 'all,': 0.19; 'trying': 0.19; "python's": 0.19; 'thu,': 0.19; 'version.': 0.19; 'machine': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'error': 0.23; 'directory.': 0.24; 'exists': 0.24; '(or': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'skip:p 30': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'file:': 0.31; 'loading': 0.31; 'python2.7': 0.31; 'file': 0.32; 'run': 0.32; 'open': 0.33; 'url:python': 0.33; 'problem.': 0.35; 'hundreds': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'version': 0.36; 'installing': 0.36; 'url:org': 0.36; 'should': 0.36; 'changing': 0.37; 'skip:- 20': 0.37; 'depends': 0.38; 'hat': 0.38; 'nov': 0.38; 'skip:- 10': 0.38; 'sure': 0.39; 'system.': 0.39; 'how': 0.40; 'break': 0.61; 'url:5': 0.61; 'new': 0.61; 'simply': 0.61; 'simple': 0.61; "you're": 0.61; "you'll": 0.62; 'such': 0.63; 'skip:n 10': 0.64; 'grab': 0.64; 'latest': 0.67; 'export': 0.74; 'potentially': 0.81; './configure': 0.84; 'suspicion': 0.84; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=/EjZ2O110mZKkhtJgqvg0lIxggbuXCWyNJPGWaY6Zi8=; b=zHJLmkMRpoBK8nuprLL2HSyr2wFcj8dhtD1QYuH8UBJv7rONLlUbqu54mPihNkQeR+ eSKwerzAUXBKp3fVp3ICMkCSjbYbhbl65snxYpBAjZ0a9j2Y6x/hCS3RxQrOQKBRLZW0 OqX6Pvk6kolQpGbS1GEKosQ+qYwBEKc0uaGN8/waoCStVkq5H2+b36a18vEgYXbiXGJ0 6yuixthZD7ds3KLkrLkmEOsF3soy8qtWEJCQmLBftquXK+yqoyJ9Tr5UiHQn/Gtiti9X QRa7sv+MebVHWIZ9LDt/vFjrHRXUiUyWxLytuxdBjENfN1zWY35/ABPGqagEoGCVE1WP T6Vg== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.62.104 with SMTP id x8mr19380957igr.2.1417045642031; Wed, 26 Nov 2014 15:47:22 -0800 (PST) |
| In-Reply-To | <2680a96a-f5a9-44d8-b4b1-6e0ca32a53ed@googlegroups.com> |
| References | <2680a96a-f5a9-44d8-b4b1-6e0ca32a53ed@googlegroups.com> |
| Date | Thu, 27 Nov 2014 10:47:21 +1100 |
| Subject | Re: Issues installing Python 2.7 |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| 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 | <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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16356.1417045644.18130.python-list@python.org> (permalink) |
| Lines | 55 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417045644 news.xs4all.nl 2881 [2001:888:2000:d::a6]:53101 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81612 |
Show key headers only | View raw
On Thu, Nov 27, 2014 at 4:09 AM, <billyfurlong@gmail.com> wrote: > Hi all, > > Not a python user but I'm trying to upgrade python so I can install pip which is required for one of the apps that I'm installing. > > I've tried to install using the below instructions, but when I type python I still get the old 2.4.3 version. Oh Red Hat 5.8 is where I'm installing on. Since RHEL depends on Python's stability, you'll continue to get the old version when you just type 'python'. Changing that would potentially break hundreds of scripts in your system. You're definitely going to have to type 'python2.7' to get the new version. > yum groupinstall "development tools" -y > yum install readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel \ > glib-devel expat-devel libGL-devel tk tix gcc-c++ \ > libX11-devel glibc-devel bzip2 tar tcl-devel tk-devel pkgconfig \ > tix-devel bzip2-devel sqlite-devel autoconf db4-devel libffi-devel \ > valgrind-devel -y > mkdir tmp > cd tmp > wget http://python.org/ftp/python/2.7.5/Python-2.7.5.tgz > tar xvfz Python-2.7.5.tgz > cd Python-2.7.5 Hmm, you just grabbed 2.7.5, but there's a 2.7.8 (and 2.7.9 is in RC, coming soon). I don't think it'll make much difference here, but you may as well grab the latest stable. > ./configure --prefix=/opt/python2.7 --enable-shared > > make > > make altinstall It's been a while since I built a Python 2 from source, but I suspect 'make altinstall' is safe, and the --prefix to configure is unnecessary. However... my suspicion is that you simply need to reference the shared library from the same directory. > Add this to the bashrc > export PATH=$PATH:/opt/python2.7/bin/ > > > [root@wmy machine bin]# python2.7 > python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory See if that file exists somewhere in /opt/python2.7 - if it does, you may simply need to add that directory to ld.so.conf (or ld.so.conf.d if that's how your system's set up) and rerun ldconfig. Alternatively, you should be able to run Python directly from the build tree. If that works, you know for sure that it's a simple pathing problem. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Issues installing Python 2.7 billyfurlong@gmail.com - 2014-11-26 09:09 -0800
Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-27 10:47 +1100
Re: Issues installing Python 2.7 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-27 11:53 +1100
Re: Issues installing Python 2.7 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-11-27 12:40 -0500
Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-11-28 09:40 +1100
Re: Issues installing Python 2.7 Michael Torrie <torriem@gmail.com> - 2014-11-26 21:04 -0700
Re: Issues installing Python 2.7 Steven D'Aprano <steve@pearwood.info> - 2014-11-27 08:13 +0000
Re: Issues installing Python 2.7 billyfurlong@gmail.com - 2014-12-01 08:40 -0800
Re: Issues installing Python 2.7 Chris Angelico <rosuav@gmail.com> - 2014-12-02 03:50 +1100
csiph-web