0%
在没有 root 权限的条件下安装
cmake
- 这个主要是在 linux 系统从源码安装某一个软件的教程
手动安装 cmake
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| cd cmake-3.22.0-rc1 cmake
./bootstrap
./configure --prefix=/home/jhj/software/cmake
make -j $(nproc)
make -j $(nproc) install
|
1 2
| export PATH=$HOME/software/cmake/bin:$PATH
|
手动安装 OpenSSL
1
| wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz
|
- 可以做一下校验,看文件是否损坏,如果校验码一致则没有问题
1 2 3 4 5 6 7
| wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz.sha256
cat openssl-1.1.1l.tar.gz.sha256
sha256sum openssl-1.1.1l.tar.gz
|
1 2
| tar -xf openssl-1.1.1l.tar.gz cd openssl-1.1.1l
|
1
| ./config --prefix=/home/jhj/software/openssl --openssldir=/home/jhj/software/openssl no-ssl2
|
1 2 3 4 5
| nproc
make -j $(nproc)
|
1 2 3 4 5 6
| export PATH=$HOME/software/openssl/bin:$PATH export LD_LIBRARY_PATH=$HOME/software/openssl/lib export LC_ALL="en_US.UTF-8" export LDFLAGS="-L /home/jhj/software/openssl/lib -Wl,-rpath,/home/jhj/software/openssl/lib" export OPENSSL_ROOT_DIR=$HOME/software/openssl
|
参考