> php教程 > php手册 > LAMP环境安装常见问题

LAMP环境安装常见问题

WBOY
풀어 주다: 2016-06-06 20:07:30
원래의
1035명이 탐색했습니다.

在安装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 发表
관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 추천
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