Linux
共 2 篇文章
./config常见错误和解决
sudo ./configure --prefix=/usr 之后出现一下错误: checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. 解决办法: sudo aptitude install build-essential (2) checking for X... configure: error: Can't find X includes…
2012-01-18 14:22 · Linux
Linux 加载共享库
=========================================================================================== Linux 运行的时候,是如何管理共享库(*.so)的?在 Linux 下面,共享库的寻找和加载是由 /lib/ld.so 实现的。 ld.so 在标准路经(/lib, /usr/lib) 中寻找应用程序用到的共享库。 但是,如果需要用到的共享库在非标准路经,ld.so 怎么找到它呢? 目前,Linux 通用的做法是将非标准路经加入 /etc/ld.so.conf,然后运行 ldconfig 生成 /etc/l…
2012-01-18 12:34 · Linux