当前位置:网站首页>解决安装oracle /usr/bin/ld: cannot find -lclntshcore的问题
解决安装oracle /usr/bin/ld: cannot find -lclntshcore的问题
2022-07-15 11:17:00 【胡八一】
问题:
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs 644
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
LD_RUN_PATH="/opt/user/lib/instantclient_19_15" x86_64-linux-gnu-gcc -shared -L/usr/local/lib -fstack-protector-strong Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/opt/user/lib/instantclient_19_15/ -Wl,-rpath,/opt/user/lib/instantclient_19_15/ -lclntsh -Wl,--no-as-needed -lclntshcore -lipc1 -lmql1 \
/usr/bin/ld: cannot find -lclntshcore
collect2: error: ld returned 1 exit status
make: *** [Makefile:524: blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
root# ln -s /oracle/base/dbhome_1/lib/libclntshcore.so.12.1 /usr/lib/
root# ls -l /usr/lib/libclntshcore.so.12.1
lrwxrwxrwx 1 root root 47 Sep 19 11:08 /usr/lib/libclntshcore.so.12.1 -> /oracle/base/dbhome_1/lib/libclntshcore.so.12.1
root#
Weird, this lib is an oracle lib..and the installer is looking for it in the wrong location. I’ll link this lib in the general lib location where it always can be found: /usr/lib.
这个库是oracle的一个库 并不是放在/usr/lib下 所以gcc找不到路径
我明白了,是gcc找不到,于是我在/usr/lib下做了软连接ln -s $ORACLE_HOME libclntshcore.so.19.1 libclntshcore.so
说白了就是保证/usr/lib下目录面有 libclntshcore.so文件

边栏推荐
- MySQL interview
- 10 minutes to customize the pedestrian analysis system, detection and tracking, behavior recognition, human attributes all in one!
- Revelation of AI application: honey and arsenic in security market
- 51 single chip microcomputer serial port baud rate (keep it and don't look everywhere)
- 卷到自己?继 Imagen 之后,推出200 亿文本生成的图像模型惊呆网友!
- Twitter vs musk: it's not that easy to leave
- 全球No.1港航人工智能AI企业中集飞瞳,港航人工智能产品成熟化标准化大规模应用,为港口大幅提效降本,提升港区效能,优化港区次序
- Reflective interview
- 【第018问 Unity中对Quaternion.AngleAxis的理解?】
- Matlab question
猜你喜欢

许式伟:Go+ 演进之路

全球No.1港口航运人工智能企业中集飞瞳,港航人工智能AI产品成熟化标准化大规模应用,先进核心技术为港口船公司大幅提效降本智能化

Iotop command (monitor disk IO status)

接口开发不用写Controller、Service、Dao、Mapper、XML、VO,全自动生成!

燕窝经济的乌云与混沌

iotop命令(监视磁盘io状况)

Matlab drawing examples

Niu Wenwen: specialized in the new era, new models and new styles are needed

#微信小程序# #uni-app# 实现提交表单或登录,需勾选同意协议,才可以进行下一步

Beijing Institute of technology - spring 2021 - Digital Logic Experiment
随机推荐
agile manifesto
Events responding to the mouse in MATLAB
Experiment 3 Course selection system
Issue 35: preparation before flutter development
[NLP] deepke, an open source knowledge extraction tool that supports low resources, long chapters and multimodality
[flag] 做一个围绕李健的,用时间轴和内容进行排序分类的网站(零基础)(持续更新)
原生JS路由实现页面跳转
毕业即失业?
Latex数学公式
3DS max: customizing shelves
[flag]马头琴
H5打开微信小程序
Issue 37: mapstate analysis
Issue 42: the so-called management team
Matlab summary
Matlab drawing examples
开源实时数仓 Apache Doris 毕业了,未来如何走得更远?
Analysis of OWT server source code (II) -- internal structure and startup process of function module
使用scroll-view实现内容列表的竖向滚动
Send your code into space and develop "the greatest work" with Huawei cloud