<?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=Xdeupi</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=Xdeupi"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php/Special:Contributions/Xdeupi"/>
	<updated>2026-04-17T14:28:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12425</id>
		<title>Linux Install</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=Linux_Install&amp;diff=12425"/>
		<updated>2008-05-08T12:23:29Z</updated>

		<summary type="html">&lt;p&gt;Xdeupi: &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;
* libpng&lt;br /&gt;
&lt;br /&gt;
== Generic Linux ==&lt;br /&gt;
&lt;br /&gt;
=== Quick Install for Latest Features ===&lt;br /&gt;
Many people want the latest versions of PyMOL as they usually have valuable features, but don't want to build PyMOL.  Building PyMOL is generally '''very''' simple.  &lt;br /&gt;
&lt;br /&gt;
This quick install assumes you already have a [http://subversion.tigris.org/ Subversion] client installed, have some sort of superuser (root) access, and have internet access.  It will download the most current version from [http://pymol.sf.net PyMOL's Projet Page] and install it.  This should install PyMOL onto your system so that any users on your system can use it.  To easily get the latest version, do the following:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
mkdir pymol_temp&lt;br /&gt;
cd pymol_temp&lt;br /&gt;
svn co https://pymol.svn.sourceforge.net/svnroot/pymol/trunk/pymol pymol&lt;br /&gt;
cd pymol&lt;br /&gt;
sudo python setup.py install&lt;br /&gt;
sudo python setup2.py install&lt;br /&gt;
sudo cp ./pymol /usr/local/bin/pymol&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Now, just remove the '''pymol_temp''' directory if you want and you're done.&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.  The '''ext''' package is available from the Source Forge download section and contains all the necessary software to make PyMol run.  In the most recent available version (0.99rc1) this includes&lt;br /&gt;
* tcl-8_4_11.tgz                        &lt;br /&gt;
* tk-8_4_11.tgz                         &lt;br /&gt;
* zlib-1_2_3.tgz                        &lt;br /&gt;
* libpng-1_2_8.tgz                      &lt;br /&gt;
* python-2_4_2.tgz                      &lt;br /&gt;
* numeric-24_2.tgz                      &lt;br /&gt;
* pmw-1_2.tgz                           &lt;br /&gt;
* freetype-2_1_10.tgz                   &lt;br /&gt;
--and--                                   &lt;br /&gt;
* (freeglut-2_4_0.tgz &lt;br /&gt;
--or-- &lt;br /&gt;
* glut-3_7_6.tgz) &lt;br /&gt;
&lt;br /&gt;
     &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. For x86_64, besides above files, change following line in contrib/modules/Makefile.pre.in.src pointing to lib64 ([[leafyoung at yahoo dot com]])&lt;br /&gt;
   LIBP=           $(exec_installdir)/lib'''''64'''''/python$(VERSION)&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;
==== Installing without Superuser (root) Privileges ====&lt;br /&gt;
Use the prefix command to specify where to install PyMOL.  Then, you'll need to modify your '''PYTHONPATH''' variable,&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
# install to prefix&lt;br /&gt;
python setup.py install --prefix /dir_to/pymol/py_build&lt;br /&gt;
# update your PYTHONPATH variable&lt;br /&gt;
export PYTHONPATH=$PYTHONPATH:/dir_to/pymol/py_build/lib/python{version}/site-packages&lt;br /&gt;
# install to prefix (this step _is_ needed)&lt;br /&gt;
python setup2.py install --prefix /dir_to/pymol/py_build&lt;br /&gt;
# now you can run PyMOL&lt;br /&gt;
./pymol&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Installing a Script Without Superuser Access ====&lt;br /&gt;
Install the script following the instructions by the distributor.  Then, add the path where the module was built to the PYTHONPATH environment variable (if needed).&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;
&lt;br /&gt;
http://xanana.ucsc.edu/~wgscott/xtal/ubuntu-small.png&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;
'''NOTE : '''If you experience problems with PyMOL OpenGL window (i.e. flickering) try disabling compiz.&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;
===Xorg===&lt;br /&gt;
Adding a &lt;br /&gt;
 Stereo 3&lt;br /&gt;
option in /etc/X11/xorg.conf suffices to run pymol in stereo mode on a 64bit system with the Nvidia Quadro FX1400 under Red Hat Enterprise 4 (RHEL4). Adding the following modeline (determined via /usr/bin/gtf): &lt;br /&gt;
&lt;br /&gt;
 ModeLine     &amp;quot;1280x1024_118.00&amp;quot; 229.7 1280 1384 1528 1776 1024 1025 1028 1096 -hsync +vsync&lt;br /&gt;
&lt;br /&gt;
appears to slightly improve the stereo quality, in particular when one&lt;br /&gt;
displays labels and/or dashes/dots.&lt;br /&gt;
&lt;br /&gt;
For those having possible driver issues, this link might help&lt;br /&gt;
[http://www.nvnews.net/vbulletin/showthread.php?t=69136 NVNews]&lt;br /&gt;
&lt;br /&gt;
===xorg.conf for stereo in Fedora Core 6===&lt;br /&gt;
It is assumed that you have installed the proprietary [http://www.nvidia.com/content/drivers/drivers.asp Nvidia graphics drivers], and that the &amp;quot;Device&amp;quot; section of xorg.conf has the following line in it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Driver &amp;quot;nvidia&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following section to the end of xorg.conf to disable &amp;quot;Composite&amp;quot;, which is incompatible with stereographics.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Extensions&amp;quot;&lt;br /&gt;
     Option &amp;quot;Composite&amp;quot; &amp;quot;Disable&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Section &amp;quot;Screen&amp;quot; add the following line to enable quad-buffered stereo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Option &amp;quot;Stereo&amp;quot; &amp;quot;3&amp;quot;&amp;lt;/pre&amp;gt;&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 try changing the permissons on   libnvidia-tls.so.1.  i.e,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; sudo chmod 777 /usr/lib/libnvidia-tls.so.1   &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Xdeupi</name></author>
	</entry>
</feed>