Building and Installing MacMolPlt on Linux
It should be possible to run MacMolPlt on any Linux system which has a working
wxWidgets installation. We have tested
on several Linux distributions and have prebuilt binaries for some
distributions. If there is not a prebuilt binary for your distribution grab
the source and follow the build instructions below or in the INSTALL file.
Once your installation is complete run MacMolPlt with the wxmacmolplt
Prebuilt binary packages
- Fedora 13:
- Fedora 16:
- CentOS 6.2:
- Debian Linux (and Ubuntu):
Currently the packages are only available from our own repository. To
obtain them add the following lines to your /etc/apt/sources.list:
Debian squeeze that includes libming1 instead of libming0
or wheezy that uses wx 2.8.12 and libglew1.7
- deb http://www.scl.ameslab.gov/MacMolPlt/debian squeeze main
- deb-src http://www.scl.ameslab.gov/MacMolPlt/debian squeeze main
For Ubuntu 10.04 and later there is a mismatch between Debian squeeze and Ubuntu
libglew versions (Debian is newer surprisingly) so here is a build that
works on Ubuntu:
- deb http://www.scl.ameslab.gov/MacMolPlt/debian wheezy main
- deb-src http://www.scl.ameslab.gov/MacMolPlt/debian wheezy main
For Ubuntu 12.04 and later:
- deb http://www.scl.ameslab.gov/MacMolPlt/debian lucid main
- deb-src http://www.scl.ameslab.gov/MacMolPlt/debian lucid main
Then apt-get update. You should then be able to install using
apt-get install wxmacmolplt for i386 and amd64 architectures.
- deb http://www.scl.ameslab.gov/MacMolPlt/debian precise main
- deb-src http://www.scl.ameslab.gov/MacMolPlt/debian precise main
For other architectures you can build a binary package and install with
Note this will download and build in the current directory. Once you
have installed the .deb file you can remove everything from the current
- apt-get build-dep wxmacmolplt
- apt-get -b source wxmacmolplt
- dpkg -i wxmacmolplt*.deb
- If you are running an older Debian or Ubuntu system you will need
to follow the building from source directions below.
- I am working on getting MacMolPlt included into the main Debian
distribution but that will probably take some time.
- Suse Linux - I have successfully built and tested on several
versions. Versions 10.3 and later appear to have a suitable prebuilt
wxWidgets library that you can build against.
Building from source
If none of those work for you download the
source and follow the instructions
below or in the INSTALL file contained in the source tar file.
The prerequisites for building MacMolPlt from source are a working C++ compiler
(g++ preferred) and a wxWidgets (version 2.6.3 or newer, but 2.8 or newer recommended) install including the
development pieces. You can test for a working wxWidgets install using
wx-config --version. If the response is 2.6.3 or greater you should be fine
and you can go directly to building MacMolPlt below. If you have hardware
supporting stereo display (quad-buffered OpenGL) you may wish to grab the
latest wxWidgets 2.9 prerelease to enable stereo support in MacMolPlt.
If your Linux distribution does not offer a prebuilt wxWidgets package, usually
named something like wxGTK or libwxgtk version 2.6.3 or newer then you will
have to first build and install wxWidgets. Follow these steps to build wxWidgets:
Note: You can install wx into a non-system directory, but that directory will
need to be added to your shared library path or shared libraries disabled in
the build (--disable-shared). If you get an error in the MacMolPlt configure
step saying your wxWidgets build lacks OpenGL support first make sure that
the directory where the shared libraries is installed is in /etc/ld.so.conf
and then run ldconfig. You should only need to do that once.
- Download the latest wxWidgets source (2.6.3 through 2.9.4 have worked in the past).
- unpack the archive and cd into the top level directory
- Configure wx to use OpenGL and unicode:
./configure --with-gtk --with-opengl --enable-unicode
- make install
Building MacMolPlt. This should be very straightforward.
Note: The "make install" step is required as there are a couple of resource
files that the application needs at run time to be fully functional.
- If your wxWidgets install is not on your path add
- To install somewhere other than /usr/local add
- make install