Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81616
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <torriem+gmail@torriefamily.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'skip:/ 10': 0.09; 'subject:2.7': 0.09; 'wrapper': 0.09; 'python': 0.11; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'libraries.': 0.16; 'path:': 0.16; 'tarball': 0.16; 'terse': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'solution.': 0.20; 'machine': 0.22; 'installation': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'library,': 0.24; "shouldn't": 0.24; 'skip:l 30': 0.24; 'fine': 0.24; 'environment': 0.24; 'source': 0.25; 'script': 0.25; 'this:': 0.26; 'post': 0.26; 'certain': 0.27; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'correct': 0.29; 'on,': 0.29; 'am,': 0.29; 'sets': 0.30; 'along': 0.30; 'file:': 0.31; 'loading': 0.31; 'python2.7': 0.31; 'file': 0.32; 'this.': 0.32; 'run': 0.32; 'open': 0.33; 'linux': 0.33; 'worked': 0.33; 'running': 0.33; 'but': 0.35; 'there': 0.35; "he's": 0.36; 'message-id:@gmail.com': 0.38; 'depends': 0.38; 'to:addr:python- list': 0.38; 'explain': 0.39; '(from': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'solve': 0.60; 'further': 0.61; 'first': 0.61; 'email addr:gmail.com': 0.63; 'such': 0.63; 'provide': 0.64; 'below.': 0.71; 'skip:/ 30': 0.84 |
| X-Virus-Scanned | amavisd-new at torriefamily.org |
| Date | Wed, 26 Nov 2014 21:04:20 -0700 |
| From | Michael Torrie <torriem@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Issues installing Python 2.7 |
| References | <2680a96a-f5a9-44d8-b4b1-6e0ca32a53ed@googlegroups.com> |
| In-Reply-To | <2680a96a-f5a9-44d8-b4b1-6e0ca32a53ed@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| 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.16359.1417061067.18130.python-list@python.org> (permalink) |
| Lines | 32 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417061067 news.xs4all.nl 2887 [2001:888:2000:d::a6]:57330 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81616 |
Show key headers only | View raw
To further explain my terse post from before (from my phone), see below. On 11/26/2014 10:09 AM, billyfurlong@gmail.com wrote: > Now the installation worked fine but shouldn't I see that it's using the correct version??? > > I also did try to run /opt/python2.7/bin/python2.7 and it give me this. > > [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 > > Please help the newb. He's frustrated. So the longer answer is that only certain directories are searched by Linux for shared libraries. Python happens to provide a shared library, which it depends on, which is installed by the source tarball in /opt along with the binaries. There are a number of ways you can solve this: - Create a file in /etc/ld.so.conf.d/python2.7.conf and place in it the following path: /opt/python2.7/lib - before running /opt/python2.7/bin/python2.7, set the LD_LIBRARY_PATH environment variable (example in bash): $ LD_LIBRARY_PATH=/opt/python2.7/lib /opt/python2.7/bin/python2.7 - create a wrapper script in /usr/bin that sets LD_LIBRARY_PATH and execs python2.7 I recommend the first as a permanent solution.
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