Linux简单安装Mysql+Apach+PHP+phpMyAdmin (3) |
发布时间: 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 解决办法: 解决办法: 下载安装相应软件包 一、如果你的系统是RedHat系列: yum list|grep ncurses yum -y install ncurses-devel yum install ncurses-devel
二、如果你的系统是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
本文出自:亿恩科技【www.enkj.com】 |