Ask Your Question
0

Error during installation : code for hash md5 was not found.

asked 2012-09-01 14:54:11 +0200

dev_dbg gravatar image

I am trying to install Sage-5.2 on Redhat 6.3 in a nonstandard directory and during the installation I get this error:

    ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/local/eit-linux/storage/sage-5.2-linux-64bit-red_hat_enterprise_linux_server_release_5.6_tikanga-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/local/eit-linux/storage/sage-5.2-linux-64bit-red_hat_enterprise_linux_server_release_5.6_tikanga-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/local/eit-linux/storage/sage-5.2-linux-64bit-red_hat_enterprise_linux_server_release_5.6_tikanga-x86_64-Linux/local/lib/python/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/local/eit-linux/storage/sage-5.2-linux-64bit-red_hat_enterprise_linux_server_release_5.6_tikanga-x86_64-Linux/local/lib/python/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1

This is one of the many errors similar to this kind. I am downloading Sage-5.2 again and going to try installing again, but this has happened twice now.

edit retag flag offensive close merge delete

Comments

Looking further into the error, it occurs here: ./sage -b ---------------------------------------------------------- sage: Building and installing modified Sage library files. Installing c_lib

dev_dbg gravatar imagedev_dbg ( 2012-09-01 15:50:09 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-09-02 01:00:53 +0200

benjaminfjones gravatar image

This is the same issue reported (and solved by Volker) here.

The solution is to install the necessary prerequisites:

sudo apt-get install m4 g++ gfortran libssl-dev dh-exec
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-01 14:54:11 +0200

Seen: 4,647 times

Last updated: Sep 02 '12