<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JinKee</id>
	<title>PyMOL Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=JinKee"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/JinKee"/>
	<updated>2026-04-21T15:23:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12402</id>
		<title>Linux Install</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12402"/>
		<updated>2006-05-08T16:08:06Z</updated>

		<summary type="html">&lt;p&gt;JinKee: /* Fedora Core Linux (x86) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Installing PyMol is quite straightforward.&lt;br /&gt;
&lt;br /&gt;
=PyMol=&lt;br /&gt;
Installing PyMol is very simple, even from source.  On Linux, you need the following requirements:&lt;br /&gt;
* [http://www.python.org/ Python] (with distutils)&lt;br /&gt;
* [http://pmw.sf.net Pmw] (Python Megawidgets)&lt;br /&gt;
* OpenGL driver (I use [http://www.nvidia.com/object/unix.html NVidia])&lt;br /&gt;
&lt;br /&gt;
== Generic Linux ==&lt;br /&gt;
&lt;br /&gt;
=== 0.99rc1 note! ===&lt;br /&gt;
For those keeping current via CVS, building from source, or installing precompiled unix binaries, here is a quick &amp;quot;heads up!&amp;quot; intended to save you some minor grief: For the last six years, the PyMOL launch script has been called '''pymol.com''' instead of simply &amp;quot;pymol&amp;quot;.  I can't remember why I did things that way, but PyMOL's &amp;quot;.com&amp;quot; convention is different from the most everything else and for no good reason.  The launch script should just be the name of the program.&lt;br /&gt;
&lt;br /&gt;
Therefore, as of 0.99rc1, the launch script will simply be &amp;quot;pymol&amp;quot;.  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.&lt;br /&gt;
&lt;br /&gt;
=== From Source ===&lt;br /&gt;
* untar the compressed package;&lt;br /&gt;
* cd into the newly untarred directory (should be '''pymol''' or '''pymol-version''').&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup.py install            # you may need to be root&amp;lt;/source&amp;gt;&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;python setup2.py install           # you may need to be root&amp;lt;/source&amp;gt;&lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cp ./pymol.com SOME_PATH           # where SOME_PATH is some directory in your $PATH&amp;lt;/source&amp;gt;&lt;br /&gt;
or for the latest version, &lt;br /&gt;
* execute &amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;cp ./pymol SOME_PATH           # where SOME_PATH is some directory in your $PATH&amp;lt;/source&amp;gt;&lt;br /&gt;
The executable name is &amp;quot;pymol.com&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== From Package ===&lt;br /&gt;
Download the appropriate RPM and use 'rpm' to install it.  Typically,&lt;br /&gt;
 rpm -Uvh rpmFileName.rpm&lt;br /&gt;
&lt;br /&gt;
===Compiling By Hand===&lt;br /&gt;
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.  &lt;br /&gt;
&lt;br /&gt;
Once downloaded, see the file '''pymol/INSTALL''' and '''pymol/INSTALL.generic'''.&lt;br /&gt;
&lt;br /&gt;
Here's the basic steps to install by source:&lt;br /&gt;
# get the source [http://delsci.com/rel/0_98/#OtherUnix PyMol Source]&lt;br /&gt;
# extract both packages, rename ext-VERSION.tgz to ext and move it into the pymol directory&lt;br /&gt;
# cd pymol&lt;br /&gt;
# cd ext&lt;br /&gt;
# vi build.com  # edit the build file&lt;br /&gt;
# cd ..&lt;br /&gt;
# cp setup/Rules.make . # or correct Rules.make file for your machine&lt;br /&gt;
# vi Rules.make         # make appropriate changes&lt;br /&gt;
# vi setup.py           # make appropriate changes&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
Warnings:&lt;br /&gt;
* if you're using a 64-bit machine, lib becomes lib64 for almost everything&lt;br /&gt;
* ensure you have the correct Python path and version (is it 2.3?  2.4?)&lt;br /&gt;
* make sure you make the changes in '''Rules.make''', '''setup.py''', and '''Makefile''', for your platform.&lt;br /&gt;
&lt;br /&gt;
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'.&lt;br /&gt;
&lt;br /&gt;
== Fedora Core Linux (x86) ==&lt;br /&gt;
PyMOL RPMs are available for Fedora Core 1 &amp;amp; 2, provided by Morten Kjeldgaard. These can be manually downloaded by browsing from: [http://apt.bioxray.dk/]&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
 [xray]&lt;br /&gt;
 name=MOKs RPM Repository fedora $releasever - $basearch - xray&lt;br /&gt;
 baseurl=http://apt.bioxray.dk/fedora/fc$releasever/$basearch/xray&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
you may also need to add the pgp key for the repository before yum will get packages from it by either saying:&lt;br /&gt;
&lt;br /&gt;
 rpm --import http://www.bioxray.dk/~mok/404825e7.asc&lt;br /&gt;
&lt;br /&gt;
or with older versions of rpm:&lt;br /&gt;
&lt;br /&gt;
 wget http://www.bioxray.dk/~mok/404825e7.asc&lt;br /&gt;
 rpm --import 404825e7.asc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then issuing the following command as root:&lt;br /&gt;
&lt;br /&gt;
 yum install pymol&lt;br /&gt;
&lt;br /&gt;
== Gentoo Linux (x86) ==&lt;br /&gt;
as root:&lt;br /&gt;
 emerge pymol&lt;br /&gt;
be sure to have the proper OpenGL configuration. For example:&lt;br /&gt;
 opengl-update ati&lt;br /&gt;
 opengl-update nvidia&lt;br /&gt;
list of available versions of [http://packages.gentoo.org/packages/?category=sci-chemistry;name=pymol pymol for gentoo]&lt;br /&gt;
&lt;br /&gt;
== SuSe ==&lt;br /&gt;
=== 32-bit (x86) ===&lt;br /&gt;
See [[#Generic Linux]] above.&lt;br /&gt;
&lt;br /&gt;
=== 64-bit (x86_64) ===&lt;br /&gt;
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).&lt;br /&gt;
&lt;br /&gt;
To install PyMol&lt;br /&gt;
*Ensure your system has it's distutils in place and ready to use.  Try the following check:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from distutils import *&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
*Download the [http://pymol.org/ source]&lt;br /&gt;
*Download [http://www.sf.net/projects/pmw Pmw] from [http://www.sf.net/ SourceForge].&lt;br /&gt;
** To install Pmw, just decompress it and then move the base director &amp;quot;Pwm&amp;quot; to /usr/lib64/python2.3/site-packages/.  You can test that it's there by testing the import, see below:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import * from Pmw&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
If errors erupt, investigate.&lt;br /&gt;
* decompress the source and cd into the PyMol directory that was just decompressed.&lt;br /&gt;
* If upgrading see [[:Category: Upgrading PyMol|below]].&lt;br /&gt;
* Now enter the following...&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
python setup.py build&amp;lt;br&amp;gt;&lt;br /&gt;
sudo python setup.py install&amp;lt;br&amp;gt;&lt;br /&gt;
sudo python setup2.py&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
* The sudo commands will need a root password or someone with sudo capabilities.&lt;br /&gt;
&lt;br /&gt;
I also copy the 'pymol.com' file to /usr/local/bin or /usr/bin -- somewhere in my path:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp ./pymol.com /usr/local/bin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that newer versions of PyMol create the '''pymol''' executable, not '''pymol.com'''.  So, for later versions (~0.99+) use&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
sudo cp ./pymol /usr/local/bin&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should now have a working PyMol install.  &lt;br /&gt;
&lt;br /&gt;
'''pymol.com''' should now run your new PyMol install.&lt;br /&gt;
&lt;br /&gt;
==Ubuntu Linux (x86 32,64; mac ppc)==&lt;br /&gt;
http://ubuntuforums.org/images/ubuntu-small.gif&lt;br /&gt;
&lt;br /&gt;
The [http://www.ubuntu.com/ Ubuntu] [http://packages.ubuntu.com/breezy/science/pymol pymol package] can be installed with minimal effort using the GUI package manager [http://en.wikipedia.org/wiki/Synaptic_Package_Manager synaptic], or on the command line, using the command&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install pymol&lt;br /&gt;
&lt;br /&gt;
once the [http://ubuntuguide.org/#extrarepositories universe repository] has been activated.  &lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Ubuntu_Linux Ubuntu] is a completely free and well-maintained Debian GNU/Linux distribution. Further details on using [http://xanana.ucsc.edu/linux/debian_linux.html Ubuntu for crystallography] and related applications are available are linked. PyMol also compiles from source on Ubuntu following the [[#Generic Linux]] instructions given above.&lt;br /&gt;
&lt;br /&gt;
=Preparing your System=&lt;br /&gt;
See [[Linux_XFree86_Configuration]].&lt;br /&gt;
&lt;br /&gt;
==Graphics==&lt;br /&gt;
===XFree86 Config===&lt;br /&gt;
Check out [[XFree86_Configuration|Configuring XFree86]] if you need information on editing the XFree86 configuration file.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation|Linux Installation]]&lt;br /&gt;
&lt;br /&gt;
=Problems=&lt;br /&gt;
&lt;br /&gt;
==Input==&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==libnvidia-tls.so.1: cannot handle TLS data==&lt;br /&gt;
&lt;br /&gt;
If you get an error, upon invoking pymol, of the form&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/pymol/__init__.py&amp;quot;, line 109, in ?&lt;br /&gt;
    import pymol&lt;br /&gt;
  File &amp;quot;/usr/lib/python2.4/site-packages/pymol/__init__.py&amp;quot;, line 353, in ?&lt;br /&gt;
    import _cmd&lt;br /&gt;
ImportError: libnvidia-tls.so.1: cannot handle TLS data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
then [http://imgseek.sourceforge.net/faq.html#faq3 move the directory] &amp;lt;tt&amp;gt; mv /usr/lib/tls&amp;lt;/tt&amp;gt;, e.g:&lt;br /&gt;
&lt;br /&gt;
 sudo mv /usr/lib/tls /usr/lib/tls-feb15-2006&lt;br /&gt;
&lt;br /&gt;
This temporarily cures the problem for me (Ubuntu 5.10; nvidia driver), but creates display problems upon rebooting.&lt;/div&gt;</summary>
		<author><name>JinKee</name></author>
	</entry>
</feed>