Download and install ALPS 2

Revision as of 05:09, 17 October 2010 by Troyer (talk | contribs) (Nightly snapshots)

Jump to: navigation, search

Download ALPS 2.0

ALPS 2.0 comes as a single package containing both libraries and applications. Unless stated otherwise, the ALPS Libraries are distributed under the ALPS library license for libraries and ALPS application license for applications.


ALPS 2.0 is not yet released, but you can download a pre-release version and nightly source snapshots and binary builds.

Prerelease versions

Pre-release 2.0b4

Important note:

  1. make sure to completely remove any previous ALPS-2 installation before installing the beta release.
  2. boost-1.44 is recommended for this beta release
File Approximate size Architecture Type
alps-2.0.0b4-r4856-src.tar.gz 10.9 MB all Source .tar.gz
alps-2.0.0b4-r4856-src-with-boost.tar.gz 50.5 MB all Source .tar.gz

including the Boost library

alps-2.0.0b4-macosx-10.6.dmg 27.3 MB MacOS X 10.6


.dmg (Mac bundle)
alps-2.0.0b4-macosx-10.5.dmg 26.8 MB MacOS X 10.5+

32 bit (Intel)

.dmg (Mac bundle)
alps-vistrails-2.0.0b4-macosx-10.5.dmg 3.6 MB MacOS X 10.5+

32 bit (Intel)

.dmg (Mac bundle)

ALPS extensions to Vistrails

alps-2.0.0b4-windows.exe 25.4 MB Windows XP, Vista, and 7

32 bit (i586)

.exe (WIndows installer)
alps-vistrails-2.0.0b4-windows.exe 2.0 MB Windows XP, Vista, and 7

32 bit (i586)

.exe (WIndows installer)

ALPS extensions to Vistrails

Nightly snapshots

Nightly snapshot Approximate size Architecture Type
alps-nightly-src.tar.gz 4.9 MB all Source .tar.gz
alps-nightly-src-with-boost.tar.gz 50 MB all Source .tar.gz

including the Boost library

alps-nightly-macosx-10.6.dmg 23 MB MacOS X 10.6


.dmg (Mac bundle)
alps-nightly-macosx-10.5.dmg 14 MB MacOS X 10.5+

32 bit (Intel)

.dmg (Mac bundle)
alps-vistrails-nightly-macosx-10.5.dmg 5.5 MB MacOS X 10.5+

32 bit (Intel)

.dmg (Mac bundle)

ALPS extensions to Vistrails

alps-nightly-windows.exe 19 MB Windows XP, Vista, and 7

32 bit (i586)

.exe (WIndows installer)
alps-vistrails-nightly-windows.exe 4.0 MB Windows XP, Vista, and 7

32 bit (i586)

.exe (WIndows installer)

ALPS extensions to Vistrails

alps-nightly-tutorials.tar.gz 6.8 MB Unix line endings Tutorials

Installing the binary releases

Installing the ALPS libraries and applications (MacOSX and Windows)

To install the binary releases for MacOS X and Windows just download the appropriate installer above and install it on your system. The installation location is /opt/alps on MacOS and "C:Program Files\ALPS" or "C:Program Files (x86)\ALPS" on Windows.

Installing Vistrails and the ALPS Vistrails extensions

To use the full Python functionality or the Vistrails provenance system, download and install the latest version of Vistrails and then download install the appropriate ALPS Vistrails extension from the list above. This will install the ALPS packages into Vistrails and update your Vistrails installation to the latest pre-release version of Vistrails that is needed for ALPS.

Important note: on MacOS X download Vistrails 1.5.0 from here and not VIstrails 1.5.1 which has a fatal bug.

Install Vistrails also if you just want to use the ALPS Python tools without Vistrails, since the binary packages have been compiled against the Python installation that comes with Vistrails.

On Windows you will need to tell Vistrails where you have installed ALPS if you use a a 64-bit version of Windows or have not installed ALPS in the default location on the C drive. To do so, launch Vistrails and select Preferences from the Edit menu. Then click the "Module Packages" tab and enable the ALPS package. After enabling the ALPS package, select alps click configure and change the alpspath variable to point to your ALPS installation. On a 64-bit version of Windows this will most likely just be changing "Program Files" to 'Program Files (x86)".

