解决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
希望这些可以帮助那些有志之士及时的解决问题,这些问题有困扰我一天啊、、
安装详解,参考: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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28