Compiling pymol from subversion for 64bit ubuntu

From $1

A step by step guide follows

1) Install subversion to get the subversion repository for pymol

 sudo apt-get install subversion 

2) Get the pymol source from subversion

svn co https://pymol.svn.sourceforge.net/svnroot/pymol pymol

3) Change into the main pymol directory ( inside the trunk directory)  where the configure script is present. And run configure

./configure

Based on the errors install the dependencies below and then re-run configure

4) The following libraries were installed to satistdy the dependencies on pymol

sudo apt-get install  python2.5-dev

sudo apt-get install libpng12

sudo apt-get install libpng3

sudo apt-get install freeglut3-dev

sudo apt-get install  libttf2

sudo apt-get install  libfreetype6-dev  ( may not be needed)

sudo apt-get install  ftgl-dev

sudo apt-get install  libfreetype6

sudo apt-get install libfreetype6-dev

 sudo apt-get install libxft2

sudo apt-get

5) Run ./config.status to create the Makefile

6) Run make

 

To update the software at any point : Go into the directory where you issued the svn command and say "svn  update"

svn update

for eg
$HOME/pymol I ran svn update
After which all the files in the directories branches tags and trunk get updated
hari@crystalmachine:~/pymol$ ls
branches  tags  trunk

Updating pymol to latest version after initial subversion build:

Tp re-update ( allright its just update):

1) svn update. this will pull all the source thats changed on the repository after your last update and inform you

.....
U    trunk/pymol/layer5/main.c
Updated to revision 3616.

2) run configure again as above : ./configure in the trunk/pymol directory . If at this point it complains about some missing libraries , find them by using the sudo apt-file search command

for eg ./configure complained    

checking for main in -lglut... no
Missing libglut.


I run a sudo apt-file search libglut
:
harijay@me.com:~/pymol/trunk/pymol$ sudo apt-file search libglut.
[sudo] password for harijay: 
freeglut3: /usr/lib/libglut.so.3
freeglut3: /usr/lib/libglut.so.3.8.0
freeglut3-dbg: /usr/lib/debug/usr/lib/libglut.so.3.8.0
freeglut3-dev: /usr/lib/libglut.a
freeglut3-dev: /usr/lib/libglut.so
ia32-libs: /usr/lib32/libglut.so.3
ia32-libs: /usr/lib32/libglut.so.3.8.0
mingw32-runtime: /usr/i586-mingw32msvc/lib/libglut.a

I can see that libglut is present in the freeglut3-dev package so i install it

harijay@me.com:~/pymol/trunk/pymol$ sudo apt-get install freeglut3-dev

Then i can run configure again and make as i did above once all the dependencies in thew new code are satisfied

 

 

Tags:
 
Images (0)
 
Comments (0)
You must login to post a comment.