欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

LAMP环境安装常见问题

程序员文章站 2024-01-06 10:55:16
...

在安装libmcrypt的时候报出了个gcc的错误, checking whether make sets $(MAKE)… (cached) yes checking for g++… no checking for c++… no checking for gpp… no checking for aCC… no checking for CC… no checking for cxx… no checking for cc++

在安装libmcrypt的时候报出了个gcc的错误,
checking whether make sets $(MAKE)… (cached) yes
checking for g++… no
checking for c++… no
checking for gpp… no
checking for aCC… no

checking for CC… no
checking for cxx… no
checking for cc++… no
checking for cl… no
checking for FCC… no
checking for KCC… no
checking for RCC… no
checking for xlC_r… no
checking for xlC… no
checking for C++ compiler default output file name… configure: error: C++ compiler cannot create executables
解决方法:编译前准备
安装编译器gcc
1. 最小化安装,没有安装编译器
yum install gcc
2. gcc-c++
如果不安装,在编译mysql的时候会出现【exec: g++: not found】错误
yum install gcc-c++
这句话必须
另:
安装PHP出现错误:
编译出现的错误如下:
Running FastCGI Process Manager checks
checking for php-fpm config file path… $prefix/etc/php-fpm.conf
checking for php-fpm log file path… $prefix/logs/php-fpm.log
checking for php-fpm pid file path… $prefix/logs/php-fpm.pid
checking for XML configuration
checking for xml2-config… no
checking for xml-config… no
configure: error: XML configuration could not be found
解决办法:
yum -y install libxml2 libxml2-devel
其他缺少的:
php-5.2.9]# yum install mcrypt libmcrypt mhash libmhash libxml2-devel openssl-devel bzip2-devel curl-devel libjpeg-devel libpng-devel gmp-devel mysql-devel aspell-devel zlib zlib-devel
具体错误类型:
configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2-devel
configure: error: Cannot find OpenSSL’s
yum install openssl-devel
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
yum install curl-devel
configure: error: libjpeg.(a|so) not found
yum install libjpeg-devel
configure: error: libpng.(a|so) not found.
yum install libpng-devel
configure: error: libXpm.(a|so) not found.
yum install libXpm-devel
configure: error: freetype.h not found.
yum install freetype-devel
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
yum install libc-client-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt-devel
configure: error: Please reinstall libmhash – I cannot find mhash.h
yum install mhash-devel
configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
yum install mysql-devel
configure: error: Please reinstall ming distribution. libming.(a|so) not found
- temp remove the config for ‘–with-ming=/opt/ming/’
configure: error: Cannot find pspell
yum install pspell-devel
configure: error: cannot find mm library
Download from http://www.ossp.org/pkg/lib/mm/
wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz
Extract it: tar -zxvf mm-1.4.2.tar.gz
./configure
make
make install
configure: error: Cannot find libtidy
yum install libtidy-devel
yum install libtidy
change path at configure: ‘–with-tidy=/usr’
configure: error: not found. Please reinstall the expat distribution.
yum install expat-devel
configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
yum install libxslt-devel
*Tips: To uninstall, just enter:
yum remove {package-name}
configure: error: Cannot find ldap.h
2012-07-09 admin
Leave a comment Go to comments
configure: error: Cannot find ldap.h :
yum install openldap
yum install openldap-devel

未完待续…..

  • 本文固定链接: http://www.linuxyan.com/linux-service/149.html
  • 转载请注明: root 于 ㄨ销声匿迹、Linux 发表