通过命令行,进入gmp源码目录,然后执行下面的命令:
./configure --prefix=/e/gmpbuild
make
make install
mkdir build
cd build
…/configure --prefix=/e/gmpbuild
make
make install
mkdir build
cd build
…/configure --prefix=/e/gmpbuild --disable-static --enable-shared
make
make install
mkdir build
cd build
…/configure --prefix=/e/gmpbuild --enable-cxx
make
make install
注:configure的参数可参考https://gmplib.org/manual/Build-Options 和执行 ./configure --help查看