On a Debian squeeze 64bit machine building sage 5.1 from source fails on package python2.7.3.p0
message is
....
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt
......
/usr/bin/install -c -m 644 ./Misc/python.man \
/opt/sagemath/local/share/man/man1/python2.7.1
make[2]: Leaving directory `/opt/sagemath/spkg/build/python-2.7.3.p0/src'
Testing importing of various modules...
math module imported OK
hashlib module imported OK
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named crypt
crypt module failed to import
Error: One or more modules failed to import.
....I have compiled sage succesfully in the same machine in the past (version 4.7 had compiled succesfully)
Thanks for answering,
openssl / libssl-dev are both installed from official debian stable repos (version 0.98)
Your link was very helpful, the problem was gcc was only looking in /usr/local/lib for the libcrypt.so and could not find it (it was located in /usr/lib)....
debian will not install anything in /usr/local.