【Linux】object '/lib/libcwait.so' from /etc/ld.so.preload

  1. 云栖社区>
  2. 博客列表>
  3. 正文

【Linux】object '/lib/libcwait.so' from /etc/ld.so.preload

北在南方 2016-04-14 09:52:27 浏览1441 评论0

摘要: 在linux 4.7 上安装oracle 9i 软件所需的包的时候,遇到如下问题,执行linux 命令之后都会出现ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.

在linux 4.7 上安装oracle 9i 软件所需的包的时候,遇到如下问题,执行linux 命令之后都会出现ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
root@rac1:/home/oracle/software#rpm -ivh compat-oracle-rhel4-1.0-5.i386.rpm 
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
Preparing...                ########################################### [100%]
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
   1:compat-oracle-rhel4    ########################################### [100%]
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
mv: cannot stat `/usr/bin/gcc': No such file or directory
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
mv: cannot stat `/usr/bin/g++': No such file or directory
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
root@rac1:/home/oracle/software#ls
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
amd64_db_9204_Disk1.cpio  amd64_db_9204_Disk3.cpio        compat-oracle-rhel4-1.0-5.i386.rpm  Disk2  g++  p4198954_40_LINUX.zip  README.txt
amd64_db_9204_Disk2.cpio  compat-libcwait-2.1-1.i386.rpm  Disk1                               Disk3  gcc  README.html
root@rac1:/opt/oracle#ls
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
doc  jre  oraInventory  products
root@rac1:/opt/oracle#rm -fr doc
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
root@rac1:/opt/oracle#mv  /etc/ld.so.preload .
ERROR: ld.so: object '/lib/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
解决方法:
root@rac1:/opt/oracle#echo "" > /etc/ld.so.preload
root@t01a03053-vm1.corp-hz01.aliyun.com:/opt/oracle#ls
jre  ld.so.preload  oraInventory  products
【云栖快讯】阿里云栖开发者沙龙(Java技术专场)火热来袭!快来报名参与吧!  详情请点击

网友评论

北在南方
文章661篇 | 关注25
关注
支持MySQL、SQL Server、PostgreSQL、MongoDB、Redis等关系... 查看详情
为您提供简单高效、处理能力可弹性伸缩的计算服务,帮助您快速构建更稳定、安全的应用,提升运维效... 查看详情
阿里云总监课正式启航

阿里云总监课正式启航