<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div>I upgraded python to python2.6 and got the error(<span class="Apple-style-span" style="color: rgb(252, 24, 32); ">'gcc' failed with exit status 1</span>) during the installation which I solved before after install python-devel for python2.4. But I cannot find rpm for python2.6 Centos5.5. Did anyone have the same issue and how did you solve it?</div><div># easy_install StarCluster</div><div>Searching for StarCluster</div><div>Best match: StarCluster 0.91.1</div><div>Processing StarCluster-0.91.1-py2.6.egg</div><div>StarCluster 0.91.1 is already the active version in easy-install.pth</div><div>Installing starcluster script to /usr/bin</div><div><br></div><div>Using /usr/lib/python2.6/site-packages/StarCluster-0.91.1-py2.6.egg</div><div>Processing dependencies for StarCluster</div><div>Searching for pycrypto&gt;=1.9</div><div>Reading <a href="http://pypi.python.org/simple/pycrypto/">http://pypi.python.org/simple/pycrypto/</a></div><div>Reading <a href="http://pycrypto.sourceforge.net">http://pycrypto.sourceforge.net</a></div><div>Reading <a href="http://www.pycrypto.org/">http://www.pycrypto.org/</a></div><div>Reading <a href="http://www.amk.ca/python/code/crypto">http://www.amk.ca/python/code/crypto</a></div><div>Best match: pycrypto 2.3</div><div>Downloading <a href="http://www.pycrypto.org/files/pycrypto-2.3.tar.gz">http://www.pycrypto.org/files/pycrypto-2.3.tar.gz</a></div><div>Processing pycrypto-2.3.tar.gz</div><div>Running pycrypto-2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-HgWIQJ/pycrypto-2.3/egg-dist-tmp-EjiFlb</div><div>warning: GMP library not found; Not building Crypto.PublicKey._fastmath.</div><div>src/MD2.c:31:20: error: Python.h: No such file or directory</div><div>src/MD2.c:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>In file included from src/MD2.c:134:</div><div>src/hash_template.c:42: error: expected specifier-qualifier-list before ‘PyObject_HEAD’</div><div>src/hash_template.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyTypeObject’</div><div>src/hash_template.c: In function ‘newALGobject’:</div><div>src/hash_template.c:55: warning: implicit declaration of function ‘PyObject_New’</div><div>src/hash_template.c:55: error: expected expression before ‘ALGobject’</div><div>src/hash_template.c:55: warning: assignment makes pointer from integer without a cast</div><div>src/hash_template.c: At top level:</div><div>src/hash_template.c:62: error: expected ‘)’ before ‘*’ token</div><div>src/hash_template.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:160: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALG_methods’</div><div>src/hash_template.c:169: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:178: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ALGtype’</div><div>src/hash_template.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token</div><div>src/hash_template.c:237: error: array type has incomplete element type</div><div>src/hash_template.c:238: error: ‘PyCFunction’ undeclared here (not in a function)</div><div>src/hash_template.c:238: error: expected ‘}’ before ‘ALG_new’</div><div>src/hash_template.c: In function ‘initMD2’:</div><div>src/hash_template.c:254: error: ‘PyObject’ undeclared (first use in this function)</div><div>src/hash_template.c:254: error: (Each undeclared identifier is reported only once</div><div>src/hash_template.c:254: error: for each function it appears in.)</div><div>src/hash_template.c:254: error: ‘m’ undeclared (first use in this function)</div><div>src/hash_template.c:256: error: ‘ALGtype’ undeclared (first use in this function)</div><div>src/hash_template.c:256: error: ‘PyType_Type’ undeclared (first use in this function)</div><div>src/hash_template.c:257: warning: implicit declaration of function ‘Py_InitModule’</div><div>src/hash_template.c:260: error: ‘o’ undeclared (first use in this function)</div><div>src/hash_template.c:260: warning: implicit declaration of function ‘PyInt_FromLong’</div><div>src/hash_template.c:260: warning: implicit declaration of function ‘PyDict_SetItemString’</div><div>src/hash_template.c:260: warning: implicit declaration of function ‘PyModule_GetDict’</div><div>src/hash_template.c:260: warning: implicit declaration of function ‘Py_DECREF’</div><div>src/hash_template.c:263: warning: implicit declaration of function ‘PyErr_Occurred’</div><div>src/hash_template.c:264: warning: implicit declaration of function ‘Py_FatalError’</div><div><font class="Apple-style-span" color="#FC1820">error: Setup script exited with error: command 'gcc' failed with exit status 1</font></div><div><br></div><div>Thanks,</div><div>Julia</div><div>&nbsp;<br><div><div>On Oct 29, 2010, at 2:18 PM, Dan Yamins wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">What version of python are you running? &nbsp; I've had this problem with python 2.4.&nbsp;<div><br></div><div>If you can upgrade to python &gt;=2.5, do that.&nbsp;</div><div><br></div><div>If you can't -- try to pull starcluster source code from the git repository, and install that instead. &nbsp;I think the 2.4 compatibility bug was fixed in the repo (though I could be wrong).</div> <div><br></div><div><br></div><div>Dan<br><div><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 2:09 PM, Hui Zhao <span dir="ltr">&lt;<a href="mailto:zhaoh@cbio.mskcc.org">zhaoh@cbio.mskcc.org</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br> I just downloaded the latest version StarCluster-0.91.1.tar.gz and<br> installed it. But when I try to configure it, I got error shown as<br> below. Does anyone know what I am missing?<br> -bash-3.2$ starcluster help<br> StarCluster - (<a href="http://web.mit.edu/starcluster" target="_blank">http://web.mit.edu/starcluster</a>)<br> Software Tools for Academics and Researchers (STAR)<br> Please submit bug reports to <a href="mailto:starcluster@mit.edu">starcluster@mit.edu</a><br> <br> Traceback (most recent call last):<br> &nbsp; File "/usr/bin/starcluster", line 5, in ?<br> &nbsp; &nbsp; pkg_resources.run_script('StarCluster==0.91.1', 'starcluster')<br> &nbsp; File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/<br> pkg_resources.py", line 489, in run_script<br> &nbsp; &nbsp; self.require(requires)[0].run_script(script_name, ns)<br> &nbsp; File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/<br> pkg_resources.py", line 1214, in run_script<br> &nbsp; &nbsp; exec script_code in namespace, namespace<br> &nbsp; File "/usr/bin/starcluster", line 6, in ?<br> <br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/cli.py", line 1070,<br> in main<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/cli.py", line 992,<br> in parse_subcommands<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/config.py", line<br> 283, in load<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/config.py", line<br> 177, in load_settings<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/config.py", line<br> 173, in config<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/config.py", line<br> 152, in __load_config<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/config.py", line<br> 107, in _get_fp<br> &nbsp; File "build/bdist.linux-x86_64/egg/starcluster/exception.py", line<br> 137, in __init__<br> TypeError: super() argument 1 must be type, not classobj<br> <br> <br> Thanks,<br> Julia<br> <br> _______________________________________________<br> StarCluster mailing list<br> <a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br> <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br> </blockquote></div><br></div></div> _______________________________________________<br>StarCluster mailing list<br><a href="mailto:StarCluster@mit.edu">StarCluster@mit.edu</a><br>http://mailman.mit.edu/mailman/listinfo/starcluster<br></blockquote></div><br></div></body></html>