安装MPICH

操作步骤

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

    tar zxvf mpich2-1.5.tar.gz

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

    cd mpich2-1.5

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

    ./configure --prefix=/path/to/mpich --enable-shared=yes --build=aarch64-unknown-linux-gnu
    make -j
    make -j install

  5. 执行以下命令加载环境变量。

    export PATH=/path/to/mpich/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/mpich/lib:$LD_LIBRARY_PATH