Michael, Try checking out a new copy of the source code from the current CVS repository -- the Makefiles have been simplified somewhat, so compilation under Linux may go easier. You should only need to change the Python version in one place : )
Read "INSTALL.linux-rh7x" Cheers, Warren -- mailto:war...@sunesis.com Warren L. DeLano, Ph.D. Informatics Manager Sunesis Pharmaceuticals, Inc. 341 Oyster Point Blvd. S. San Francisco, CA 94080 (650)-266-3606 FAX:(650)-266-3501 > -----Original Message----- > From: Michael George Lerner [mailto:mler...@umich.edu] > Sent: Monday, January 28, 2002 1:44 PM > To: pymol-us...@sourceforge.net > Subject: [PyMOL] Installing from source on a linux box > > > > Hi, > > I have PyMol up and running on my windows partition .. the > installation > was super easy. Now, I want to set it up on my Linux > partition. I have > Mandrake 8.1 installed, which means that my default python > version is 2.1. > It also means that many things (Numeric, zlib, etc..) are > pre-installed > for me. > > So, I downloaded the PyMol sources and tried to install it. In the > external packages bit, it looked like the only thing I need > is glut. So, > I changed the setenv BASE line in build.com to point to the > right place > (/home/mglerner/src/pymol/ext in my case) and changed the setenv > PYMOL_TARGETS line to say "glut-linux" and did "./build.com". I also > tried "./build.com glut-linux" for variety .. both seemed to work. > > Then I went up a directory into the main pymol directory. I > then moved > Rules.linux to Rules.make and edited it. There were many instances of > -lpython1.5 .. I changed all of them to -lpython2.1. It was > still having > some trouble finding libpython2.1, so I added > -L/usr/lib/python2.1/config > to the LIB_DIRS line. After typing make, things get pretty > far, but it > doesn't get far enough. I wasn't sure how many of the error > messages to > include, but I've tacked on the last screen or so of output > at the end of > this message. > > There were some things that made me think that various parts > of this build > process were really looking for python sources in the ext > directory, so I > placed a copy of the python 2.1 sources there just in case. It didn't > seem to help. > > Sorry if this is a dumb question, > > -michael > > ------ begin output from make ------ > > make[2]: Entering directory `/home/mglerner/src/pymol/contrib/modules' > rm -f *.o *~ > rm -f *.a tags TAGS config.c Makefile.pre python sedscript > rm -f *.so *.sl so_locations > VERSION=`../../ext/bin/python -c "import sys; print > sys.version[:3]"`; \ > installdir=`../../ext/bin/python -c "import sys; print sys.prefix"`; \ > exec_installdir=`../../ext/bin/python -c "import sys; print > sys.exec_prefix"`; \make -f ./Makefile.pre.in VPATH=. srcdir=. \ > VERSION=$VERSION \ > installdir=$installdir \ > exec_installdir=$exec_installdir \ > Makefile > /bin/sh: ../../ext/bin/python: No such file or directory > /bin/sh: ../../ext/bin/python: No such file or directory > /bin/sh: ../../ext/bin/python: No such file or directory > make[3]: Entering directory `/home/mglerner/src/pymol/contrib/modules' > make[3]: *** No rule to make target > `/lib/python/config/Makefile', needed > by `sedscript'. Stop. > make[3]: Leaving directory `/home/mglerner/src/pymol/contrib/modules' > make[2]: *** [boot] Error 2 > make[2]: Leaving directory `/home/mglerner/src/pymol/contrib/modules' > make[1]: *** [make-modules] Error 2 > make[1]: Leaving directory `/home/mglerner/src/pymol/contrib' > make: *** [.contrib] Error 2 > > ------ end output from make ------ > > -- > This isn't a democracy;| _ |Michael Lerner > it's a cheer-ocracy. | ASCII ribbon campaign ( ) | Michigan > -Torrence, Bring It On| - against HTML email X | Biophysics > | / \ | mler...@umich > > > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users >