[2131] | 1 | Installation Instructions |
---|
| 2 | ========================= |
---|
[730] | 3 | |
---|
[2131] | 4 | Since you are reading this I assume you already obtained one of the release |
---|
| 5 | tarballs and successfully extracted it. The latest version of LEMON is |
---|
| 6 | available at our webpage (http://lemon.cs.elte.hu/). |
---|
[730] | 7 | |
---|
[2131] | 8 | In order to install LEMON from the extracted source tarball you have to |
---|
| 9 | issue the following commands: |
---|
[730] | 10 | |
---|
[2131] | 11 | 1. `cd lemon-x.y.z' |
---|
[730] | 12 | |
---|
[2131] | 13 | This changes to the directory which was created when you extracted the |
---|
| 14 | sources. The x.y.z part is a version number. |
---|
[730] | 15 | |
---|
[2131] | 16 | 2. `./configure' |
---|
[730] | 17 | |
---|
[2131] | 18 | This runs the configure shell script, which does some checks and |
---|
| 19 | configuration (creates makefiles etc). |
---|
[730] | 20 | |
---|
[2131] | 21 | 3. `make' |
---|
[730] | 22 | |
---|
[2131] | 23 | This command compiles the non-template part of LEMON into libemon.a file. |
---|
| 24 | It also compiles the benchmark and demo programs when enabled. |
---|
[730] | 25 | |
---|
[2131] | 26 | 4. `make check' |
---|
[730] | 27 | |
---|
[2131] | 28 | This step is optional, but recommended. It runs the test programs that we |
---|
| 29 | developed for LEMON to check whether the library works properly on your |
---|
| 30 | platform. |
---|
[730] | 31 | |
---|
[2131] | 32 | 5. `make install' |
---|
[730] | 33 | |
---|
[2131] | 34 | This command installs LEMON under /usr/local (you will need root |
---|
| 35 | privileges to be able to do that). If you want to install it to some |
---|
| 36 | other location, then pass the --prefix=DIRECTORY flag to configure in |
---|
| 37 | step 1. For example: `./configure --prefix=/home/username/lemon' |
---|
[730] | 38 | |
---|
| 39 | |
---|
[2131] | 40 | Configure Flags |
---|
| 41 | =============== |
---|
[730] | 42 | |
---|
[2139] | 43 | You can pass the following flags to configure in step 1 |
---|
| 44 | (see ./configure --help for more): |
---|
[730] | 45 | |
---|
[2139] | 46 | CXX=comp |
---|
[730] | 47 | |
---|
[2139] | 48 | Change the C++ compiler to 'comp'. |
---|
[730] | 49 | |
---|
[2139] | 50 | CXXFLAGS='flags' |
---|
[730] | 51 | |
---|
[2139] | 52 | Pass the 'flags' to the compiler. For example |
---|
| 53 | CXXFLAGS='-O3 -march=pentium-m' |
---|
| 54 | turns on generation of aggressively optimized |
---|
| 55 | Pentium-M specific code. |
---|
[730] | 56 | |
---|
[2139] | 57 | --enable-demo |
---|
[730] | 58 | |
---|
[2139] | 59 | Build the demo programs too. |
---|
[730] | 60 | |
---|
[2139] | 61 | --disable-demo |
---|
| 62 | |
---|
| 63 | Do not build the demo programs (default). |
---|
| 64 | |
---|
| 65 | --enable-benchmark |
---|
| 66 | |
---|
| 67 | Build the benchmark programs too. |
---|
| 68 | |
---|
| 69 | --disable-benchmark |
---|
| 70 | |
---|
| 71 | Do not build the benchmark programs (default). |
---|
| 72 | |
---|
| 73 | --with-glpk[=PREFIX] |
---|
| 74 | |
---|
| 75 | Enable GLPK support (default). You should specify the prefix too if |
---|
| 76 | you installed GLPK to some non-standard location (e.g. your home |
---|
| 77 | directory). If it is not found, GLPK support will be disabled. |
---|
| 78 | |
---|
| 79 | --with-glpk-includedir=DIR |
---|
| 80 | |
---|
| 81 | The directory where the GLPK header files are located. This is only |
---|
| 82 | useful when the GLPK headers and libraries are not under the same |
---|
| 83 | prefix (which is unlikely). |
---|
| 84 | |
---|
| 85 | --with-glpk-libdir=DIR |
---|
| 86 | |
---|
| 87 | The directory where the GLPK libraries are located. This is only |
---|
| 88 | useful when the GLPK headers and libraries are not under the same |
---|
| 89 | prefix (which is unlikely). |
---|
| 90 | |
---|
| 91 | --without-glpk |
---|
[730] | 92 | |
---|
[2131] | 93 | Disable GLPK support. |
---|
[730] | 94 | |
---|
[2139] | 95 | --with-cplex[=PREFIX] |
---|
[730] | 96 | |
---|
[2139] | 97 | Enable CPLEX support (default). You should specify the prefix too |
---|
| 98 | if you installed CPLEX to some non-standard location |
---|
| 99 | (e.g. /opt/ilog/cplex75). If it is not found, CPLEX support will be |
---|
| 100 | disabled. |
---|
[730] | 101 | |
---|
[2139] | 102 | --with-cplex-includedir=DIR |
---|
[730] | 103 | |
---|
[2139] | 104 | The directory where the CPLEX header files are located. This is |
---|
| 105 | only useful when the CPLEX headers and libraries are not under the |
---|
| 106 | same prefix (e.g. /usr/local/cplex/cplex75/include). |
---|
[730] | 107 | |
---|
[2139] | 108 | --with-cplex-libdir=DIR |
---|
[730] | 109 | |
---|
[2139] | 110 | The directory where the CPLEX libraries are located. This is only |
---|
| 111 | useful when the CPLEX headers and libraries are not under the same |
---|
| 112 | prefix (e.g. |
---|
| 113 | /usr/local/cplex/cplex75/lib/i86_linux2_glibc2.2_gcc3.0/static_pic_mt). |
---|
[730] | 114 | |
---|
[2139] | 115 | --without-cplex |
---|
[730] | 116 | |
---|
[2131] | 117 | Disable CPLEX support. |
---|