CentOS 6.4安裝MySQL的過程中出現的bug

來源:互聯網
上載者:User

CentOS 6.4安裝MySQL的過程中出現的bug

在CentOS 6.4下安裝MySQL,下載一個源碼包,感覺很簡單,tar,./configure,make,make install 經典四步,弄這個也不是第一次了,但今天就是老出錯,首先是./configure中:

checking for tgetent in -ltermcap... no

checking for tgetent in -ltinfo... no

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

可是我gcc都裝了呀,於是看到網上的安裝環境,yum一大堆,然後我傻乎乎的就去安了

yum installcmake makegcc gcc-c++ libjpeg libjpeg-devel libpng \

libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc \

glibc-devel glib2 glib2-devel bzip2bzip2-devel ncurses ncurses-devel curl \

curl-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel openssl expat expat-devel \

openssl-devel nss_ldap openldap openldap-devel openldap-clients openldap-servers unixODBC-devel \


libxslt-devel libevent-devel libtool-ltdl bison libtool pcre-devel zip unzip gmp-devel gd gd-devel

費了半天勁,終於寫完了,可是我的網路yum沒有那麼多包,上面有一半是error,找了別的yum也不行,所以,第一次,失敗。

然後上網上查了一下,是缺少ncurses安裝包,然後我就:

yum list|grep ncurses

yum -y install ncurses-devel

本來以為解決了,可是誰知道我的網路yum沒有這個包,今天好悲催.......

然後我只能找tar包安裝了,於是乎

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf  ncurses-5.6.tar.gz
cd ncurses-5.6
./configure –prefix=/usr --without-ada --enable-overwrite

make
make install
然後再重新編譯Mysql進行安裝。

可是:

tic: symbol lookup error: tic: undefined symbol: _nc_check_termtype2
 ? tic could not build /usr/share/terminfo
 make[1]: *** [install.data] Error 1
 make[1]: Leaving directory `/lamp/ncurses-5.6/misc'
 make: *** [install] Error 2

還是報錯,不過這時我都麻木了,反正全是bug,也不多這一兩個,於是乎,接著查,黃天不複有心人,下載個新版本,如ncurses 5.9就可以解決。安裝方法可以完全按照經典四步就解決了用tar包不能安裝的問題。

./configure --with-shared --without-debug --without-ada --enable-overwrite

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz

--------------------------------------分割線 --------------------------------------

Ubuntu 14.04下安裝MySQL

《MySQL權威指南(原書第2版)》清晰中文掃描版 PDF

Ubuntu 14.04 LTS 安裝 LNMP Nginx\PHP5 (PHP-FPM)\MySQL

Ubuntu 14.04下搭建MySQL主從伺服器

Ubuntu 12.04 LTS 構建高可用分布式 MySQL 叢集

Ubuntu 12.04下原始碼安裝MySQL5.6以及Python-MySQLdb

MySQL-5.5.38通用二進位安裝

--------------------------------------分割線 --------------------------------------

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.