openssl upgrade error

openssl 想要爱你不简单

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    ➜ ~ 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)
1
2
3
4
5
6
7
➜ ~ 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

1
2
➜ ~git --version
git version 2.16.1

就会报错

1
2
3
4
➜ 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
查了很多资料都说是动态链接库问题,但是不明白到底该如何处理。

  • Post author: hainuo
  • Post link: php-opensll-upgrade-to-error
  • Copyright Notice: All articles in this blog are licensed under BY-NC-SA unless stating additionally.