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-2.5.1.tar.gz
cd mpdecimal-2.5.1

# 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

On OpenBSD, use egcc/eg++ until this issue is resolved.


tar xvzf mpdecimal-2.5.1.tar.gz
cd mpdecimal-2.5.1

./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>