GLPK: Difference between revisions
From CBLFS
Jump to navigationJump to search
Weibullguy (talk | contribs) Added documentation. |
No edit summary |
||
| Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
| ftp://ftp.gnu.org/gnu/glpk/glpk- | | ftp://ftp.gnu.org/gnu/glpk/glpk-{{GLPK-Version}}.tar.gz | ||
|} | |} | ||
| Line 62: | Line 62: | ||
Install the postscript documentation for GLPK: | Install the postscript documentation for GLPK: | ||
install -d -m755 -v /usr/share/doc/glpk- | install -d -m755 -v /usr/share/doc/glpk-{{GLPK-Version}} && | ||
cp -v doc/*.ps /usr/share/doc/glpk- | cp -v doc/*.ps /usr/share/doc/glpk-{{GLPK-Version}} | ||
There are examples that are not installed automatically. You may want to copy them out of the source tree for future use and reference. | There are examples that are not installed automatically. You may want to copy them out of the source tree for future use and reference. | ||
install -d -m755 -v /usr/share/doc/glpk- | install -d -m755 -v /usr/share/doc/glpk-{{GLPK-Version}}/examples && | ||
install -v examples/*.{dat,mps,mod,tsp} /usr/share/doc/glpk- | install -v examples/*.{dat,mps,mod,tsp} /usr/share/doc/glpk-{{GLPK-Version}}/examples | ||
== Contents == | == Contents == | ||
Revision as of 14:31, 17 December 2006
| Download Source: | ftp://ftp.gnu.org/gnu/glpk/glpk-4.28.tar.gz |
|---|
Introduction to GLPK
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
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
Documentation
Install the postscript documentation for GLPK:
install -d -m755 -v /usr/share/doc/glpk-4.28 && cp -v doc/*.ps /usr/share/doc/glpk-4.28
There are examples that are not installed automatically. You may want to copy them out of the source tree for future use and reference.
install -d -m755 -v /usr/share/doc/glpk-4.28/examples &&
install -v examples/*.{dat,mps,mod,tsp} /usr/share/doc/glpk-4.28/examples
Contents
- Installed Programs: /usr/bin/glpsol, /usr/bin/tspsol
- Installed Libraries: /usr/lib/libglpk.a