解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file.....
2017-12-04 15:54
666 查看
由于没有superuser权限,在安装gmssl的时候,我选择安装在本地指定文件夹下,编译完,当我调用build/bin/gmssl的时候报标题中的错误,显示找不到shared libraries:libssl.so.1.1.
其实题中的错误也就是找不到动态链接库。Linux提供了一个设置动态链接库的方法:
只需要将编译生成的./lib 文件夹添加进LD_LIBRARY_PATH 环境变量即可。
以csh为例:
setenv LD_LIBRARY_PATH
absolute_path/lib:$LD_LIBRARY_PATH
注:LD_LIBRARY_PATH是Linux环境变量名,该环境变量主要用于指定查找共享库(动态链接库)时除了默认路径之外的其他路径。
其实题中的错误也就是找不到动态链接库。Linux提供了一个设置动态链接库的方法:
只需要将编译生成的./lib 文件夹添加进LD_LIBRARY_PATH 环境变量即可。
以csh为例:
setenv LD_LIBRARY_PATH
absolute_path/lib:$LD_LIBRARY_PATH
注:LD_LIBRARY_PATH是Linux环境变量名,该环境变量主要用于指定查找共享库(动态链接库)时除了默认路径之外的其他路径。
相关文章推荐
- 解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory错误
- 解决openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No s
- Atlas系列一:【已解决】error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
- 解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
- error while loading shared libraries: libnet.so.9: cannot open shared object file: No such **解决方法
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 编译Gmssl出现错误 error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No
- 详细说明如何解决error while loading shared libraries: libGL.so.1: cannot open shared object file……
- 解决error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No su
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- [RK_2014_0920]ubuntu下,使用ldconfig解决:error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- memcached安装报错 error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory解决
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file