Compile and install GNU MP Bignum Library on Mac OS X Yosemite








  • Make sure you have xcode installed.
  • Excute the following commands to download, compile and install gmp 6.0.0 into /usr/local.
    cd /tmp; wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2; tar jxvf gmp-6.0.0a.tar.bz2; cd gmp-6.0.0
    
    ./configure --prefix=/usr/local
    
    make
    
    make check
    
    sudo make install
        
  • To check where the files are installed, run
    find /usr/local | grep gmp
    and you should see something like below:
    /usr/local/include/gmp.h
    /usr/local/include/gmpxx.h
    /usr/local/lib/libgmp.10.dylib
    /usr/local/lib/libgmp.a
    /usr/local/lib/libgmp.dylib
    /usr/local/lib/libgmp.la
    /usr/local/lib/libgmpxx.4.dylib
    /usr/local/lib/libgmpxx.a
    /usr/local/lib/libgmpxx.dylib
    /usr/local/lib/libgmpxx.la
    /usr/local/share/info/gmp.info
    /usr/local/share/info/gmp.info-1
    /usr/local/share/info/gmp.info-2

see also




No comments:

Post a Comment