GLPK: Difference between revisions

From CBLFS
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 11: Line 11:
Compile the package:
Compile the package:


    ./configure --prefix=/opt/scimath &&
./configure --prefix=/opt/scimath &&
    make
make


Install the package:
Install the package:


    make install
make install


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 /home/<you>/glpksamps &&
    cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps
cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps


== Multilib ==
== Multilib ==
Line 29: Line 29:
Compile the package:
Compile the package:


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


Install the package:
Install the package:


    make install
make install


=== N32 ===
=== N32 ===


Compile the package:
Compile the package:
CC="gcc ${BUILDN32}" ./configure --prefix=/opt/scimath \
    --libdir=/opt/scimath/lib32 &&
make


Install the package:
Install the package:
make install


=== 64Bit ===
=== 64Bit ===
Line 46: Line 53:
Compile the package:
Compile the package:


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


Install the package:
Install the package:


    make install
make install


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 /home/<you>/glpksamps &&
    cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps
cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps


== Contents ==
== Contents ==

Revision as of 14:18, 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=/opt/scimath &&
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 /home/<you>/glpksamps &&
cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps

Multilib

32Bit

Compile the package:

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

Install the package:

make install

N32

Compile the package:

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

Install the package:

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/opt/scimath \
    --libdir=/opt/scimath/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 /home/<you>/glpksamps &&
cp -v examples/*.{dat,mps,mpd,tsp} /home/<you>/glpksamps

Contents

  • Installed Programs: /opt/scimath/bin/glpsol, /opt/scimath/bin/tspsol
  • Installed Libraries: /opt/scimath/lib/libglpk.a
Retrieved from "?title=GLPK&oldid=4001"