ladanyi@2131: Installation Instructions ladanyi@2131: ========================= alpar@730: ladanyi@2131: Since you are reading this I assume you already obtained one of the release ladanyi@2131: tarballs and successfully extracted it. The latest version of LEMON is ladanyi@2131: available at our webpage (http://lemon.cs.elte.hu/). alpar@730: ladanyi@2131: In order to install LEMON from the extracted source tarball you have to ladanyi@2131: issue the following commands: alpar@730: ladanyi@2131: 1. `cd lemon-x.y.z' alpar@730: ladanyi@2131: This changes to the directory which was created when you extracted the ladanyi@2131: sources. The x.y.z part is a version number. alpar@730: ladanyi@2131: 2. `./configure' alpar@730: ladanyi@2131: This runs the configure shell script, which does some checks and ladanyi@2131: configuration (creates makefiles etc). alpar@730: ladanyi@2131: 3. `make' alpar@730: ladanyi@2131: This command compiles the non-template part of LEMON into libemon.a file. ladanyi@2131: It also compiles the benchmark and demo programs when enabled. alpar@730: ladanyi@2131: 4. `make check' alpar@730: ladanyi@2131: This step is optional, but recommended. It runs the test programs that we ladanyi@2131: developed for LEMON to check whether the library works properly on your ladanyi@2131: platform. alpar@730: ladanyi@2131: 5. `make install' alpar@730: ladanyi@2131: This command installs LEMON under /usr/local (you will need root ladanyi@2131: privileges to be able to do that). If you want to install it to some ladanyi@2131: other location, then pass the --prefix=DIRECTORY flag to configure in ladanyi@2131: step 1. For example: `./configure --prefix=/home/username/lemon' alpar@730: alpar@730: ladanyi@2131: Configure Flags ladanyi@2131: =============== alpar@730: alpar@2139: You can pass the following flags to configure in step 1 alpar@2139: (see ./configure --help for more): alpar@730: alpar@2139: CXX=comp alpar@730: alpar@2139: Change the C++ compiler to 'comp'. alpar@730: alpar@2139: CXXFLAGS='flags' alpar@730: alpar@2139: Pass the 'flags' to the compiler. For example alpar@2139: CXXFLAGS='-O3 -march=pentium-m' alpar@2139: turns on generation of aggressively optimized alpar@2139: Pentium-M specific code. alpar@730: alpar@2139: --enable-demo alpar@730: alpar@2139: Build the demo programs too. alpar@730: alpar@2139: --disable-demo alpar@2139: alpar@2139: Do not build the demo programs (default). alpar@2139: alpar@2139: --enable-benchmark alpar@2139: alpar@2139: Build the benchmark programs too. alpar@2139: alpar@2139: --disable-benchmark alpar@2139: alpar@2139: Do not build the benchmark programs (default). alpar@2139: alpar@2139: --with-glpk[=PREFIX] alpar@2139: alpar@2139: Enable GLPK support (default). You should specify the prefix too if alpar@2139: you installed GLPK to some non-standard location (e.g. your home alpar@2139: directory). If it is not found, GLPK support will be disabled. alpar@2139: alpar@2139: --with-glpk-includedir=DIR alpar@2139: alpar@2139: The directory where the GLPK header files are located. This is only alpar@2139: useful when the GLPK headers and libraries are not under the same alpar@2139: prefix (which is unlikely). alpar@2139: alpar@2139: --with-glpk-libdir=DIR alpar@2139: alpar@2139: The directory where the GLPK libraries are located. This is only alpar@2139: useful when the GLPK headers and libraries are not under the same alpar@2139: prefix (which is unlikely). alpar@2139: alpar@2139: --without-glpk alpar@730: ladanyi@2131: Disable GLPK support. alpar@730: alpar@2139: --with-cplex[=PREFIX] alpar@730: alpar@2139: Enable CPLEX support (default). You should specify the prefix too alpar@2139: if you installed CPLEX to some non-standard location alpar@2139: (e.g. /opt/ilog/cplex75). If it is not found, CPLEX support will be alpar@2139: disabled. alpar@730: alpar@2139: --with-cplex-includedir=DIR alpar@730: alpar@2139: The directory where the CPLEX header files are located. This is alpar@2139: only useful when the CPLEX headers and libraries are not under the alpar@2139: same prefix (e.g. /usr/local/cplex/cplex75/include). alpar@730: alpar@2139: --with-cplex-libdir=DIR alpar@730: alpar@2139: The directory where the CPLEX libraries are located. This is only alpar@2139: useful when the CPLEX headers and libraries are not under the same alpar@2139: prefix (e.g. alpar@2139: /usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt). alpar@730: alpar@2139: --without-cplex alpar@730: ladanyi@2131: Disable CPLEX support.