Linux簡單安裝Mysql+Apach+PHP+phpMyAdmin (3) |
發(fā)布時(shí)間: 2012/7/18 19:21:53 |
r; COLOR: purple; FONT-SIZE: 12pt" lang=EN-US>make make install cd ../ /bin/cp support-files/my-small.cnf /etc/my.cnf mkdir -p /usr/local/mysql/data /usr/local/mysql/bin/mysql_install_db --user=mysql chgrp -R mysql /usr/local/mysql cp support-files/mysql.server /usr/local/mysql/bin/ chmod 700 /usr/local/mysql/bin/mysql.server /usr/local/mysql/bin/mysql.server start echo "export PATH=$PATH:/usr/local/mysql/bin/" >>/etc/profile source /etc/profile cp support-files/mysql.server /etc/init.d/mysqld chmod 755 /etc/init.d/mysqld chkconfig --add mysqld service mysqld restart mysql -uroot -p #-----------------------------------------------# FAQ: checking for tgetent in -ltinfo... no checking for termcap functions library... configure: error: No curses/termcap library found 解決辦法: 解決辦法: 下載安裝相應(yīng)軟件包 一、如果你的系統(tǒng)是RedHat系列: yum list|grep ncurses yum -y install ncurses-devel yum install ncurses-devel
二、如果你的系統(tǒng)是Ubuntu或Debian: apt-cache search ncurses apt-get install libncurses5-dev
待安裝completed!之后,再./configure,順利通過,然后make && make install,成功安裝,一切OK!~~~
#===============================================# 三、安裝php (php-5.1.6.tar.bz2) #######libiconv庫########################### tar -zxvf libiconv-1.10.tar.tar cd libiconv-1.10 ./configure --prefix=/usr/local/libiconv make make install cd ../ ########################################### tar -zxvf php-5.2.14.tar.gz
本文出自:億恩科技【1tcdy.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |