Difference between revisions of "GLPK"

From CBLFS
Jump to navigationJump to search
Line 11: Line 11:
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/opt/scimath &&
+
  ./configure --prefix=/usr &&
 
  make
 
  make
  
Line 20: Line 20:
 
There are examples that are not installed automatically.  You may want to copy them out of the source tree for future use.
 
There are examples that are not installed automatically.  You may want to copy them out of the source tree for future use.
  
  install -dv /home/<you>/glpksamps &&
+
  install -dv /usr/share/doc/glpk-4.11/examples &&
  cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps
+
  install -v examples/*.{dat,mps,mpd,tsp} /usr/share/doc/glpk-4.11/examples
  
 
== Multilib ==
 
== Multilib ==
Line 29: Line 29:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/opt/scimath \
+
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
     --libdir=/opt/scimath/lib &&
+
     --libdir=/usr/lib &&
 
  make
 
  make
  
Line 41: Line 41:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/opt/scimath \
+
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
     --libdir=/opt/scimath/lib32 &&
+
     --libdir=/usr/lib32 &&
 
  make
 
  make
  
Line 53: Line 53:
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD64}" ./configure --prefix=/opt/scimath \
+
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
     --libdir=/opt/scimath/lib64 &&
+
     --libdir=/usr/lib64 &&
 
  make
 
  make
  
Line 63: Line 63:
 
There are examples that are not installed automatically.  You may want to copy them out of the source tree for future use.
 
There are examples that are not installed automatically.  You may want to copy them out of the source tree for future use.
  
  install -dv /home/<you>/glpksamps &&
+
  install -dv /usr/share/doc/glpk-4.11/examples &&
  cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps
+
  install -v examples/*.{dat,mps,mpd,tsp} /usr/share/doc/glpk-4.11/examples
  
 
== Contents ==
 
== Contents ==
  
* Installed Programs: /opt/scimath/bin/glpsol, /opt/scimath/bin/tspsol
+
* Installed Programs: /usr/bin/glpsol, /usr/bin/tspsol
* Installed Libraries: /opt/scimath/lib/libglpk.a
+
* Installed Libraries: /usr/lib/libglpk.a

Revision as of 15:38, 12 November 2006

Download Source: ftp://ftp.gnu.org/gnu/glpk/glpk-4.11.tar.gz

GLPK is the GNU Linear Programming Kit. It is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library.

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install

There are examples that are not installed automatically. You may want to copy them out of the source tree for future use.

install -dv /usr/share/doc/glpk-4.11/examples &&
install -v examples/*.{dat,mps,mpd,tsp} /usr/share/doc/glpk-4.11/examples

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --libdir=/usr/lib &&
make

Install the package:

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package:

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package:

make install

There are examples that are not installed automatically. You may want to copy them out of the source tree for future use.

install -dv /usr/share/doc/glpk-4.11/examples &&
install -v examples/*.{dat,mps,mpd,tsp} /usr/share/doc/glpk-4.11/examples

Contents

  • Installed Programs: /usr/bin/glpsol, /usr/bin/tspsol
  • Installed Libraries: /usr/lib/libglpk.a