ALPS on Windows
The current ALPS CVS version (1.3b3) compiles now on Windows under the most recent Cygwin environment in the serial version. I didn't yet try to build a MPI version of the library.
How to compile and install the ALPS libraries
- Download the latest Setup.exe from www.cygwin.com
- Launch Setup.exe
- In the package selection choose the following packages in addition to the ones already selected:
- Develop: bison (only needed for the applications later on)
- Develop: boost
- Develop: boost-devel
- Develop: flex (only needed for the applications later on)
- Develop: gcc-g++
- Develop: expat
- Develop: make
- Libs: libxslt
- Math: lapack
- Do *not* install the sunrpc package, the ALPS CVS version now comes with its own XDR code.
- Finish the Cygwin install
- open the cygwin shell; you are then in your cygwin home directory
- untar the alps library tarball you have downloaded at a location of your choice
- change into the alps source directory
- Launch configure with the following command typed on a single line. You might need to change the path to boost in case cygwin includes a more recent version. (Warning, due to some Windows/Cygwin limitations the following configure scripts might perform somewhat slowly)
configure --with-boost-incdir=/usr/include/boost-1_33_1 --with-boost-libdir=/usr/lib --with-boost-toolset=gcc-mt-s-1_33_1
- start compiling and installing:
make && make install
How to compile and install the ALPS Applications
- Download a lp_solve tarball.
- Check that you have installed the "bison" and "flex" cygwin packages listed above
- change into the lp_solve source directory
- compile the lp_solve library:
make -f Makefile.linux
- download and untar the alps application tarball at a location of your choice.
- change into the alps application source tree.
- launch the configure script indicating the location of your lp_solve directory, where you compiled the lp_solve library:
- configure should find all prerequisites in order to compile all applications
- start compiling
make && make install
- you should then add the alps applications and tools to your path. you can do this by creating or editing the file .bashrc in your home directory (as on a unix machine) and adding the following line
- if you close the shell and open it again, the alps applications will be at your disposal.
Please report any positive or constructive feedback to me (AML) or to the developer mailing list.
© 2006 by Andreas Läuchli