Non-default install locations for the binary packages

If you install it in a non-default location you will have to

  • set the environment variable ALPS_XML_DIR to point the the directory containing the ALPS XML and XSL files (the lib/xml subdirectory of the ALPS installation
  • On MacOS X set the environment variable DYLD_LIBRARY_PATH to include the lib directory of the ALPS installation so that the dynamic libraries can be found.

Installing the ALPS libraries and applications (Debian GNU/Linux)

(2010/09/13) Broken for now! Please compile yourself for now. We make daily snapshot binary package for Debian GNU/Linux (sid). The following is the apt line.

deb ./
deb-src ./

Building ALPS from source on MacOS X and Unix

Libraries and tools needed to build ALPS

ALPS will need the following libraries and tools in addition to the ALPS sources:

  • CMake version 2.8 or higher as a build system.
  • Boost C++ Libraries version 1.41.0, 1.42.0, or 1.43.0 or 1.44.0
  • HDF5 version 1.8.2, 1.8.3 or 1.8.4 but not 1.8.5

Many of the applications will also need

  • BLAS and LAPACK libraries

To use the evaluation tools you will need Python and some Python packages

All these packages and tools can be installed from source. In the following we will give more instructions for packaged installations on various platforms.

The directed loop SSE code also needs

  • LPSolve 5.1 (not 5.5), which can be downloaded here. The lpsolve51 subdirectory contains build scripts for different platforms. Refer to the accompanying README files for detailed instructions.
    • Depending on your version of bison there might be a compilation problem with lp_solve. To solve this problem, comment out line 17 "extern int yyleng" of the file lpglob.h.
    • On Mac OS X, if you encounter the error 'unrecognized command line option "-Wno-long-double"', you must edit the build script ccc.osx and remove "-Wno-long-double" from line 12. Afterwards, rerun "sh ccc.osx".

Get dependent libraries and tools on MacOS X using Mac Ports

$ sudo port install cmake
  • Install HDF5 1.8.2, 1.8.3 or 1.8.4 but not 1.8.5.
$ sudo port install hdf5-18
  • If you want Python support without Vistrails install Python and scientific Python packages:
$ sudo port install py26-numpy py26-scipy py26-matplotlib py26-h5py python26
$ sudo python_select python26

Alternatively you can also just install the ALPS Vistrails extensions

  • Download and unpack the Boost C++ Libraries library sources 1.41.0 or higher if you have not downloaded them with the ALPS sources. NOTE: just download and unpack but do not build Boost

Get dependent libraries and tools on CentOS 5.4 (should be identical with RHEL 5.4 and essentially all 5.* versions)

1. Make sure you have all the usual compilers installed. The following should pull in all required dependencies (including some libraries):

# yum install gcc-c++ gcc-gfortran

2. If you want to use the evaluation tools, you will need to install a newer version of Python than the provided 2.4. You can install from source or use an unofficial repository for binary RPMs. If you just want to run your compiled simulations, this is not required, but make sure you still have python headers (specify -DALPS_BUILD_PYTHON=OFF):

# yum install python-devel

3. CMake 2.8.0 and HDF5 1.8 need to be installed from source since there are no packages in the standard repositories. You can however use the install scripts in the script directory to save some work.

4. More recent Boost packages are required. Use the ALPS package that includes them or get them separately.

5. If you don't have some version installed already, you will also need BLAS/LAPACK:

# yum install blas-devel lapack-devel

Get dependent libraries and tools on Ubuntu 9.10 karmic

1. CMake 2.8.0 and HDF5 1.8 need to be installed from source since there are no packages in karmic. It is easier with the next release (lucid), see below.

Get dependent libraries and tools on Ubuntu 10.04 lucid

Download ALPS with the Boost sources included, as Ubuntu 10.04 only ships with Boost 1.40. Install required packages (including python headers and libssl):

$ sudo aptitude install build-essential cmake-curses-gui libhdf5-serial-dev libfftw3-dev gfortran python-dev python-h5py python-numpy python-scipy python-matplotlib libssl-dev

If you don't have some BLAS/LAPACK installed already, also install these:

$ sudo aptitude install liblapack-dev

On Ubuntu, Vistrail is able to automatically install additional packages. If you however do not have administrative rights, you might need your administrator to install also the following packages:

$ sudo aptitude install python-qt4 python-qt4-gl python-qt4-sql python-vtk

Get dependent libraries and tools on Debian GNU/Linux (sid)

(2010/04/08) You can now create ALPS binary (except SSE, #68) without external source!

  • Install build-essential package using apt. This will pull g++, make, etc.
$ sudo aptitude install build-essential
  • Install CMake 2.8.0 or higher using apt.
$ sudo aptitude install cmake
  • Install HDF5 1.8.2 1.8.3 or 1.8.4 but not 1.8.5 using apt.
$ sudo aptitude install libhdf5-serial-dev
  • Install Boost C++ Libraries 1.41.0 or higher using apt. Note: Install libboost1.42-all-dev, NOT libboost1.42-dev.
$ sudo aptitude install libboost1.42-all-dev
  • Install FFTW using apt.
$ sudo aptitude install libfftw3-dev
  • Install Python and the needed packages h5py, numpy, ncipy and matplotlib using apt.
$ sudo aptitude install python-h5py python-numpy python-matplotlib python-scipy
  • Install gfortran using apt for LAPACK/BLAS autodetection.
$ sudo aptitude install gfortran

Get some dependent libraries and tools from source using ALPS convenience scripts

We have provided some shell scripts that can simplify building some of the dependent libraries from source:

  • Checkout the ALPS source from subversion. (assume e.g. at $HOME/src/alps2)
  • Install CMake and HDF5 using scripts, building in $HOME/tmp and installing into $HOME/opt
$ $HOME/src/alps2/script/ $HOME/opt $HOME/tmp
$ $HOME/src/alps2/script/ $HOME/opt $HOME/tmp

Build ALPS

  • Create a build directory (anywhere you have write access) and execute cmake.
$ cmake /path/to/alps/directory

If you downloaded the Boost sources separately (and not with the ALPS sources) specify the root directory as follows:

$ cmake -D Boost_ROOT_DIR:PATH=/path/to/boost/directory /path/to/alps/directory

If you want to specify a different installation directory set the variable CMAKE_INSTALL_PREFIX

$ cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/directory /path/to/alps/directory

If you want to link against a 64-bit LAPACK version turn the LAPACK_64_BIT option on in cmake by adding the option -D LAPACK_64_BIT=ON

  • Optionally look at or edit the CMake configuration settings using the CMake GUI or ccmake. This lets you set include and library paths for libraries which cmake did not find automatically.
$ ccmake .
  • Build and test ALPS
$ make 
$ make test
$ make install

Building Vistrails and ALPS Vistrails packages from source on Linux

Setting up ALPS-enabled Vistrails on Debian GNU/Linux (sid)

  • Install python-qt4-gl and python-vtk (and unzip) using apt
$ sudo aptitude install python-qt4-gl python-vtk unzip
  • Download the latest Vistrails sources from [1].
  • Go to your ALPS build directory
  • Turn ALPS_INSTALL_VISTRAILS_PACKAGES on, either in the GUI or by running cmake initially as
  • Set theCMake VISTRAILS_APP_DIR variable to point to the directory containing vistrails.
  • Build and install ALPS. This will build both a full ALPS installation and install the ALPS Vistrails extensions into Vistrails

If you have problems...

f you've had previous versions of Vistrails installed, it might be confused by some old files in ~/.vistrails. Try renaming that folder and start again.

Advanced builds

Instructions for advanced build versions are available on the developer Wiki:

If you want to build the Python extensions against a non-standard Python installation set the CMake variable PYTHON_INTERPRETER to point to the Python interpreter you want to use

In case of problems

Should you have any questions or inquiries about the ALPS package, please don't hesitate to consult our mailing list:


若對於 ALPS 軟件有任何疑問或質詢 , 請閣下瀏覽我們的專用質詢電郵: