红联Linux门户
Linux帮助

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

发布时间:2011-07-08 14:15:24来源:红联作者:天真花语
在安装apache+mysql+php时遇到过很多问题、、、这里总结给大家,不过解决办法的前提是安装本地源服务YUM
[color=Red]安装详解,参考: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. [/color]

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

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

共有 3 条评论

  1. kbriver520 于 2012-10-29 16:51:10发表:

    Good

  2. siasleo 于 2011-07-25 16:43:41发表:

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

  3. D调漫步 于 2011-07-25 14:51:12发表:

    顶起!!!