V
V N
I installed openssl-1.0.0d.tar.gz on my RHEL 5 box using:
./config --prefix=/usr/local --openssldir=/usr/local/openssl
shared zlib
make
sudo make install
Then I installed python 2.7.1 using
PYHOME=/usr/local/Python-2.7.1; export PYHOME
LD_RUN_PATH=$PYHOME/lib; export LD_RUN_PATH
LDFLAGS="-L /usr/local/lib64 -L /usr/local/lib"; export
LDFLAGS
CPPFLAGS="-I /usr/local/include -I /usr/local/include/
openssl"; export CPPFLAGS
./configure --enable-shared --prefix=$PYHOME > log_cfg 2>&1
make > log_mk 2>&1
sudo make install > log_mk_i 2>&1
I am trying to install
sudo $PYHOME/bin/python bin/ez_setup.py
and I get the following error:
Traceback (most recent call last):
File "bin/ez_setup.py", line 67, in <module>
except ImportError: from md5 import md5
File "/usr/local/Python-2.7.1/lib/python2.7/md5.py", line 10, in
<module>
from hashlib import md5
File "/usr/local/Python-2.7.1/lib/python2.7/hashlib.py", line 136,
in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Python-2.7.1/lib/python2.7/hashlib.py", line 71, in
__get_builtin_constructor
import _md5
ImportError: No module named _md5
./config --prefix=/usr/local --openssldir=/usr/local/openssl
shared zlib
make
sudo make install
Then I installed python 2.7.1 using
PYHOME=/usr/local/Python-2.7.1; export PYHOME
LD_RUN_PATH=$PYHOME/lib; export LD_RUN_PATH
LDFLAGS="-L /usr/local/lib64 -L /usr/local/lib"; export
LDFLAGS
CPPFLAGS="-I /usr/local/include -I /usr/local/include/
openssl"; export CPPFLAGS
./configure --enable-shared --prefix=$PYHOME > log_cfg 2>&1
make > log_mk 2>&1
sudo make install > log_mk_i 2>&1
I am trying to install
sudo $PYHOME/bin/python bin/ez_setup.py
and I get the following error:
Traceback (most recent call last):
File "bin/ez_setup.py", line 67, in <module>
except ImportError: from md5 import md5
File "/usr/local/Python-2.7.1/lib/python2.7/md5.py", line 10, in
<module>
from hashlib import md5
File "/usr/local/Python-2.7.1/lib/python2.7/hashlib.py", line 136,
in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Python-2.7.1/lib/python2.7/hashlib.py", line 71, in
__get_builtin_constructor
import _md5
ImportError: No module named _md5