ldconfig配置动态库so

在运行lua时遇到'lua: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC'的问题。通过查阅资料,解决方案是检查并更新动态链接库配置。可以参考ldconfig的手册页或访问http://linux.101hacks.com/unix/ldconfig/获取更多帮助。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天运行lua的时候出现了 "lua: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: PC"的错误, google了一下找到了解决的办法, cd /usr/local/lib

    mkdir temp
    mv libreadline* temp/
    ldconfig

原文如下

    error: /usr/local/lib/libreadline.so.6: undefined symbol: PC
which clearly indicates that you have a version of readline masquerading as
version 6 ... which is then used to run R but fails for incompatibility.

That is, sorry to be blunt, your fault and issue.  Remove that library (with
some care, you could first rename or move to a hidden directory) and then run
'sudo ldconfig' to update the shared library cache used by the system.

关于ldconfig, manual大致说的比较清楚了, 这里一个连接

说的也很不错  http://linux.101hacks.com/unix/ldconfig/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值