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
command.
Prebuilt binary packages
- Fedora Core 5 or 6:
Note if you installed a version prior to 6.3.0 you should remove it (rpm -e wxMacMolPlt) as the name has changed to all lower case.
- Fedora 7 or 8:
- Debian Linux (and Ubuntu):
- Source and binary packages are available for Debian Etch (stable).
These packages also work fine on Ubuntu 6.10.
Currently the packages are only available from our own repository. To
obtain them add the following lines to your /etc/apt/sources.list:
- deb http://www.scl.ameslab.gov/MacMolPlt/debian etch main
- deb-src http://www.scl.ameslab.gov/MacMolPlt/debian etch main
Then apt-get update. You should then be able to install using
apt-get install wxmacmolplt for i386, amd64 and powerpc architectures.
For other architectures you can build a binary package and install with
- apt-get build-dep wxmacmolplt
- apt-get -b source wxmacmolplt
- dpkg -i wxmacmolplt*.deb
Note this will download and build in the current directory. Once you
have installed the .deb file you can remove everything from the current
directory.
- If you are running a purely Debian old stable (Sarge) 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.
- Mandriva 2007.1:
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) 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:
- Download the latest wxWidgets source (2.6.3 through 2.8.7 have been tested).
- 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
- make install
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.
Building MacMolPlt. This should be very straightforward.
- ./configure
- If your wxWidgets install is not on your path add
--with-wx-config=/path/to/wx-config
- To install somewhere other than /usr/local add
--prefix=/path/to/top/dir
- make
- make install
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.
(BMB )