On Fri, Apr 01, 2011 at 05:34:47PM -0400, Jason Vertrees wrote: > Greetings PyMOLers, > ... For CentOS-5 users, like me ;) > For those adventurous enough to try the new code please give it a > shot. If you're not familiar with building PyMOL, please wait for the > stable v1.4 release. For those wishing to try the new beta release > these following notes might help: > > (1) If you're building from source, please install > * glew > * glew-devel > as they're new dependencies. I'm using glew 1.5.8 on OpenSuSE 11.3. > avalable from rpmforge (1.3.5-1.rf) or epel (1.5.1-3.el5) or rebuild yourself :P
CentOS-5 comes with python 2.4 so: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -D_PYMOL_MODULE -D_PYMOL_INLINE -D_PYMOL_FREETYPE -D_PYMOL_LIBPNG -D_PYMOL_OPENGL_SHADERS -DNO_MMLIBS -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -I/usr/include/freetype2 -Imodules/cealign/src -Imodules/cealign/src/tnt -I/usr/include/python2.4 -c layer4/Cmd.c -o build/temp.linux-x86_64-2.4/layer4/Cmd.o -ffast-math -funroll-loops -O3 layer4/Cmd.c: In function 'CmdCEAlign': layer4/Cmd.c:8698: error: 'Py_ssize_t' undeclared (first use in this function) layer4/Cmd.c:8698: error: (Each undeclared identifier is reported only once layer4/Cmd.c:8698: error: for each function it appears in.) layer4/Cmd.c:8698: error: expected ';' before 'lenA' layer4/Cmd.c:8709: error: 'lenA' undeclared (first use in this function) layer4/Cmd.c:8718: error: 'lenB' undeclared (first use in this function) ... Possible fix at http://www.python.org/dev/peps/pep-0353/ Which I added to layer0/os_python.h, patch attached. Cheers, Tru -- Dr Tru Huynh | http://www.pasteur.fr/recherche/unites/Binfs/ mailto:t...@pasteur.fr | tel/fax +33 1 45 68 87 37/19 Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France
diff -uNr pymol-1.4_3938.ori/layer0/os_python.h pymol-1.4_3938/layer0/os_python.h --- pymol-1.4_3938.ori/layer0/os_python.h 2010-02-23 02:17:06.000000000 +0100 +++ pymol-1.4_3938/layer0/os_python.h 2011-04-04 11:46:04.000000000 +0200 @@ -30,4 +30,12 @@ #include"Python.h" #endif +/* python 2.4 patch from http://www.python.org/dev/peps/pep-0353/ */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +#define PY_SSIZE_T_MAX INT_MAX +#define PY_SSIZE_T_MIN INT_MIN +#endif + + #endif
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net