Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74931 > unrolled thread
| Started by | Behzad Dastur <bdastur@gmail.com> |
|---|---|
| First post | 2014-07-21 09:36 -0700 |
| Last post | 2014-07-21 22:05 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Installing Python 2.6.2 on Ubuntu 12.1 Behzad Dastur <bdastur@gmail.com> - 2014-07-21 09:36 -0700
Re: Installing Python 2.6.2 on Ubuntu 12.1 Miki Tebeka <miki.tebeka@gmail.com> - 2014-07-21 22:05 -0700
| From | Behzad Dastur <bdastur@gmail.com> |
|---|---|
| Date | 2014-07-21 09:36 -0700 |
| Subject | Installing Python 2.6.2 on Ubuntu 12.1 |
| Message-ID | <mailman.12136.1405961665.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
Question: How to install Python manually and make sure that all the
necessary modules and .so files get built (eg: _sha256.so, zlib.so)
Details:
I am trying to install Python2.6.2 version manually, installation goes
through fine, but later installing setuptools fails due to _sha256 Module
not found.
These are the steps I did for manually installing python in my private
folder:
1. ./configure --help
2. ./configure --prefix=/home/brd/priv_env
3. make; make install
The installation went through successfully, however I noticed that some of
the _*.so files did not get built under lib/python2.6/lib-dynload/ folder
(eg _sha256.so) , which is likely the reason why my setuptools install
failed due to the error:
"
File "/home/cisco/priv_env/lib/python2.6/hashlib.py", line 138, in
<module>
sha224 = __get_builtin_constructor('sha224')
File "/home/cisco/priv_env/lib/python2.6/hashlib.py", line 66, in
__get_builtin_constructor
import _sha256
ImportError: No module named _sha256"
Note that I have the necessary libraries installed on this machine eg:
libzlib.so, libssl.so
/usr/lib/x86_64-linux-gnu/libssl.so
/usr/lib/x86_64-linux-gnu/libssl3.so
/usr/lib/x86_64-linux/gnu/libz.so.1
Another note, is that the standard python installation on this system
(Python 2.7.3), does not have this problem, and has all the modules and .so
files built.
Sincere Regards,
Behzad
[toc] | [next] | [standalone]
| From | Miki Tebeka <miki.tebeka@gmail.com> |
|---|---|
| Date | 2014-07-21 22:05 -0700 |
| Message-ID | <f37814d8-97ee-4403-9677-3e576643560c@googlegroups.com> |
| In reply to | #74931 |
Greetings, > The installation went through successfully, however I > noticed that some of the _*.so files did not get built under > lib/python2.6/lib-dynload/ folder (eg _sha256.so) , which is likely the reason > why my setuptools install failed due to the error: I believe you need the developer libraries for that (including the C header files). IIRC "sudo apt-get build-dep python" should install all the required packages. HTH, -- Miki
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web