MIX

This is a short walk-through on compiling PyMOL on Linux Fedora 9.

First make sure you have administrator privileges on your Fedora system, i.e. that you are a sudoer. We also need Subversion to be able to check out the PyMOL source.
$ sudo yum -y install svn

Then we need to install for dependencies.
$ sudo yum -y install python-devel libpng-devel freeglut-devel freetype-devel tk-devel tcl-devel tkinter numpy

We also need to install the Python MegaWidgets (Pmw). Pmw will probably be available in Fedora 10 as 'python-pmw' but is as of yet not included in the Fedora 9 repositories. For now we have to install it manually.

Download the Pmw source from Sourceforge.

Then extract it and move it to a directory that Python can access. I happened to download the 1.3.2 version of Pmw and the current version of Python in Fedora 9 is 2.5 so
$ tar -xvzf Pmw.1.3.2.tar.gz
$ sudo mv Pmw.1.3.2/src/Pmw /usr/lib/python2.5/site-packages/

Create an install directory somewhere on your system.
$ sudo mkdir /usr/local/share/viewers

Now we're finally ready to compile and install PyMOL. Check out the PyMOL source with Subversion.
$ svn co https://pymol.svn.sourceforge.net/svnroot/pymol pymol

Then copy the trunk to the install directory.
$ sudo cp -r pymol/trunk/pymol /usr/local/share/viewers/

We can remove the rest, it won't be needed.
$ rm -fr pymol

Now we move over to the install directory and ask configure to check that we have all we need to compile PyMOL and create a Makefile.
$ cd /usr/local/share/viewers/pymol
$ sudo ./configure

Let's compile it.
$ sudo make install

While it compiles check for errors. If there are none then clean up this directory.
$ sudo make clean

Create a symbolic link to somewhere in your path.
$ sudo ln -s /usr/local/share/viewers/pymol/pymol /usr/local/bin/pymol

Ok, all done. Now give it a try.
$ pymol &

There are a few example files located in the pymol/data/demo directory. You can load them by e.g. typing the following at the PyMOL prompt.
> load /usr/local/share/viewers/pymol/data/demo/1tii.pdb

Now let's try a fancy view of the protein.
> show cartoon, all
> hide lines, all

Remove the crystal waters.
> select resn HOH
> remove sele

Throw in some fancy colors by clicking on the rainbow colored 'C' button right next to the '1tii' bar, then on 'by chain'>'by chain(e. c)'

Now ray-trace and save the image to file.
> ray 2000,2000
> png ~/fancy_protein_view.png

And there you have it! =)

Share 

Add a Comment

You need to be a member of MIX to add comments!

Join this social network

1 Comment

Derek Comment by Derek on October 21, 2008 at 12:57pm
woo whoo! another fedora user! looks like a neat program. have you done anything with it?

We're a global band of kids/geeks/freaks who love art/tech/gaming/music/politics & life. Love the web. Live the FU.

Latest Activity

2 minutes ago
good going with the build man, I dunno if you carved the stuff out beforehand, but this kinda reminds me of when Queen's Brian May built his "red Special"
2 hours ago
shared the news Female Ipod and Gadget users... Memorex have de...
(via NewsShare)
3 hours ago
my favorite chiptune of all time is the ibm pc (not ibm at!) version of the maniac mansion theme. my second favorite chiptune of all time is from supertux. my third favorite chiptune of all time is the usual discasting theme, followed naturally by...
4 hours ago
Some of the music are indeed chiptunes made by my friend. If I remember correctly, all of them are .IT files. I´ve been thinking about possibility put some of them at the website of Discasting, but at first I have to talk about it with the compose...
5 hours ago
shared the news One force of nature vs. another: Bill Gates tri...
(via NewsShare)
5 hours ago
Great vid there, a perfect example of a "car crash" movie :P Heard a bit of chiptune-age in there... did you get the audio from .XM files by any chance?
8 hours ago
What I was referring to, was that the way that this "could" move forward, was that people might be able to search for info about any random person through taking a photograph in the street, they don't even have to be famous. Fair enough at this p...
8 hours ago
8 hours ago
actually, zadi is the main act. and nothing against zadi- because she's the greatest video host that ever was, in my opinion. i mean she's better for tech and politics... she may still have a way to go to rank with johnny carson or even conan o'b...
12 hours ago
when i buy a smartphone it will be because i am silly loaded with money and i see one in the store running linux. i can't imagine another scenario that would result in me owning one. oh, well... you could give me one, i suppose. (just so long as ...
12 hours ago
shared the news Levi Johnston talks about Palin's resignation
(via NewsShare)
15 hours ago

Badge

© 2009   Created by Zadi

Badges  |  Report an Issue  |  Privacy  |  Terms of Service