Linux Install: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Installing PyMol is quite straightforward.
Installing PyMol is quite straightforward.


==XFree86 Config==
=PyMol=
Check out [[XFree86_Configuration|Configuring XFree86]] if you need information on editing the XFree86 configuration file.
Installing PyMol is very simple, even from source.  On Linux, you need the following requirements:
* [http://www.python.org/ Python] (with distutils)
* [http://pmw.sf.net Pmw] (Python Megawidgets)
* OpenGL driver (I use [http://www.nvidia.com/object/unix.html NVidia])
 
== Generic Linux ==
=== From Source ===
* untar the compressed package;
* cd into the newly untarred directory (should be '''pymol''' or '''pymol-version''').
* execute <source lang="python">python setup.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>
 
The executable name is "pymol.com".
 
=== From Package ===
Download the appropriate RPM and use 'rpm' to install it.  Typically,
rpm -Uvh rpmFileName.rpm


== Fedora Core Linux (x86) ==
===Compiling By Hand===
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'.


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


http://apt.bioxray.dk/
== 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: [http://apt.bioxray.dk/]


Alternatively, PyMOL can be installed using [http://linux.duke.edu/projects/yum/ 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:
Alternatively, PyMOL can be installed using [http://linux.duke.edu/projects/yum/ 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:
Line 19: Line 37:


  yum install pymol
  yum install pymol
----


== Gentoo Linux (x86) ==
== Gentoo Linux (x86) ==
Line 28: Line 45:
  opengl-update nvidia
  opengl-update nvidia
list of available versions of [http://packages.gentoo.org/packages/?category=sci-chemistry;name=pymol pymol for gentoo]
list of available versions of [http://packages.gentoo.org/packages/?category=sci-chemistry;name=pymol pymol for gentoo]
----


== SuSe ==
== SuSe ==
=== 32-bit (x86) ===
=== 32-bit (x86) ===
See [#Generic Linux] above.


=== 64-bit (x86_64) ===
=== 64-bit (x86_64) ===
64-bit Python install is quite easy.  Make sure your nvidia driver is installed (or ATI, but I have no experience there).
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
To install PyMol
Line 67: Line 84:
'''pymol.com''' should now run your new PyMol install.
'''pymol.com''' should now run your new PyMol install.


=Preparing your System=
See [[Linux_XFree86_Configuration]].


*Caveats
==Graphics==
**NVidia card
===XFree86 Config===
***Kernel Source
Check out [[XFree86_Configuration|Configuring XFree86]] if you need information on editing the XFree86 configuration file.
**ATI card
**Pmw
 
== RPM ==
Download the appropriate RPM and use 'rpm' to install it.  Typically,
rpm -Uvh rpmFileName.rpm
 
== From Source ==
===DistUtils===
assuming you already have your PyMol source tree untar'ed simply do:
  python setup.py build
  python setup.py install  # need to be root, here
  python setup2.py
  sudo cp ./pymol.com /usr/local/bin/pymol.com # cp the executable to /usr/local/bin
 
Now you can run PyMol from anywhere by issuing the command:
pymol.com
===Compiling By Hand===
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'.


[[Category:Installation|Linux Installation]]
[[Category:Installation|Linux Installation]]
==Preparing your System==
See [[Linux_XFree86_Configuration]].

Revision as of 18:21, 2 January 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

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
    

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

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.

Preparing your System

See Linux_XFree86_Configuration.

Graphics

XFree86 Config

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