This is a read-only mirror of pymolwiki.org

Difference between revisions of "Linux Install"

From PyMOL Wiki
Jump to navigation Jump to search
Line 20: Line 20:
 
* execute <source lang="python">python setup2.py install          # you may need to be root</source>
 
* execute <source lang="python">python setup2.py install          # you may need to be root</source>
 
* execute <source lang="python">cp ./pymol.com SOME_PATH          # where SOME_PATH is some directory in your $PATH</source>
 
* execute <source lang="python">cp ./pymol.com SOME_PATH          # where SOME_PATH is some directory in your $PATH</source>
 
+
or for the latest version,
 +
* execute <source lang="python">cp ./pymol SOME_PATH          # where SOME_PATH is some directory in your $PATH</source>
 
The executable name is "pymol.com".
 
The executable name is "pymol.com".
  

Revision as of 06:57, 16 February 2006

Installing PyMol is quite straightforward.

PyMol

Installing PyMol is very simple, even from source. On Linux, you need the following requirements:

  • Python (with distutils)
  • Pmw (Python Megawidgets)
  • OpenGL driver (I use NVidia)

Generic Linux

0.99rc1 note!

For those keeping current via CVS, building from source, or installing precompiled unix binaries, here is a quick "heads up!" intended to save you some minor grief: For the last six years, the PyMOL launch script has been called pymol.com instead of simply "pymol". I can't remember why I did things that way, but PyMOL's ".com" convention is different from the most everything else and for no good reason. The launch script should just be the name of the program.

Therefore, as of 0.99rc1, the launch script will simply be "pymol". No big deal right? Well, not so fast: symbolic links, shell aliases, external scripts, package builders, and end-user habits may all need to be adjusted after installing this next version. That is why I haven't changed this before now -- but we should clean this up before 1.0. So, remember: if you update to PyMOL 0.99rc1 (when it's released) and suddenly can't launch PyMOL, that is likely what is going on. Either reset your pointers to ./pymol, or symlink ./pymol to ./pymol.com to preserve the status quo.

From Source

  • untar the compressed package;
  • cd into the newly untarred directory (should be pymol or pymol-version).
  • execute
    python setup.py install            # you may need to be root
    
  • execute
    python setup2.py install           # you may need to be root
    
  • execute
    cp ./pymol.com SOME_PATH           # where SOME_PATH is some directory in your $PATH
    

or for the latest version,

  • execute
    cp ./pymol SOME_PATH           # where SOME_PATH is some directory in your $PATH
    

The executable name is "pymol.com".

From Package

Download the appropriate RPM and use 'rpm' to install it. Typically,

rpm -Uvh rpmFileName.rpm

Compiling By Hand

Due to the large variance of Linux systems, some systems may work fine with PyMol, and some may have related install issues. To overcome this, you can download the ext package and the PyMol source and compile/install by hand.

Once downloaded, see the file pymol/INSTALL and pymol/INSTALL.generic.

Here's the basic steps to install by source:

  1. get the source PyMol Source
  2. extract both packages, rename ext-VERSION.tgz to ext and move it into the pymol directory
  3. cd pymol
  4. cd ext
  5. vi build.com # edit the build file
  6. cd ..
  7. cp setup/Rules.make . # or correct Rules.make file for your machine
  8. vi Rules.make # make appropriate changes
  9. vi setup.py # make appropriate changes
  10. make

Warnings:

  • if you're using a 64-bit machine, lib becomes lib64 for almost everything
  • ensure you have the correct Python path and version (is it 2.3? 2.4?)
  • make sure you make the changes in Rules.make, setup.py, and Makefile, for your platform.

Copy the appropriate setup/Rules.XXX file to the base PyMol dir. You'll have to edit the file for your system. Then run 'make'.

Fedora Core Linux (x86)

PyMOL RPMs are available for Fedora Core 1 & 2, provided by Morten Kjeldgaard. These can be manually downloaded by browsing from: [1]

Alternatively, PyMOL can be installed using Yum (an automated package installer and updater, installed by default in Fedora). This can be done by adding the following lines to your /etc/yum.conf file:

[xray]
name=MOKs RPM Repository fedora $releasever - $basearch - xray
baseurl=http://apt.bioxray.dk/fedora/$releasever/$basearch/xray

And then issuing the following command as root:

yum install pymol

Gentoo Linux (x86)

as root:

emerge pymol

be sure to have the proper OpenGL configuration. For example:

opengl-update ati
opengl-update nvidia

list of available versions of pymol for gentoo

SuSe

32-bit (x86)

See #Generic Linux above.

64-bit (x86_64)

See #Generic Linux above. Some details for problem solving are here. 64-bit Python install is quite easy. Make sure your nvidia driver is installed (or ATI, but I have no experience there).

To install PyMol

  • Ensure your system has it's distutils in place and ready to use. Try the following check:
from distutils import *
  • Download the source
  • Download [Pmw] from [SourceForge].
    • To install Pmw, just decompress it and then move the base director "Pwm" to /usr/lib64/python2.3/site-packages/. You can test that it's there by testing the import, see below:
import * from Pmw

If errors erupt, investigate.

  • decompress the source and cd into the PyMol directory that was just decompressed.
  • If upgrading see below.
  • Now enter the following...

python setup.py build
sudo python setup.py install
sudo python setup2.py

  • The sudo commands will need a root password or someone with sudo capabilities.

I also copy the 'pymol.com' file to /usr/local/bin or /usr/bin -- somewhere in my path: sudo cp ./pymol.com /usr/local/bin

You should now have a working PyMol install.

pymol.com should now run your new PyMol install.

Ubuntu Linux (x86 32,64; mac ppc)

http://ubuntuforums.org/images/ubuntu-small.gif

The Ubuntu pymol package can be installed with minimal effort using the GUI package manager synaptic, or on the command line, using the command

sudo apt-get install pymol

once the universe repository has been activated.

Ubuntu is a completely free and well-maintained Debian GNU/Linux distribution. Further details on using Ubuntu for crystallography and related applications are available are linked.

Preparing your System

See Linux_XFree86_Configuration.

Graphics

XFree86 Config

Check out Configuring XFree86 if you need information on editing the XFree86 configuration file.

Input

If you notice that the keyboard input is ignored into the Pmw widgets, you may have an X-based input method editor installed and running. Such examples could be SCIM, KINPUT/2 or the like. Try turning off the IME and restarting PyMol to get the widgets to recognize your input.