LINUX动态库(.SO)搜索路径(目录)设置方法
LINUX动态库(.SO)搜索路径(目录)设置方法
[root@VM_0_11_centos ld.so.conf.d]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
[root@VM_0_11_centos ld.so.conf.d]# ll -as /etc/ld.so.conf.d/
total 36
4 drwxr-xr-x. 2 root root 4096 Mar 6 21:39 .
12 drwxr-xr-x. 99 root root 12288 Mar 9 20:50 ..
4 -rw-r--r-- 1 root root 26 Aug 8 2019 bind-export-x86_64.conf
4 -rw-r--r-- 1 root root 19 Aug 9 2019 dyninst-x86_64.conf
4 -r--r--r-- 1 root root 63 Feb 5 07:07 kernel-3.10.0-1062.12.1.el7.x86_64.conf
4 -r--r--r-- 1 root root 63 Dec 6 23:53 kernel-3.10.0-1062.9.1.el7.x86_64.conf
4 -rw-r--r-- 1 root root 17 Aug 8 2019 mariadb-x86_64.conf
[root@VM_0_11_centos ld.so.conf.d]# cat mariadb-x86_64.conf
/usr/lib64/mysql
[root@VM_0_11_centos ld.so.conf.d]# cat dyninst-x86_64.conf
/usr/lib64/dyninst
编辑
/etc/ld.so.conf
[root@VM_0_11_centos bin]# openssl
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
[root@VM_0_11_centos bin]# ln -s /usr/local/openssl-1.1.1d/libssl.so.1.1 /usr/lib64/libssl.so.1.1
[root@VM_0_11_centos bin]# openssl
openssl: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
[root@VM_0_11_centos bin]# ln -s /usr/local/openssl-1.1.1d/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
[root@VM_0_11_centos bin]# openssl
OpenSSL> ^C
checking for openssl/ssl.h in /usr/local/bin/openssl... no
LibreSSL is lacking host and IP verify parameters · Issue #381 · libressl-portable/portable https://github.com/libressl-portable/portable/issues/381
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time
Failed to build these modules:
_ctypes
Following modules built successfully but were removed because they could not be imported:
_hashlib _ssl
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381
更新 编译安装 openssl版本
Ubuntu/Deepin下Python3.8出现SSL错误的解决方案_Python_lh1136863240的博客-CSDN博客 https://blog.csdn.net/lh1136863240/article/details/103197393
checking whether compiling and linking against OpenSSL works... yes
checking for X509_VERIFY_PARAM_set1_host in libssl... yes
LINUX动态库(.SO)搜索路径(目录)设置方法的更多相关文章
- Linux动态库(.so)搜索路径
主要内容: 1.Linux动态库.so搜索路径 编译目标代码时指定的动态库搜索路径: 环境变量LD_LIBRARY_PATH指定的动态库搜索路径: 配置文件/etc/ld.so.conf中指定的动态库 ...
- linux动态库默认搜索路径设置的三种方法
众所周知, Linux 动态库的默认搜索路径是 /lib 和 /usr/lib .动态库被创建后,一般都复制到这两个目录中.当程序执行时需要某动态库, 并且该动态库还未加载到内存中,则系统会自动到这两 ...
- Linux动态库的搜索路径
下面是目录结构: pengdl@localhost:~$ tree test/test/├── fun.c├── Fun.h└── t1 └── main.c 1 directory, 3 fi ...
- Linux动态库的查找路径
前两天写了一个动态库,然后试图编译到程序里面去运行,结果发现编译的时候通过gcc的-L参数来指定路径仅仅能让编译通过,运行时还是会出问题的. 比如下面这个例子: main.c是主程序,sum.c中间含 ...
- linux 动态库加载路径修改
1.在 /etc/ld.so.conf 文件中添加搜索路径,重启或者 ldconfig 生效: 2.在 /etc/ld.so.conf.d 目录下添加 *.conf 文件,其中可以添加搜索路径,重启获 ...
- linux动态库加载路径修改
1.在 /etc/ld.so.conf 文件中添加搜索路径,重启或者 ldconfig 生效: 2.在 /etc/ld.so.conf.d 目录下添加 *.conf 文件,其中可以添加搜索路径,重启获 ...
- 【转载】Linux动态库搜索路径的技巧
转自:http://soft.chinabyte.com/os/232/11488732_2.shtml 众所周知,Linux动 态库的默认搜索路径是/lib和/usr/lib.动态库被创建后,一般都 ...
- Linux动态库搜索路径的技巧
众所周知,Linux动态库的默认搜索路径是/lib和/usr/lib.动态库被创建后,一般都复制到这两个目录中.当程序执行时需要某动态库,并且该动态库还未加载到内存中,则系统会自动到这两个默认搜索路径 ...
- linux动态库加载时搜索路径
摘自http://gotowqj.iteye.com/blog/1926613 对动态库的实际应用还不太熟悉的读者可能曾经遇到过类似“error while loading shared librar ...
随机推荐
- ARP局域网断网攻击
Kali--ARP局域网攻击 什么是ARP? ARP ( Address Resolution Protocol)地址转换协议,工作在OSI模型的数据链路层,在以太网中,网络设备之间互相通信是用MAC ...
- 物联网、5G世界与大数据管理
物联网带动中国产业转型.推动社会经济发展的时代已经到来.什么是物联网?物联网又给数据管理带来了哪些挑战?面对挑战,我们有怎样的解决方案?本文中我们将一一为您揭晓. 01 物联网时代的到来 ...
- @Autowired 和@Resource区别
二者都可以用在bean的注入时,但是@Autowired是spring提供的注解,而@Resource是javax包中的. 默认情况下,@Autowired注入规则是byType,通过类型注入:当然, ...
- DX关联VS
// Windows API: #include <windows.h> // C 运行时头文件,测试可能会用到 #include <stdlib.h> //standa ...
- easyui中设置开始日期只能选择比结束日期小的日期,js代码获取日期的值
$("#start_date").datebox({ onSelect: function (beginDate) { $('#end_date').datebox().dateb ...
- 在开发板上显示英文字符和汉字--tiny6410
程序字符需要改成gb2312.否则无法正常显示中文字符. main.c代码: #include <sys/types.h> #include <sys/stat.h> #inc ...
- 01 . Go之从零实现Web框架(类似Gin)
设计一个框架 大部分时候,我们需要实现一个 Web 应用,第一反应是应该使用哪个框架.不同的框架设计理念和提供的功能有很大的差别.比如 Python 语言的 django和flask,前者大而全,后者 ...
- Java学习日报9.30
********************************** double类型精度问题 ********************************** 1 package test; 2 ...
- el-input限制只能输入数字(开发小记)
输入框中限制通常有三种处理方法 第一种:设置type属性(不推荐) 设置type属性为number,text等等,此方法输入框的后面会有不必要样式出现 <el-input type=" ...
- 每日一个linux命令2
cd命令 Linux cd命令可以说是Linux中最基本的命令语句,其他的命令语句要进行操作,都是建立在使用cd命令的基础之上. 1. 命令格式 cd [目录名] 2.命令功能 切换当前目录至dirN ...