+ -
当前位置:首页 → 问答吧 → 解决redhat 下安装APACHE+MYSQL+PHP常见错误

解决redhat 下安装APACHE+MYSQL+PHP常见错误

时间:2011-07-08

来源:互联网

在安装apache+mysql+php时遇到过很多问题、、、这里总结给大家,不过解决办法的前提是安装本地源服务YUM
安装详解,参考:http://www.linuxdiyf.com/bbs/thread-204212-1-1.html
configure: error: no acceptable cc found in $PATH

yum -y install gcc-c++

configure: error: cannot find output from lex; giving up flex is not installed, install flex.

yum -y install flex

configure: error: xml2-config not found. Please check your libxml2 installation.

yum -y install libxml2-devel

configure: error: Cannot find OpenSSL's

yum -y install openssl-devel

configure: error: Please reinstall the BZip2 distribution

yum -y install bzip2-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

yum -y install curl-devel

configure: error: libjpeg.(a|so) not found.

yum -y install libjpeg-devel

configure: error: libpng.(a|so) not found.

yum -y install libpng-devel

configure: error: freetype2 not found!

yum -y install freetype-devel

configure: error: Unable to locate gmp.h

yum -y install gmp-devel

configure: error: Cannot find pspell

yum -y install aspell-devel

configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2-devel


[root@learn mysql]# bin/mysql_install_db --user=mysql
Installing MySQL system tables...
110708 13:24:56 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295
110708 13:24:56 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295
ERROR: 1004  Can't create file '/tmp/#sql612d_1_0.frm' (errno: 13)
110708 13:24:56 [ERROR] Aborting

110708 13:24:56 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

遇到这个错误的时候,只需要chmod 777  /tmp 就OK了

结果:[root@learn mysql]# bin/mysql_install_db --user=mysql
Installing MySQL system tables...
110708 13:30:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295
110708 13:30:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295
OK

希望这些可以帮助那些有志之士及时的解决问题,这些问题有困扰我一天啊、、

作者: 天真花语   发布时间: 2011-07-08

顶起!!!

作者: D调漫步   发布时间: 2011-07-25

牛x~~~~~~~~~~~~~

作者: siasleo   发布时间: 2011-07-25