安装jasper

操作步骤

  1. 执行以下命令下载jasper安装包。

    cd /path/to/jasper
    wget https://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.2.tar.gz

  2. 执行以下命令解压安装包。

    tar xf jasper-1.900.2.tar.gz
    cd jasper-1.900.2

  3. 执行以下命令生成makefile。

    CC=mpicc CXX=mpicxx FC=mpif90 ./configure --prefix=/path/to/jasper

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

    make -j
    make install

  5. 执行以下命令设置环境变量。

    export JASPER_PATH=/path/to/jasper
    export PATH=${JASPER_PATH}/bin:$PATH
    export LD_LIBRARY_PATH=${JASPER_PATH}/lib:$LD_LIBRARY_PATH
    export INCLUDE=${JASPER_PATH}/include:$INCLUDE