back to index

Linux: libmpdec/libmpdec++ install instructions

Package information

Install instructions

The instructions install libmpdec and libmpdec++. If no C++ compiler is available, add --disable-cxx to the configure options.

gcc


tar xvzf mpdecimal-4.0.0.tar.gz
cd mpdecimal-4.0.0

./configure
make

# After building the library, test the build. The more thorough tests
# download the IBM tests (text files):
make check

# Alternatively, if there is no network conection, skip the IBM tests:
make check_local

make install

clang


tar xvzf mpdecimal-4.0.0.tar.gz
cd mpdecimal-4.0.0

./configure CC=clang CXX=clang++
make

# After building the library, test the build. The more thorough tests
# download the IBM tests (text files):
make check

# Alternatively, if there is no network conection, skip the IBM tests:
make check_local

make install

icc


tar xvzf mpdecimal-4.0.0.tar.gz
cd mpdecimal-4.0.0

./configure CC=icc CXX=icpc AR=xiar
make

# After building the library, test the build. The more thorough tests
# download the IBM tests (text files):
make check

# Alternatively, if there is no network conection, skip the IBM tests:
make check_local

make install

Contact:

Stefan Krah <website @ bytereef.org>