LAMP之路

不积跬步,无以至千里!

ubuntu configure时总是报configure: error: readline library not found.

2012-10-18 一抹阳光 操作系统

在ubuntu 8.10下编译totem,configure时总是报configure: error: readline library not found.
If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn’t looking in the proper directory. Use –without-readline to disable readline support.
但通过ldconfig -p | grep readline 查看时,发现系统中已经安装了readline.
在网上搜了一下发现原因是:
You need the development libraries, not only the runtime ones. Try installing libreadline5-dev.
安装了下就ok了(sudo apt-get install libreadline5-dev).
另一个error是zlib的,同样安装一下就ok了(sudo apt-get install zlib1g-dev).