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


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

Problems compiling Python 3.4 on Ubuntu

Started bycool-RR <ram.rachum@gmail.com>
First post2014-02-03 02:50 -0800
Last post2014-02-04 13:45 +1100
Articles 10 — 7 participants

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


Contents

  Problems compiling Python 3.4 on Ubuntu cool-RR <ram.rachum@gmail.com> - 2014-02-03 02:50 -0800
    Re: Problems compiling Python 3.4 on Ubuntu Ervin Hegedüs <airween@gmail.com> - 2014-02-03 12:08 +0100
    Re: Problems compiling Python 3.4 on Ubuntu Ram Rachum <ram.rachum@gmail.com> - 2014-02-03 17:14 +0200
      Re: Problems compiling Python 3.4 on Ubuntu Rustom Mody <rustompmody@gmail.com> - 2014-02-03 07:51 -0800
    Re: Problems compiling Python 3.4 on Ubuntu Christian Heimes <christian@python.org> - 2014-02-03 16:50 +0100
    Re: Problems compiling Python 3.4 on Ubuntu Chris Angelico <rosuav@gmail.com> - 2014-02-04 05:48 +1100
    Re: Problems compiling Python 3.4 on Ubuntu Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-02-03 13:05 -0600
    Re: Problems compiling Python 3.4 on Ubuntu Chris Angelico <rosuav@gmail.com> - 2014-02-04 06:11 +1100
      Re: Problems compiling Python 3.4 on Ubuntu Rustom Mody <rustompmody@gmail.com> - 2014-02-03 18:34 -0800
        Re: Problems compiling Python 3.4 on Ubuntu Chris Angelico <rosuav@gmail.com> - 2014-02-04 13:45 +1100

#65328 — Problems compiling Python 3.4 on Ubuntu

Fromcool-RR <ram.rachum@gmail.com>
Date2014-02-03 02:50 -0800
SubjectProblems compiling Python 3.4 on Ubuntu
Message-ID<61de065c-ad66-4752-b04f-a27a06bc052d@googlegroups.com>
Hi,

I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to be the only way, I'm trying that. 

I downloaded the source, I changed Setup.dist to have this: 

    SSL=/usr
    _ssl _ssl.c \
    	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    	-L$(SSL)/lib -lssl -lcrypto

I installed openssl and various sqlite packages beforehand.

But when I do this: 

    ./configure --prefix=/opt/python3.4 && make && make install

I get, after a huge wall of text, this: 

    ./Modules/_ssl.c:57:25: fatal error: openssl/rsa.h: No such file or directory
     #include "openssl/rsa.h"
                             ^
    compilation terminated.

What do I do to solve this? 


Thanks,
Ram.

[toc] | [next] | [standalone]


#65329

FromErvin Hegedüs <airween@gmail.com>
Date2014-02-03 12:08 +0100
Message-ID<mailman.6331.1391425833.18130.python-list@python.org>
In reply to#65328
Hello,

On Mon, Feb 03, 2014 at 02:50:15AM -0800, cool-RR wrote:
> Hi,
> 
> I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to be the only way, I'm trying that. 
> 
> I downloaded the source, I changed Setup.dist to have this: 
> 
>     SSL=/usr
>     _ssl _ssl.c \
>     	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
>     	-L$(SSL)/lib -lssl -lcrypto
> 
[...]
 
>     ./Modules/_ssl.c:57:25: fatal error: openssl/rsa.h: No such file or directory
>      #include "openssl/rsa.h"
>                              ^
>     compilation terminated.
> 
> What do I do to solve this? 

try this:

sudo apt-get install libssl-dev


cheers,


a.
 

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


#65339

FromRam Rachum <ram.rachum@gmail.com>
Date2014-02-03 17:14 +0200
Message-ID<mailman.6341.1391440470.18130.python-list@python.org>
In reply to#65328

[Multipart message — attachments visible in raw view] — view raw

Worked! Thanks Ervin!


On Mon, Feb 3, 2014 at 1:08 PM, Ervin Hegedüs <airween@gmail.com> wrote:

> Hello,
>
> On Mon, Feb 03, 2014 at 02:50:15AM -0800, cool-RR wrote:
> > Hi,
> >
> > I'm trying to install Python 3.4b3 on Ubuntu. Since compilation seems to
> be the only way, I'm trying that.
> >
> > I downloaded the source, I changed Setup.dist to have this:
> >
> >     SSL=/usr
> >     _ssl _ssl.c \
> >       -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
> >       -L$(SSL)/lib -lssl -lcrypto
> >
> [...]
>
> >     ./Modules/_ssl.c:57:25: fatal error: openssl/rsa.h: No such file or
> directory
> >      #include "openssl/rsa.h"
> >                              ^
> >     compilation terminated.
> >
> > What do I do to solve this?
>
> try this:
>
> sudo apt-get install libssl-dev
>
>
> cheers,
>
>
> a.
>
>

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


#65342

FromRustom Mody <rustompmody@gmail.com>
Date2014-02-03 07:51 -0800
Message-ID<2885379d-34ea-4970-84aa-800bd884f1b4@googlegroups.com>
In reply to#65339
On Monday, February 3, 2014 8:44:01 PM UTC+5:30, cool-RR wrote:
> On Mon, Feb 3, 2014 at 1:08 PM, Ervin Hegedüs <air...@gmail.com> wrote:
>
> > try this:

> > sudo apt-get install libssl-dev


> Worked! Thanks Ervin!

In general its a good idea to *look at* what you get with

apt-get build-dep python3

You need not go ahead with installing what it says it will install
-- tends to pull in a lot of useless stuff -- but you may also see names 
that are clearly needed

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


#65341

