今天运行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/