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