openssl 1.0.2n安装后出错

问答中心分类: Linuxopenssl 1.0.2n安装后出错
hainuo 提问 3周 前
➜ ~ ldd /usr/bin/openssl
/usr/bin/openssl: /usr/local/openssl/lib/libssl.so.1.0.0: no version information # The file bash.bashrc already sets the default PS1.
available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
/usr/bin/openssl: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/openssl)
linux-vdso.so.1 => (0x00007ffd51d89000)
libssl.so.1.0.0 => /usr/local/openssl/lib/libssl.so.1.0.0 (0x00007f94b8606000)
libcrypto.so.1.0.0 => /usr/local/openssl/lib/libcrypto.so.1.0.0 (0x00007f94b81ab000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f94b7de1000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f94b7bdd000)
/lib64/ld-linux-x86-64.so.2 (0x00007f94b8879000)
➜ ~ ldd /usr/local/openssl/bin/openssl
linux-vdso.so.1 => (0x00007ffcb3795000)
libssl.so.1.0.0 => /usr/local/openssl/lib/libssl.so.1.0.0 (0x00007f1d69cd2000)
libcrypto.so.1.0.0 => /usr/local/openssl/lib/libcrypto.so.1.0.0 (0x00007f1d69877000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1d694ad000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1d692a9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1d69f45000)

两个版本openssl 第一个为系统自带的 第二个为oneinstack编译后的
 
直接使用oneinstack自带的看不出问题来,但是当使用git ssh等服务时就有些问题了,我在使用git版本为ppa 

➜ ~git --version
git version 2.16.1

就会报错

➜ agent git:(master) ✗ git pull
/usr/bin/ssh: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/ssh)
/usr/bin/ssh: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/ssh)
Already up to date.

而在php中使用命令行调用程序时,则直接不执行了shell_exec(‘git pull’) 总是返回NULL
查了很多资料都说是动态链接库问题,但是不明白到底该如何处理。

5 问题
zhongshenkaigua 回答 3周 前

同问
LNMP 镜像v1.6正常使用,使用v1.7镜像出现异常
laravel5.5 php>=7 无法访问
运行composer有提示

#composer
/usr/bin/php: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/php)
/usr/bin/php: /usr/local/openssl/lib/libcrypto.so.1.0.0: no version information available (required by /usr/bin/php)
/usr/bin/php: /usr/local/openssl/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/php)
/usr/bin/php: /usr/local/openssl/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/php)
/usr/bin/php: /usr/local/openssl/lib/libssl.so.1.0.0: no version information available (required by /usr/bin/php)

hainuo 回答 3周 前

我看到有建议是remove掉现在的openssl 重新config make

oneinstack 回答 3周 前

警告,可忽略

hainuo 回答 3周 前

关键点是在php中没法用啊

oneinstack 回答 3周 前

/usr/bin/php这个是什么路径?