天天看點

編譯安裝MYSQL,遇到configure: error: No curses/termcap library found的解決方法!

安裝

mysql-5.1.48.tar.gz

cd mysql-5.1.48

./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-comment=Source --with-server-suffix=-enterprise-gpl --with-mysqld-user=mysql --without-debug --with-big-tables --with-charset=utf8 --with-collation=utf8_general_ci --with-extra-charsets=all --with-pthread --enable-static --enable-thread-safe-client --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --without-ndb-debug --with-plugins=myisam,innobase

報錯如下:

checking for tgetent in -lncursesw... no

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for tgetent in -ltinfo... no

checking for termcap functions library... configure: error: No curses/termcap library found

問題是C編譯器問題 ,解決方法:

編譯安裝MYSQL,遇到configure: error: No curses/termcap library found的解決方法!

解決方法如下:(這網友提供的辦法有問題)

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

不過他其中的幾步驟是多餘的 原因其實都是在ncurses-devel沒有引起的,

    rpm -qa ncurses-devel

檢視出 沒有安裝而導緻了一系列的問題,yum list|grep ncurses 檢視過 但是由于沒仔細看 之後base 就沒注意到install是正常的 而錯以為安裝好了 而一直用上面 ./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5的方法錯誤的引導了進去 ,看來以後要再仔細點了 呵呵

基本上的問題都在以下文章中

本文轉自 holy2009 51CTO部落格,原文連結:http://blog.51cto.com/holy2010/424226

繼續閱讀