Linux——error while loading shared libraries 的解决方法

 
数据库:oracle10g
OS:red hat as 4
 
oracle10g装得很顺利,
然后装一个rlwrap解决上下键的问题,
可是运行后,老是出现
 
rlwrap: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
 
找了一大帮资料,最后终于搞定
 
解决方法:
   把libreadline.so.5所在lib位置加入到/etc/ld.so.conf文件当中
  只要在/etc/ld.so.conf中加入/usr/local/lib这一行,
  一般都可以解決此问题,不仅仅是对于libreadline.so.5,大部
  分的so都存在这/usr/local/lib这个目录里面
  
  最后将/etc/ld.so.conf保存后,还要执行ldconfig 才会使更改生效
 
怎么样,问题解决了吧。 
 
原文地址:https://www.cnblogs.com/heymonkey/p/13027171.html