CentOS 5 64bit 编译安装MySQL报错

时间:2022-10-22 04:41:32

报错情况:

 

在执行./configure时出现configure: error: No curses/termcap library found

解决方法:

./configure时加上参数--with-named-curseslibs=/usr/lib/libncursesw.so.5

 

./configure再报错:

mysql /usr/lib/libncursesw.so.5: could not read symbols: File in wrong format

 

原来的编译选项为

./configure  --with-named-curses-curseslibs=/usr/lib/libncursesw.so.5  

 

修改为

./configure  --with-named-curses-curseslibs=/usr/lib64/libncursesw.so.5