Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80844

Re: Question about installing python and modules on Red Hat Linux 6

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'programmer': 0.03; '"this': 0.03; '16,': 0.03; 'source,': 0.04; 'debugging': 0.07; 'subject:Question': 0.07; 'admin,': 0.09; 'assuming': 0.09; 'occasionally': 0.09; 'subject:modules': 0.09; 'supported,': 0.09; 'weeks,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7': 0.14; "wouldn't": 0.14; '"can\'t': 0.16; 'competent': 0.16; 'fetches': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'install".': 0.16; 'make,': 0.16; 'optional': 0.16; 'people:': 0.16; 's/he': 0.16; 'subject:Hat': 0.16; 'trivially': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'admin': 0.22; 'saying': 0.22; 'separate': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; "aren't": 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'script': 0.25; 'equivalent': 0.26; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'skills.': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'work.': 0.31; '(which': 0.31; "d'aprano": 0.31; 'easy,': 0.31; 'steven': 0.31; 'run': 0.32; 'linux': 0.33; 'up.': 0.33; 'entirely': 0.33; 'limitation': 0.33; 'trouble': 0.34; 'could': 0.34; 'problem': 0.35; "can't": 0.35; 'case,': 0.35; 'done.': 0.35; "who's": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; '2.6': 0.36; 'dance': 0.36; 'installing': 0.36; 'possible': 0.36; 'should': 0.36; 'half': 0.37; 'application': 0.37; 'so,': 0.37; 'being': 0.38; 'nov': 0.38; 'tools,': 0.38; 'needed': 0.38; 'pm,': 0.38; 'rather': 0.38; 'that,': 0.38; 'little': 0.38; 'bad': 0.39; 'flow': 0.39; 'how': 0.40; 'helps': 0.61; 'first': 0.61; 'name': 0.63; 'grab': 0.64; 'more': 0.64; 'road': 0.65; 'day': 0.76; '2.7.': 0.84; 'compilers,': 0.84; 'etc,': 0.84; 'scheduling': 0.84; 'source?': 0.84; 'step,': 0.84; 'subject:Red': 0.84; 'upstream': 0.84; '"apt-get': 0.91; 'obvious,': 0.91; 'walking': 0.91; '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=GrHVZd7nEenOAy9FOxCJrUnOdcyCBDHcuZnksbXLcEc=; b=Au319RX3gBRS6iDiZhZPOk9lId8hpl0EzQc6ZsiHcnoeA5y5Hn7cd7e0DygnvrkrYd G5zsafS9SvIHFRY072PXICALepubGJPYWyhkbNcR8/PkP73ygjdFmvVEIhc+WX+g7CzJ SQM0c681Govmh15zUhIexazv2LZyXcr19NOd3IpQZde0Dnqu6eLzFLor9Vu5UFCExx8w Ac31EyHmuP384SQdeFUtg+11DFws5KU8wewmx4f8H1lpYjE3NSI3az7L5TB+88RGANyB FhPS58LUDAYOvOLHTpRGun3qz0e+JmztlxUNW/3lXkSIkeupV7UHF5iFEk5e2nm7e8xB 8QmQ==
MIME-Version 1.0
X-Received by 10.107.162.130 with SMTP id l124mr100052ioe.54.1416101522005; Sat, 15 Nov 2014 17:32:02 -0800 (PST)
In-Reply-To <5467f926$0$13014$c3e8da3$5496439d@news.astraweb.com>
References <2e88d2e2-bde6-4d8f-8f2f-06d6a9676ee4@googlegroups.com> <54676e23$0$13010$c3e8da3$5496439d@news.astraweb.com> <m47sdt$o9d$2@reader1.panix.com> <5467f926$0$13014$c3e8da3$5496439d@news.astraweb.com>
Date Sun, 16 Nov 2014 12:32:01 +1100
Subject Re: Question about installing python and modules on Red Hat Linux 6
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.15860.1416101824.18130.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416101824 news.xs4all.nl 2906 [2001:888:2000:d::a6]:52400
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80844

Show key headers only | View raw


On Sun, Nov 16, 2014 at 12:08 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> Assuming it was RHEL 6, then installing Python 2.7 from source as a separate
> application from the system Python should be trivially easy, half an hour's
> work. Download the source, untar, run ./configure, make, make altinstall
> and you should be done. There may be a few bumps in the road to get
> optional components supported, in which case a skilled Linux admin (which I
> am not) might need perhaps a couple of hours. Depending on just how bad the
> bumps were, an unskilled admin like me might take a day or so, not three
> weeks, before giving up.

For a competent Linux system admin, this should be second nature.
Installing from source should be as normal an operation as writing a
shell script or scheduling a job with cron. But if the people
concerned aren't so much "POSIX system admins" as "RHEL admins", then
it's possible they depend entirely on the upstream repositories, and
aren't familiar with the dance of "can't find -lfoo so go install
libfoo-dev" (with occasionally a more exotic step, when the package
name isn't obvious, but Google helps there); in that case, it could
well take a long time, but that's like a Python programmer who's
having trouble debugging an asyncio program because s/he isn't used to
walking through the control flow of "yield from". I know I'm not
competent at that, and it doesn't stop me from being a programmer -
but I'm not going to come to python-list saying "This language sucks,
I can't find this bug", because the problem is a limitation in my own
skills.

Other RHEL people: Is there a yum equivalent to "apt-get build-dep",
which goes out and fetches all the compilers, libraries, build tools,
etc, needed to build a package from source? If so - and I wouldn't be
at all surprised if there is - that would be my recommended first
step: grab the build deps for Python 2.6 and use those to build 2.7.
Chances are that's all you need - that, plus the one little trick of
"make altinstall" rather than "make install".

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Question about installing python and modules on Red Hat Linux 6 pythonista <software.by.python@gmail.com> - 2014-11-14 19:01 -0800
  Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-15 16:09 +1100
  Re: Question about installing python and modules on Red Hat Linux 6 Cameron Simpson <cs@zip.com.au> - 2014-11-15 16:11 +1100
  Re: Question about installing python and modules on Red Hat Linux 6 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-16 02:15 +1100
    Re: Question about installing python and modules on Red Hat Linux 6 Grant Edwards <invalid@invalid.invalid> - 2014-11-15 15:45 +0000
      Re: Question about installing python and modules on Red Hat Linux 6 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-16 12:08 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-16 12:32 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 18:57 -0700
        Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-16 13:23 +1100
        Re: Question about installing python and modules on Red Hat Linux 6 Grant Edwards <invalid@invalid.invalid> - 2014-11-16 16:28 +0000
          Re: Question about installing python and modules on Red Hat Linux 6 Chris Angelico <rosuav@gmail.com> - 2014-11-17 09:16 +1100
    Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:05 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:02 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:13 -0700
  Re: Question about installing python and modules on Red Hat Linux 6 Michael Torrie <torriem@gmail.com> - 2014-11-15 10:23 -0700

csiph-web