Platforms:Cygwin
From ALPSWiki
[edit]
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.
[edit]
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: cvs
- 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
- Create the source tree structure
mkdir ALPS; mkdir ALPS/CVS-Sources/; cd ALPS/CVS-Sources
- Checkout snapshot from CVS
cvs checkout alps
- Create the build directory
mkdir build-alps-g++; cd build-alps-g++
- Launch configure: Be warned, due to some Windows/Cygwin specifics the following configure scripts will perform very slowly.
../alps/configure --prefix=$HOME/ALPS/Installations/alps-g++/ --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
That's it!
[edit]
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
- create and go to the ALPS-Applications build-dir
cd ALPS/CVS-Sources ; mkdir build-applications-g++; cd build-applications-g++
- launch the configure script:
../applications/configure --prefix=/home/aml/ALPS/Installations/alps-g++/ --with-lp_solve=$HOME/libraries/lp_solve
- configure should find all prerequisites in order to compile all applications
- start compiling
make && make install
That's it!
Please report any positive or constructive feedback to me (AML) or to the developer mailing list.
© 2006 by Andreas Läuchli
