Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #138

Closed
ablimit opened this issue Aug 23, 2012 · 5 comments
Closed

Installation Error #138

ablimit opened this issue Aug 23, 2012 · 5 comments

Comments

@ablimit
Copy link

ablimit commented Aug 23, 2012

After installation, I typed starcluster, and the following error appeared on the screen ?

ImportError: /usr/local/lib/python2.6/dist-packages/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Cipher/_AES.so: undefined symbol: rpl_malloc

@jtriley
Copy link
Owner

jtriley commented Aug 23, 2012

It looks like PyCrypto's _AES.so is linked to a library during installation that it later cannot find in your current environment. If you could run ldd on _AES.so and post the output that'd be helpful:

ldd /usr/local/lib/python2.6/dist-packages/pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Cipher/_AES.so

Thanks!

@jtriley
Copy link
Owner

jtriley commented Aug 27, 2012

Doing a little more research I found a blog post where they were having issues using PyCrypto (ironically on Amazon EC2):

http://bugcharmer.blogspot.com/2012/07/building-pycrypto-on-amazon-ec2.html

After reading that post I believe you can fix this by doing:

$ export ac_cv_func_malloc_0_nonnull = yes

and then forcing a reinstall of PyCrypto:

$ easy_install -U PyCrypto

Let me know if that fixes things for you.

@ablimit
Copy link
Author

ablimit commented Aug 27, 2012

Awesome. That works.
Many thanks, Justin.

@ablimit ablimit closed this as completed Aug 27, 2012
@jsfs2019
Copy link

jsfs2019 commented Mar 6, 2014

thx so much!!!

@foreverhj
Copy link

thx jtriley
I try
$ export ac_cv_func_malloc_0_nonnull=yes
$ easy_install -U PyCrypto
and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants