StarCluster - Mailing List Archive

Re: error installing starcluster

From: MinRK <no email>
Date: Mon, 28 Nov 2011 12:44:31 -0800

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 - 15:44:54 EST
This archive was generated by hypermail 2.3.0.

Search:

Sort all by:

Date

Month

Thread

Author

Subject