back to index

BSD: 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

# OpenBSD: CC=egcc CXX=eg++
./configure CC=gcc CXX=g++
gmake

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

# If there is no network conection, skip the IBM tests:
gmake check_local

gmake install

clang


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

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

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

# If there is no network conection, skip the IBM tests:
gmake check_local

gmake install

Contact:

Stefan Krah <website @ bytereef.org>