Re: error installing starcluster
On Mon, Nov 28, 2011 at 14:00, Quang Trinh <quang.trinh_at_gmail.com> wrote:
> Hi,
> After adding python-dev, I am now getting this error when running
> starcluster help. I checked and
>
> '/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Cipher/AES.so'
> is there.
>
> Thanks
>
>
> [ec2-user_at_xxxxxx StarCluster-0.92.1]$ bin/starcluster
> Traceback (most recent call last):
> File "bin/starcluster", line 2, in <module>
> from starcluster import cli
> File
> "/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/cli.py",
> line 17, in <module>
> from starcluster import config
> File
> "/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/config.py",
> line 9, in <module>
> from starcluster import cluster
> File
> "/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/cluster.py",
> line 20, in <module>
> from starcluster.node import Node
> File
> "/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/node.py",
> line 10, in <module>
> from starcluster import ssh
> File
> "/usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg/starcluster/ssh.py",
> line 17, in <module>
> import paramiko
> File
> "/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/__init__.py",
> line 69, in <module>
> from transport import SecurityOptions, Transport
> File
> "/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/transport.py",
> line 32, in <module>
> from paramiko import util
> File
> "/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/util.py",
> line 32, in <module>
> from paramiko.common import *
> File
> "/usr/lib/python2.6/site-packages/paramiko-1.7.7.1-py2.6.egg/paramiko/common.py",
> line 98, in <module>
> from Crypto import Random
> File
> "/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/__init__.py",
> line 29, in <module>
> from Crypto.Random import _UserFriendlyRNG
> File
> "/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/_UserFriendlyRNG.py",
> line 38, in <module>
> from Crypto.Random.Fortuna import FortunaAccumulator
> File
> "/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/Fortuna/FortunaAccumulator.py",
> line 39, in <module>
> import FortunaGenerator
> File
> "/usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Random/Fortuna/FortunaGenerator.py",
> line 36, in <module>
> from Crypto.Cipher import AES
> ImportError:
> /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-x86_64.egg/Crypto/Cipher/AES.so:
> undefined symbol: rpl_malloc
>
Looks like pycrypto didn't build itself correctly. You might remove the
one you installed, and use the package manager (`sudo apt-get install
python-crypto`) to get it instead.
>
>
> On Mon, Nov 28, 2011 at 3:44 PM, MinRK <benjaminrk_at_gmail.com> wrote:
> > Do you really mean to be installing starcluster on your ec2 node?
> > The most relevant line is this one:
> > src/MD2.c:31:20: error: Python.h: No such file or directory
> >
> > To build Python extensions, you need the Python headers, etc, which
> should
> > be be installed with your package manager.
> > on debian/ubuntu:
> > sudo apt-get install python-dev
> >
> > -MinRK
> >
> > On Mon, Nov 28, 2011 at 12:24, Quang Trinh <quang.trinh_at_gmail.com>
> wrote:
> >>
> >> Hi,
> >> I am trying to install starcluster but get this error msg ( see
> >> below ). Can someone tell me how to get around this?
> >>
> >> Thanks,
> >>
> >> Q
> >>
> >> [ec2-user_at_xxxxxxx applications]$ sudo easy_install StarCluster
> >> Searching for StarCluster
> >> Best match: StarCluster 0.92.1
> >> Processing StarCluster-0.92.1-py2.6.egg
> >> StarCluster 0.92.1 is already the active version in easy-install.pth
> >> Installing starcluster script to /usr/bin
> >>
> >> Using /usr/lib/python2.6/site-packages/StarCluster-0.92.1-py2.6.egg
> >> Processing dependencies for StarCluster
> >> Searching for pycrypto>=2.1
> >> Reading http://pypi.python.org/simple/pycrypto/
> >> Reading http://pycrypto.sourceforge.net
> >> Reading http://www.pycrypto.org/
> >> Reading http://www.amk.ca/python/code/crypto
> >> Best match: pycrypto 2.4.1
> >> Downloading
> >> https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.4.1.tar.gz
> >> Processing pycrypto-2.4.1.tar.gz
> >> Running pycrypto-2.4.1/setup.py -q bdist_egg --dist-dir
> >> /tmp/easy_install-mYT5_f/pycrypto-2.4.1/egg-dist-tmp-72tY14
> >> warning: GMP or MPIR library not found; Not building
> >> Crypto.PublicKey._fastmath.
> >> src/MD2.c:31:20: error: Python.h: No such file or directory
> >> src/MD2.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
> >> before ‘*’ token
> >> In file included from src/MD2.c:136:
> >> src/hash_template.c:48: error: expected specifier-qualifier-list
> >> before ‘PyObject_HEAD’
> >> src/hash_template.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘PyTypeObject’
> >> src/hash_template.c: In function ‘newALGobject’:
> >> src/hash_template.c:69: warning: implicit declaration of function
> >> ‘PyObject_New’
> >> src/hash_template.c:69: error: expected expression before ‘ALGobject’
> >> src/hash_template.c: At top level:
> >> src/hash_template.c:76: error: expected ‘)’ before ‘*’ token
> >> src/hash_template.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:162: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘ALG_methods’
> >> src/hash_template.c:189: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘ALGtype’
> >> src/hash_template.c:265: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> >> ‘__attribute__’ before ‘*’ token
> >> src/hash_template.c:298: error: array type has incomplete element type
> >> src/hash_template.c:299: error: ‘PyCFunction’ undeclared here (not in
> >> a function)
> >> src/hash_template.c:299: error: expected ‘}’ before ‘ALG_new’
> >> src/hash_template.c: In function ‘initMD2’:
> >> src/hash_template.c:333: error: ‘PyObject’ undeclared (first use in
> >> this function)
> >> src/hash_template.c:333: error: (Each undeclared identifier is
> >> reported only once
> >> src/hash_template.c:333: error: for each function it appears in.)
> >> src/hash_template.c:333: error: ‘m’ undeclared (first use in this
> >> function)
> >> src/hash_template.c:345: error: ‘ALGtype’ undeclared (first use in
> >> this function)
> >> src/hash_template.c:345: error: ‘PyType_Type’ undeclared (first use in
> >> this function)
> >> src/hash_template.c:346: warning: implicit declaration of function
> >> ‘Py_InitModule’
> >> src/hash_template.c:350: error: ‘o’ undeclared (first use in this
> >> function)
> >> src/hash_template.c:350: warning: implicit declaration of function
> >> ‘PyInt_FromLong’
> >> src/hash_template.c:350: warning: implicit declaration of function
> >> ‘PyDict_SetItemString’
> >> src/hash_template.c:350: warning: implicit declaration of function
> >> ‘PyModule_GetDict’
> >> src/hash_template.c:350: warning: implicit declaration of function
> >> ‘Py_DECREF’
> >> src/hash_template.c:354: warning: implicit declaration of function
> >> ‘PyErr_Occurred’
> >> src/hash_template.c:355: warning: implicit declaration of function
> >> ‘Py_FatalError’
> >> error: Setup script exited with error: command 'gcc' failed with exit
> >> status 1
> >>
> >> _______________________________________________
> >> StarCluster mailing list
> >> StarCluster_at_mit.edu
> >> http://mailman.mit.edu/mailman/listinfo/starcluster
> >
> >
>
Received on Mon Nov 28 2011 - 18:15:57 EST
This archive was generated by
hypermail 2.3.0.