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


Groups > comp.lang.python > #90682

Re: Trying to build Python

Newsgroups comp.lang.python
Date 2015-05-15 09:37 -0700
References <87a8x65e28.fsf@Equus.decebal.nl> <a8f18c31-4da2-473b-85a1-309b0ac60ea0@googlegroups.com> <mailman.33.1431688614.17265.python-list@python.org> <87617t6hpp.fsf@Equus.decebal.nl>
Message-ID <df6d75b5-5172-41be-8561-d90b814f31f5@googlegroups.com> (permalink)
Subject Re: Trying to build Python
From Ned Batchelder <ned@nedbatchelder.com>

Show all headers | View raw


On Friday, May 15, 2015 at 10:40:14 AM UTC-4, Cecil Westerhof wrote:
> Op Friday 15 May 2015 13:16 CEST schreef Chris Angelico:
> 
> > On Fri, May 15, 2015 at 9:02 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> >> On Friday, May 15, 2015 at 4:28:13 PM UTC+5:30, Cecil Westerhof wrote:
> >>> I am trying to build Python 3 on a Debian system. It is
> >>> successful, but a few things where missing. Partly I solved it,
> >>> but a few things keep unresolved: _bz2 _sqlite3 readline _dbm _ssl
> >>> _gdbm
> >>>
> >>> What do I need to do to get those resolved also?
> >>>
> >>
> >> $ aptitude build-dep python3
> >>
> >> should fetch the requirements of python3
> 
> It should, but it did not. I had to install tcl-dev and tk-dev and
> then still got the above missing dependencies.

Just to be clear: "build-dep python3" will install the minimum
requirements to build Python.  This worked for you: as you
described, your first build succeeded: it produced an
executable "python".

A few of the more exotic modules that need OS-level support
are built only if the OS support is present.  This is the
message you got at the end of the build.

> 
> 
> > And if not, try grabbing some development libraries:
> >
> > $ sudo apt-get install libbz2-dev libsqlite3-dev libreadline-dev
> > libssl-dev libgdbm-dev
> 
> That did the trick. :-D

And this is how you install those other libraries to get
those modules built! :)

--Ned.

> 
> 
> > I'm not sure about the _dbm module, not sure what it needs.
> 
> I get no complaints anymore, so: problem solved.
> 
> -- 
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof

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


Thread

Trying to build Python Cecil Westerhof <Cecil@decebal.nl> - 2015-05-15 12:29 +0200
  Re: Trying to build Python Rustom Mody <rustompmody@gmail.com> - 2015-05-15 04:02 -0700
    Re: Trying to build Python Chris Angelico <rosuav@gmail.com> - 2015-05-15 21:16 +1000
      Re: Trying to build Python Cecil Westerhof <Cecil@decebal.nl> - 2015-05-15 16:25 +0200
        Re: Trying to build Python Ned Batchelder <ned@nedbatchelder.com> - 2015-05-15 09:37 -0700

csiph-web