From: Jason V. <jas...@sc...> - 2011-04-04 12:19:49
|
Hi Tru, > 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 Thanks for the pointer. > 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. As you have discovered, and I forgot to mention, Python 2.5 or later is now required. This is due to 64-bit types using Py_ssize_t. Cheers, -- Jason -- Jason Vertrees, PhD PyMOL Product Manager Schrodinger, LLC (e) Jas...@sc... (o) +1 (603) 374-7120 |