FromChristian Heimes <christian@python.org>
Date2014-02-03 16:50 +0100
Message-ID<mailman.6342.1391442642.18130.python-list@python.org>
In reply to#65328
On 03.02.2014 16:14, Ram Rachum wrote:
> Worked! Thanks Ervin!

   $ sudo apt-get build-dep python3.3

will install everything you need to compile Python 3.4 on Debian and
Ubuntu. Good luck! :)

Christian

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


#65362

FromChris Angelico <rosuav@gmail.com>
Date2014-02-04 05:48 +1100
Message-ID<mailman.6354.1391453726.18130.python-list@python.org>
In reply to#65328
On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes <christian@python.org> wrote:
> On 03.02.2014 16:14, Ram Rachum wrote:
>> Worked! Thanks Ervin!
>
>    $ sudo apt-get build-dep python3.3
>
> will install everything you need to compile Python 3.4 on Debian and
> Ubuntu. Good luck! :)

Technically that gets everything you need to compile Python 3.3...
wasn't there one more library needed for 3.4? It's still an excellent
way to get nearly everything, though.

ChrisA

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


#65365

FromZachary Ware <zachary.ware+pylist@gmail.com>
Date2014-02-03 13:05 -0600
Message-ID<mailman.6357.1391454368.18130.python-list@python.org>
In reply to#65328
On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico <rosuav@gmail.com> wrote:
> On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes <christian@python.org> wrote:
>> On 03.02.2014 16:14, Ram Rachum wrote:
>>> Worked! Thanks Ervin!
>>
>>    $ sudo apt-get build-dep python3.3
>>
>> will install everything you need to compile Python 3.4 on Debian and
>> Ubuntu. Good luck! :)
>
> Technically that gets everything you need to compile Python 3.3...
> wasn't there one more library needed for 3.4? It's still an excellent
> way to get nearly everything, though.

I think you're thinking of 3.2 -> 3.3.  3.3 added the lzma module,
which requires lzma-dev.  I think 3.4 has the same requirements as
3.3.

-- 
Zach

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


#65367

FromChris Angelico <rosuav@gmail.com>
Date2014-02-04 06:11 +1100
Message-ID<mailman.6359.1391454668.18130.python-list@python.org>
In reply to#65328
On Tue, Feb 4, 2014 at 6:05 AM, Zachary Ware
<zachary.ware+pylist@gmail.com> wrote:
> On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico <rosuav@gmail.com> wrote:
>> On Tue, Feb 4, 2014 at 2:50 AM, Christian Heimes <christian@python.org> wrote:
>>> On 03.02.2014 16:14, Ram Rachum wrote:
>>>> Worked! Thanks Ervin!
>>>
>>>    $ sudo apt-get build-dep python3.3
>>>
>>> will install everything you need to compile Python 3.4 on Debian and
>>> Ubuntu. Good luck! :)
>>
>> Technically that gets everything you need to compile Python 3.3...
>> wasn't there one more library needed for 3.4? It's still an excellent
>> way to get nearly everything, though.
>
> I think you're thinking of 3.2 -> 3.3.  3.3 added the lzma module,
> which requires lzma-dev.  I think 3.4 has the same requirements as
> 3.3.

Ah, that would be it, thanks. I just remembered I'd recently used
build-dep across versions and had to get something involving data
compression. Went digging for stuff starting with 'z', but missed this
because, well, it doesn't start with 'z' :) Thanks.

ChrisA

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


#65397

FromRustom Mody <rustompmody@gmail.com>
Date2014-02-03 18:34 -0800
Message-ID<4b9d596b-e20b-4436-a9b0-d98f5b774510@googlegroups.com>
In reply to#65367
On Tuesday, February 4, 2014 12:41:03 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Feb 4, 2014 at 6:05 AM, Zachary Ware wrote:
> > On Mon, Feb 3, 2014 at 12:48 PM, Chris Angelico wrote:
> >> Technically that gets everything you need to compile Python 3.3...
> >> wasn't there one more library needed for 3.4? It's still an excellent
> >> way to get nearly everything, though.
> > I think you're thinking of 3.2 -> 3.3.  3.3 added the lzma module,
> > which requires lzma-dev.  I think 3.4 has the same requirements as
> > 3.3.

> Ah, that would be it, thanks. I just remembered I'd recently used
> build-dep across versions and had to get something involving data
> compression. Went digging for stuff starting with 'z', but missed this
> because, well, it doesn't start with 'z' :) Thanks.

> ChrisA

Just curious: How do you go "digging for stuff starting with 'z'" ?

OR: How do you grep inside apt?

I know "dpkg -S pattern"

It helps to connect pattern with package
But no good if pattern is common -- Other day I was struggling with 

dpkg -S which

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


#65398

FromChris Angelico <rosuav@gmail.com>
Date2014-02-04 13:45 +1100
Message-ID<mailman.6375.1391481950.18130.python-list@python.org>
In reply to#65397
On Tue, Feb 4, 2014 at 1:34 PM, Rustom Mody <rustompmody@gmail.com> wrote:
> Just curious: How do you go "digging for stuff starting with 'z'" ?
>
> OR: How do you grep inside apt?
>
> I know "dpkg -S pattern"
>
> It helps to connect pattern with package
> But no good if pattern is common -- Other day I was struggling with
>
> dpkg -S which

dpkg --get-selections

will show all installed packages, in alphabetical order. Probably not useful.

dpkg --get-selections|grep -- '-dev'

will show all -dev packages, which IS useful. Except on a system that
I run, in which case you still need to eyeball roughly two hundred
installed packages :D Hence my failure to find the one I wanted.

ChrisA

[toc] | [prev] | [standalone]


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


csiph-web