安装GMP

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 执行以下命令解压GMP安装包。

    tar -xvf gmp-6.2.0.tar.xz

  3. 执行以下命令进入解压后的目录。

    cd gmp-6.2.0

  4. 执行以下命令进行编译配置。

    ./configure --prefix=/path/to/GMP --enable-cxx

  5. 执行以下命令编译安装。

    make -j && make install