Solutions to some typical errors during php compilation in CentOS

Source: Internet
Author: User

Solutions to some typical errors during php compilation in CentOS

Yum install necessary tools (which can solve basic problems encountered during compilation ):

yum-yinstallgccgcc-c++makecmakeautomakeautoconfkernel-develncurses-devellibxml2-developenssl-develcurl-devellibjpeg-devellibpng-develpcre-devellibtool-libsfreetype-develgdzlib-develfilebisonpatchmlocateflexdiffutilsreadline-develglibc-develglib2-develbzip2-develgettext-devellibcap-devellibmcrypt-developenldapopenldap-devellibxslt-devel


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

configure:error:CannotfindOpenSSL’s
yuminstallopenssl-develconfigure:error:Pleasereinstallthelibcurldistribution-easy.hshouldbein/include/curl/
configure:error:libjpeg.(a|so)notfound
configure:error:libpng.(a|so)notfound.
yuminstalllibpng-develconfigure:error:libXpm.(a|so)notfound.
configure:error:freetype.hnotfound.
yuminstallfreetype-devel
configure:error:utf8_mime2text()hasnewsignature,butU8T_CANONICALismissing.Thisshouldnothappen.Checkconfig.logforadditionalinformation.
yuminstalllibc-client-devel
configure:error:mcrypt.hnotfound.Pleasereinstalllibmcrypt.
yuminstalllibmcrypt-devel
configure:error:Pleasereinstalllibmhash–Icannotfindmhash.h
yuminstallmhash-devel
configure:error:CannotfindMySQLheaderfilesunder/usr.NotethattheMySQLclientlibraryisnotbundledanymore!
yuminstallmysql-devel
configure:error:Pleasereinstallmingdistribution.libming.(a|so)notfound-tempremovetheconfigfor‘–with-ming=/opt/ming/’configure:error:Cannotfindpspell
yuminstallpspell-devel
configure:error:cannotfindmmlibraryDownloadfromhttp://www.ossp.org/pkg/lib/mm/
 
 
  1. Wget ftp://ftp.ossp.org/pkg/lib/mm/mm-1.4.2.tar.gz

  2. Tar-zxvf mm-1.4.2.tar.gz

  3. ./Configure

  4. Make

  5. Make install


Configure: error: Cannot find libtidy

 
 
  1. Yum install libtidy-devel

  2. Yum install libtidy


Change path at configure: '-with-tidy =/usr' configure: error: not found. Please reinstall the expat distribution.

yuminstallexpat-devel
configure:error:xslt-confignotfound.Pleasereinstallthelibxslt>=1.1.0distribution
yuminstalllibxslt-devel*Tips:Touninstall,justenter:yumremove{package-name}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.