- 使用PuTTY工具,以root用户登录服务器。
- 进入到JASPER源码包安装路径,下载源码包。
cd /path/to/JASPER
wget https://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.2.tar.gz -O jasper-1.900.2.tar.gz --no-check-certificate
- 执行以下命令解压JASPER安装包。
tar -zxvf jasper-1.900.2.tar.gz
- 执行以下命令,加载环境变量。
export BISHENG=/path/to/bisheng
export BISHENG_DIR=/path/to/bisheng
export BISHENG_PATH=/path/to/bisheng/bin
export BISHENG_LIB=/path/to/bisheng/lib
export BISHENG_INC=/path/to/bisheng/include
export LD_LIBRARY_PATH=/path/to/bisheng/lib:/path/to/bisheng/lib/clang/12.0.0/lib:$LD_LIBRARY_PATH
export INCLUDE=/path/to/bisheng/include:/path/to/bisheng/lib/clang/12.0.0/include$INCLUDE
export CC=clang CXX=clang++ FC=flang F77=flang F90=flang
- 执行以下命令,进入源码包安装目录。
cd jasper-1.900.2
- 执行以下命令,进行JASPER源码包安装。
./configure --prefix=/path/to/JASPER
make –j
make install