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


Groups > comp.lang.python > #90667 > unrolled thread

Trying to build Python

Started byCecil Westerhof <Cecil@decebal.nl>
First post2015-05-15 12:29 +0200
Last post2015-05-15 09:37 -0700
Articles 5 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  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

#90667 — Trying to build Python

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-05-15 12:29 +0200
SubjectTrying to build Python
Message-ID<87a8x65e28.fsf@Equus.decebal.nl>
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?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#90668

FromRustom Mody <rustompmody@gmail.com>
Date2015-05-15 04:02 -0700
Message-ID<a8f18c31-4da2-473b-85a1-309b0ac60ea0@googlegroups.com>
In reply to#90667
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

[toc] | [prev] | [next] | [standalone]


#90669

FromChris Angelico <rosuav@gmail.com>
Date2015-05-15 21:16 +1000
Message-ID<mailman.33.1431688614.17265.python-list@python.org>
In reply to#90668
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

And if not, try grabbing some development libraries:

$ sudo apt-get install libbz2-dev libsqlite3-dev libreadline-dev
libssl-dev libgdbm-dev

I'm not sure about the _dbm module, not sure what it needs.

ChrisA

[toc] | [prev] | [next] | [standalone]


#90678

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-05-15 16:25 +0200
Message-ID<87617t6hpp.fsf@Equus.decebal.nl>
In reply to#90669
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.


> 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


> 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

[toc] | [prev] | [next] | [standalone]


#90682

FromNed Batchelder <ned@nedbatchelder.com>
Date2015-05-15 09:37 -0700
Message-ID<df6d75b5-5172-41be-8561-d90b814f31f5@googlegroups.com>
In reply to#90678
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web