This is a read-only mirror of pymolwiki.org
Difference between revisions of "MAC Install"
m (1 revision) |
(Incentive PyMOL, See Also, Updated outdated information and removed dead links) |
||
Line 1: | Line 1: | ||
− | [[ | + | This page describes how to install PyMOL on Mac OS X. |
+ | |||
+ | == Incentive PyMOL == | ||
+ | |||
+ | === MacPyMOL === | ||
+ | |||
+ | MacPyMOL is available exclusively to paying sponsors. [http://www.schrodinger.com Schrödinger] provides a DMG package which also includes ready-to-use [[APBS]], [[morph|RigiMOL]], an MPEG encoder for movie export, and a small molecule energy minimization engine. | ||
− | + | Download: http://pymol.org/download | |
− | + | Installation: Drag '''MacPyMOL.app''' on the '''/Applications''' shortcut. (In principle, you could drag it into any Finder window and run it from there, it doesn’t have to live in /Applications). | |
− | |||
− | |||
− | + | Uninstallation: Move '''/Applications/MacPyMOL.app''' to Trash | |
− | + | === Launching from Command Line === | |
− | |||
− | |||
− | + | The unix executable resides at '''/Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL''' | |
− | |||
− | |||
− | The unix executable resides at MacPyMOL.app/Contents/MacOS/MacPyMOL | ||
− | + | === X11 Hybrid === | |
− | + | MacPyMOL can optionally run with the same two-window GUI which PyMOL uses on Windows and Linux. This GUI has some additional features, like the [[Plugins|Plugin]] menu and the [[Builder]]. | |
− | + | Requires [http://xquartz.macosforge.org/ XQuartz]. | |
− | |||
− | |||
− | http:// | ||
− | + | There are two ways to launch the X11 interface: | |
+ | # rename '''/Applications/MacPyMOL.app''' to '''/Applications/MacPyMOLX11Hybrid.app''' | ||
+ | # launch the unix executable with the '''-m''' flag: '''/Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL -m''' | ||
− | ===Second Monitor=== | + | === Stereo on Second Monitor === |
The trick to getting MacPyMOL to work in stereo on the second monitor is to force it to initially open on that display by providing an appropriate "-X #" (and perhaps -Y #) option on launch. That way the OpenGL context will be created with stereo support. | The trick to getting MacPyMOL to work in stereo on the second monitor is to force it to initially open on that display by providing an appropriate "-X #" (and perhaps -Y #) option on launch. That way the OpenGL context will be created with stereo support. | ||
<source lang="python"> | <source lang="python"> | ||
Line 38: | Line 36: | ||
'''Source:''' ''Warren DeLano; PyMOL Users Archive'' | '''Source:''' ''Warren DeLano; PyMOL Users Archive'' | ||
− | =PyMOL | + | == Open-Source PyMOL == |
− | + | ||
+ | === Pre-compiled === | ||
− | + | Pre-compiled Open-Source PyMOL is available [https://sourceforge.net/p/pymol/code/HEAD/tree/trunk/pymol/LICENSE free of charge] with the [https://www.macports.org/ MacPorts], [http://www.finkproject.org/ Fink] and [http://brew.sh/ Homebrew] environments. | |
− | |||
− | |||
<source lang="bash"> | <source lang="bash"> | ||
+ | # Fink | ||
fink install pymol-py27 | fink install pymol-py27 | ||
− | |||
− | + | # MacPorts | |
+ | sudo port install pymol | ||
− | + | # Homebrew | |
− | + | brew install homebrew/science/pymol | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | + | Make sure that the dependencies are installed with the required flags: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<source lang="bash"> | <source lang="bash"> | ||
− | + | # MacPorts | |
+ | sudo port install tcl -corefoundation | ||
+ | sudo port install tk -quartz | ||
+ | |||
+ | # Homebrew | ||
+ | brew install tcl-tk --with-threads --with-x11 | ||
+ | brew install python --with-tcl-tk | ||
</source> | </source> | ||
− | == | + | === Install from Source === |
− | + | ||
− | + | If you want the latest PyMOL code (warning: might include experimental changes), then follow the [[Linux_Install#Install_from_source|Linux installation instructions]]. You will need an environment like Fink, MacPorts or Homebrew to install the dependencies. Make sure you use the appropriate python interpreter (e.g. '''/sw/bin/python2.7''' when using Fink). | |
− | |||
− | # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ==Install APBS with Fink== | + | === Install APBS with Fink === |
To use the electrostatics plugin, you will need [http://apbs.sourceforge.net/ APBS] and its dependencies. These are also available as Fink packages, and include [http://pdb.finkproject.org/pdb/package.php/apbs APBS], [http://pdb.finkproject.org/pdb/package.php/maloc maloc] and [http://pdb.finkproject.org/pdb/package.php/pdb2pqr pdb2pqr]. If you have multiple processors available, you might wish to install the [http://pdb.finkproject.org/pdb/package.php/apbs-mpi-openmpi MPI version of APBS]. | To use the electrostatics plugin, you will need [http://apbs.sourceforge.net/ APBS] and its dependencies. These are also available as Fink packages, and include [http://pdb.finkproject.org/pdb/package.php/apbs APBS], [http://pdb.finkproject.org/pdb/package.php/maloc maloc] and [http://pdb.finkproject.org/pdb/package.php/pdb2pqr pdb2pqr]. If you have multiple processors available, you might wish to install the [http://pdb.finkproject.org/pdb/package.php/apbs-mpi-openmpi MPI version of APBS]. | ||
Line 107: | Line 79: | ||
will install apbs and its required dependencies for you. The fink pymol package is already preconfigured to do the right thing to use apbs as a plugin. | will install apbs and its required dependencies for you. The fink pymol package is already preconfigured to do the right thing to use apbs as a plugin. | ||
− | = | + | === Stereo issues === |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | = | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Some older Macs seem to crash with stereo graphics. If this happens to you, a workaround is to launch PyMOL explicitly in Mono mode with `pymol -M`. You can also set up an alias in your ~/.profile: | Some older Macs seem to crash with stereo graphics. If this happens to you, a workaround is to launch PyMOL explicitly in Mono mode with `pymol -M`. You can also set up an alias in your ~/.profile: | ||
alias pymol='pymol -M' | alias pymol='pymol -M' | ||
− | == | + | == See Also == |
− | |||
− | + | * [[pymolrc]] | |
− | + | * [[Linux Install]] | |
− | + | * [[Windows Install]] | |
− | + | * [[MovieSchool_6#Exporting_your_Movie|FreeMOL installation for MPEG movie export]] | |
− | + | * [[User:Wgscott|Bill Scott’s]] [[MacOSX-specific .pymolrc file]] and his crystallographic software [http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Main_Page wiki] and [http://chemistry.ucsc.edu/~wgscott/xtal/ website], including instructions on [http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Getting_your_fink_installation_to_use_packages_that_I_have_pre-compiled how to install precompiled binary packages using fink]. | |
− | + | * [[Launching_PyMOL#MacOS_X]] | |
− | |||
− | |||
− | |||
− | |||
+ | [[Category:Installation|Mac]] | ||
[[Category:Nucleic_Acids|MAC Install]] | [[Category:Nucleic_Acids|MAC Install]] | ||
[[Category:Technical Issues|MAC Install]] | [[Category:Technical Issues|MAC Install]] | ||
[[Category:Mac|MAC Install]] | [[Category:Mac|MAC Install]] |
Revision as of 19:12, 29 January 2016
This page describes how to install PyMOL on Mac OS X.
Incentive PyMOL
MacPyMOL
MacPyMOL is available exclusively to paying sponsors. Schrödinger provides a DMG package which also includes ready-to-use APBS, RigiMOL, an MPEG encoder for movie export, and a small molecule energy minimization engine.
Download: http://pymol.org/download
Installation: Drag MacPyMOL.app on the /Applications shortcut. (In principle, you could drag it into any Finder window and run it from there, it doesn’t have to live in /Applications).
Uninstallation: Move /Applications/MacPyMOL.app to Trash
Launching from Command Line
The unix executable resides at /Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL
X11 Hybrid
MacPyMOL can optionally run with the same two-window GUI which PyMOL uses on Windows and Linux. This GUI has some additional features, like the Plugin menu and the Builder.
Requires XQuartz.
There are two ways to launch the X11 interface:
- rename /Applications/MacPyMOL.app to /Applications/MacPyMOLX11Hybrid.app
- launch the unix executable with the -m flag: /Applications/MacPyMOL.app/Contents/MacOS/MacPyMOL -m
Stereo on Second Monitor
The trick to getting MacPyMOL to work in stereo on the second monitor is to force it to initially open on that display by providing an appropriate "-X #" (and perhaps -Y #) option on launch. That way the OpenGL context will be created with stereo support.
./MacPyMOL.app/Contents/MacOS/MacPyMOL -X -1000
./MacPyMOL.app/Contents/MacOS/MacPyMOL -X -1000 -Y 100
Source: Warren DeLano; PyMOL Users Archive
Open-Source PyMOL
Pre-compiled
Pre-compiled Open-Source PyMOL is available free of charge with the MacPorts, Fink and Homebrew environments.
# Fink
fink install pymol-py27
# MacPorts
sudo port install pymol
# Homebrew
brew install homebrew/science/pymol
Make sure that the dependencies are installed with the required flags:
# MacPorts
sudo port install tcl -corefoundation
sudo port install tk -quartz
# Homebrew
brew install tcl-tk --with-threads --with-x11
brew install python --with-tcl-tk
Install from Source
If you want the latest PyMOL code (warning: might include experimental changes), then follow the Linux installation instructions. You will need an environment like Fink, MacPorts or Homebrew to install the dependencies. Make sure you use the appropriate python interpreter (e.g. /sw/bin/python2.7 when using Fink).
Install APBS with Fink
To use the electrostatics plugin, you will need APBS and its dependencies. These are also available as Fink packages, and include APBS, maloc and pdb2pqr. If you have multiple processors available, you might wish to install the MPI version of APBS.
Issuing the command
fink install apbs
will install apbs and its required dependencies for you. The fink pymol package is already preconfigured to do the right thing to use apbs as a plugin.
Stereo issues
Some older Macs seem to crash with stereo graphics. If this happens to you, a workaround is to launch PyMOL explicitly in Mono mode with `pymol -M`. You can also set up an alias in your ~/.profile:
alias pymol='pymol -M'
See Also
- pymolrc
- Linux Install
- Windows Install
- FreeMOL installation for MPEG movie export
- Bill Scott’s MacOSX-specific .pymolrc file and his crystallographic software wiki and website, including instructions on how to install precompiled binary packages using fink.
- Launching_PyMOL#MacOS_X