New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Comments
Output
# WARNING: curl extension might be required for fetching data.
===> phpbrew will now build 7.1.3
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 1306085cf74ba682dbcbfb4dff67b650
===> Distribution file was successfully extracted, skipping...
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/home/max/.phpbrew/build/php-7.1.3' --quiet 'clean'
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Found existing build.log, renaming it to /home/max/.phpbrew/build/php-7.1.3/build.log.1492332124
===> Configuring 7.1.3...
Use tail command to see what's going on:
$ tail -F /home/max/.phpbrew/build/php-7.1.3/build.log
Error: Configure failed:
The last 5 lines in the log file:
checking whether to enable ctype functions... yes
checking for cURL support... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Please checkout the build log file for more details:
tail /home/max/.phpbrew/build/php-7.1.3/build.log
Expected Result
php-7.1.3 installed
Command
phpbrew install php-7.1.3 +dbs +mb +default
Build Log
https://gist.github.com/MaxHogervorst/1108ae9ce1a4d4a39d1f8bdd29dbb59e
Platform
OS:
Ubuntu 17.04
Running PHP: 7.1.0
Installing PHP: 7.1.3
This happens with anyversion i try
i’ve tried installing sudo apt-get install libcurl4-gnutls-dev and all the other versions of libcurl4
I was getting the same issue after updating to Ubuntu 17.04. Looks like curl is located now in /usr/include/x86_64-linux-gnu/curl
. As a temporary solution I symlinked the file:
cd /usr/include
sudo ln -s x86_64-linux-gnu/curl
NiceBruce, cidosx, alexslipknot, ivo-wang, calete, Xunnamius, popovserhii, T1MOXA, and Lincolnbiancard reacted with hooray emoji
minhajme, wioxjk, cidosx, alexslipknot, fipo, ivo-wang, Xunnamius, nikitasius, icyrizard, golddream-y, and 8 more reacted with heart emoji
Danack and Lincolnbiancard reacted with rocket emoji
workaround -> uninstall all libcurl libs like libcurl4-gnutls-dev
phpbrew install php-7.1.3 +dbs +mb +default
and then install libcurl again
Fix
- cd
/usr/local/include
sudo ln -s /usr/include/x86_64-linux-gnu/curl curl
sudo apt-get install libcurl4-gnutls-dev
randy-ran and secaliskan reacted with laugh emoji
rohankhudedev, adorey, Sryther, MwumLi, aipacommander, fiskolini, chriscohoat, kizzx2, ivo-wang, uphlewis, and 5 more reacted with hooray emoji
danielmaier42 reacted with rocket emoji
You can include the curl path with +curl=/path/to/libcurl/installation
The following has solved the problem for me on OSX after installing curl
with brew
phpbrew install 7.1.7 +curl=/usr/local/opt/curl
#74125 is fixed in PHP 7.2. Anyone wants to verify the fix?
@timucingelici’s workaround didn’t work for me on Ubuntu 17.10:
$ phpbrew install 5.4.45 +curl=/usr/include/x86_64-linux-gnu/curl
…
Error: Configure failed:
The last 5 lines in the log file:
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
$ ls -l /usr/include/x86_64-linux-gnu/curl/easy.h
-rw-r--r-- 1 root root 3.4K nov 28 10:59 /usr/include/x86_64-linux-gnu/curl/easy.h
First, I just want to say, I’m still kinda new here as where I’m sure most of you have been here much longer, but the more i use GitHub to fill in the gaps, the more I appreciate it. As it was pointed out here to us… Canonical — pulled a fast one on us when they moved the Curl Directory. Thank you Oxicode for post commented on Jun 21, 2017 — your symbolic link got me past the Curl Hurtle
Solved:
sudo apt-get install libcurl4-openssl-dev
cs-mahmoud-khateeb, zamnuts, mhornbacher, astrieanna, OnyekaIjeh, and rfay reacted with thumbs down emoji
ichhim reacted with hooray emoji
On Ubuntu bionic 18.04 LTS, install php 5.6 I got the following error:
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
To fix it, I installed libcurl4-openssl-dev
and symlinked the directory that contains curl headers:
/usr/local/include$ sudo ln -s /usr/include/x86_64-linux-gnu/curl/
Then I installed php 5.6 with the following command:
phpbrew install 5.6 +curl
Fix
- cd
/usr/local/include
sudo ln -s /usr/include/x86_64-linux-gnu/curl curl
sudo apt-get install libcurl4-gnutls-dev
nice ,you help me solve the same problem.
I think several of these «solutions» solve this for newer PHP versions, but not for older PHP versions being built on reasonably recent Debian/Ubuntu. For example, none of them seem to solve the problem to allow building php5.4 on Debian Stretch.
rfay
mentioned this issue
Jul 29, 2019
I my case (MacOS Mojave), I had to use this to work with php 5.6.40:
phpbrew install --jobs=$(sysctl -n hw.ncpu) 5.6 +default+mysql +iconv="$(brew --prefix libiconv)" +bz2="$(brew --prefix bzip2)" +zlib="$(brew --prefix zlib)" +curl="$(brew --prefix curl)"
phpbrew install --jobs=$(sysctl -n hw.ncpu) 5.6 +default+mysql +iconv="$(brew --prefix libiconv)" +bz2="$(brew --prefix bzip2)" +zlib="$(brew --prefix zlib)" +curl="$(brew --prefix curl)"
@codeasashu Exception: Variant «default+mysql» is not defined
cbleek
added a commit
to yawik/Solr
that referenced
this issue
Sep 17, 2020
Fix
1. cd `/usr/local/include` `sudo ln -s /usr/include/x86_64-linux-gnu/curl curl` 2. `sudo apt-get install libcurl4-gnutls-dev`
this work for me on ubuntu 18.04 LTS
Содержание
- linux-notes.org
- Ошибки при компиляции PHP на CentOS x64
- Centos
- php:7.0-fpm curl #323
- Comments
- easy.h should be in /include/curl/ #861
- Comments
- Output
- Expected Result
- Command
- Build Log
- Platform
- Ошибки компилирования в РНР
linux-notes.org
Ошибки при компиляции PHP на CentOS x64
В данной теме я расскажу с какими ошибками при компиляции PHP на CentOS x64 можно столкнуться. Так же приведу готовые решения как решить ту или иную проблему.
configure: error: xml2-config not found. Please check your libxml2 installation.
configure: error: Cannot find OpenSSL’s
configure: error: Could not find pcre.h in /usr/local
configure: error: Could not find pcre.h in /usr/local
«—with-pcre-regex=/usr/include»
configure: error: Could not find libpcre.(a|so) in /usr/include
«—with-pcre-regex=/usr»
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
configure: error: libjpeg.(a|so) not found.
configure: error: libpng.(a|so) not found.
configure: error: freetype.h not found.
configure: error: Please reinstall the iconv library.
«—with-iconv»
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
configure: error: Please reinstall libmhash – I cannot find mhash.h
Note that the MySQL client library is not bundled anymore!
configure: error: Please reinstall the BZip2 distribution
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
DISABLE IMAP
configure: error: Cannot find pspell
configure: error: Cannot find libtidy
error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
collect2: ld returned 1 exit status
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
With these build options a libphp5.so is not created and so Apache cannot use PHP.
On my CentOS 5.8 build I had to add the following configuration line to get that file created.
./configure –with-apxs2=/usr/sbin/apxs
configure: error: snmp.h not found. Check your SNMP installation.
checking for curl_multi_strerror in -lcurl… yes
checking for QDBM support… no
checking for GDBM support… no
checking for NDBM support… no
configure: error: DBA: Could not find necessary header file(s).
Для тех кто хочет быстро исправить все проблемы, попробуйте запустить так:
Источник
Centos
В данной теме я расскажу с какими ошибками при компиляции PHP на CentOS x64 можно столкнуться. Так же приведу готовые решения как решить ту или иную проблему.
configure: error: xml2-config not found. Please check your libxml2 installation.
configure: error: Cannot find OpenSSL’s
configure: error: Could not find pcre.h in /usr/local
configure: error: Could not find pcre.h in /usr/local
«—with-pcre-regex=/usr/include»
configure: error: Could not find libpcre.(a|so) in /usr/include
«—with-pcre-regex=/usr»
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
configure: error: libjpeg.(a|so) not found.
configure: error: libpng.(a|so) not found.
configure: error: freetype.h not found.
configure: error: Please reinstall the iconv library.
«—with-iconv»
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
configure: error: Please reinstall libmhash – I cannot find mhash.h
Note that the MySQL client library is not bundled anymore!
configure: error: Please reinstall the BZip2 distribution
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
DISABLE IMAP
configure: error: Cannot find pspell
configure: error: Cannot find libtidy
error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
collect2: ld returned 1 exit status
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
With these build options a libphp5.so is not created and so Apache cannot use PHP .
On my CentOS 5.8 build I had to add the following configuration line to get that file created.
./configure –with-apxs2=/usr/sbin/apxs
configure: error: snmp.h not found. Check your SNMP installation.
checking for curl_multi_strerror in -lcurl… yes
checking for QDBM support… no
checking for GDBM support… no
checking for NDBM support… no
configure: error: DBA : Could not find necessary header file(s).
Источник
php:7.0-fpm curl #323
php:7.0-fpm
With RUN docker-php-ext-install curl in my Dockerfile I get following error
configure: error: Please reinstall the libcurl distribution —
easy.h should be in /include/curl/
I tried to fix it by adding RUN apt-get install -y libcurl3 but that didn’t work.
Step 6 : RUN docker-php-ext-install curl
—> Running in 2366eeb49d53
- cd /usr/src/php/ext/curl
- phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012 - ./configure
checking for grep that handles long lines and -e. /bin/grep
checking for egrep. /bin/grep -E
checking for a sed that does not truncate output. /bin/sed
checking for cc. cc
checking whether the C compiler works. yes
checking for C compiler default output file name. a.out
checking for suffix of executables.
checking whether we are cross compiling. no
checking for suffix of object files. o
checking whether we are using the GNU C compiler. yes
checking whether cc accepts -g. yes
checking for cc option to accept ISO C89. none needed
checking how to run the C preprocessor. cc -E
checking for icc. no
checking for suncc. no
checking whether cc understands -c and -o together. yes
checking for system library directory. lib
checking if compiler supports -R. no
checking if compiler supports -Wl,-rpath. yes
checking build system type. x86_64-unknown-linux-gnu
checking host system type. x86_64-unknown-linux-gnu
checking target system type. x86_64-unknown-linux-gnu
checking for PHP prefix. /usr/local
checking for PHP includes. -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory. /usr/local/lib/php/extensions/no-debug-non-zts-20151012
checking for PHP installed headers prefix. /usr/local/include/php
checking if debug is enabled. no
checking if zts is enabled. no
checking for re2c. re2c
checking for re2c version. 0.13.5 (ok)
checking for gawk. no
checking for nawk. nawk
checking if nawk is broken. no
checking for cURL support. yes, shared
checking for cURL in default path. not found
configure: error: Please reinstall the libcurl distribution —
easy.h should be in /include/curl/
ERROR: Service ‘php’ failed to build: The command ‘/bin/sh -c docker-php-ext-install curl’ returned a non-zero code: 1
The text was updated successfully, but these errors were encountered:
Источник
easy.h should be in /include/curl/ #861
Output
Expected Result
Command
phpbrew install php-7.1.3 +dbs +mb +default
Build Log
Platform
Running PHP: 7.1.0
Installing PHP: 7.1.3
This happens with anyversion i try
i’ve tried installing sudo apt-get install libcurl4-gnutls-dev and all the other versions of libcurl4
The text was updated successfully, but these errors were encountered:
I was getting the same issue after updating to Ubuntu 17.04. Looks like curl is located now in /usr/include/x86_64-linux-gnu/curl . As a temporary solution I symlinked the file:
workaround -> uninstall all libcurl libs like libcurl4-gnutls-dev
phpbrew install php-7.1.3 +dbs +mb +default
and then install libcurl again
Looks like the proper place to fix it is PHP itself: https://bugs.php.net/bug.php?id=74125.
- cd /usr/local/include sudo ln -s /usr/include/x86_64-linux-gnu/curl curl
- sudo apt-get install libcurl4-gnutls-dev
You can include the curl path with +curl=/path/to/libcurl/installation
The following has solved the problem for me on OSX after installing curl with brew
phpbrew install 7.1.7 +curl=/usr/local/opt/curl
#74125 is fixed in PHP 7.2. Anyone wants to verify the fix?
@timucingelici’s workaround didn’t work for me on Ubuntu 17.10:
First, I just want to say, I’m still kinda new here as where I’m sure most of you have been here much longer, but the more i use GitHub to fill in the gaps, the more I appreciate it. As it was pointed out here to us. Canonical — pulled a fast one on us when they moved the Curl Directory. Thank you Oxicode for post commented on Jun 21, 2017 — your symbolic link got me past the Curl Hurtle
Solved:
sudo apt-get install libcurl4-openssl-dev
Didn’t work for me
On Ubuntu bionic 18.04 LTS, install php 5.6 I got the following error:
To fix it, I installed libcurl4-openssl-dev and symlinked the directory that contains curl headers:
Then I installed php 5.6 with the following command:
- cd /usr/local/include sudo ln -s /usr/include/x86_64-linux-gnu/curl curl
- sudo apt-get install libcurl4-gnutls-dev
nice ,you help me solve the same problem.
I think several of these «solutions» solve this for newer PHP versions, but not for older PHP versions being built on reasonably recent Debian/Ubuntu. For example, none of them seem to solve the problem to allow building php5.4 on Debian Stretch.
Источник
Ошибки компилирования в РНР
Configure: error: xml2-config not found. Please check your libxml2 installation.
yum install libxml2 libxml2-devel
Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s
yum install openssl openssl-devel
Configure: error: Please reinstall the BZip2 distribution
yum install bzip2 bzip2-devel
Configure: error: Please reinstall the libcurl distribution —
easy.h should be in /include/curl/
yum install curl curl-devel
Configure: error: libjpeg.(also) not found.
yum install libjpeg libjpeg-devel
Configure: error: libpng.(also) not found.
yum install libpng libpng-devel
Configure: error: freetype.h not found.
yum install freetype-devel
Configure: error: Unable to locate gmp.h
yum install gmp-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 the ncurses distribution
yum install ncurses ncurses-devel
Checking for unixODBC support… configure: error: ODBC header file ‘/usr/include/sqlext.h’ not found!
yum install unixODBC-devel
Configure: error: Cannot find pspell
yum install pspell-devel
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install libmcrypt libmcrypt-devel
Configure: error: snmp.h not found. Check your SNMP installation.
yum install net-snmp net-snmp-devel
yum install libmhash
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
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
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: Kerberos libraries not found.
Источник
When compiling php from source for nginx web server, i get error
checking for cURL support... yes checking if we should use cURL for url streams... yes checking for cURL in default path... not found configure: error: Please reinstall the libcurl distribution — easy.h should be in <curl—dir>/include/curl/ |
On checking, found curl-devel not installed
[root@vps1 php—5.2.8]# yum list|grep curl curl.x86_64 7.15.5—2.el5 installed curl.i386 7.15.5—2.el5 installed curl—devel.x86_64 7.15.5—2.el5 base curl—devel.i386 7.15.5—2.el5 base [root@vps1 php—5.2.8]# |
The problem is fixed by installing curl-devel
yum —y install curl—devel |
See Errors
Need help with Linux Server or WordPress? We can help!
В данной теме я расскажу с какими ошибками при компиляции PHP на CentOS x64 можно столкнуться. Так же приведу готовые решения как решить ту или иную проблему.
configure: error: xml2-config not found. Please check your libxml2 installation.
# yum install libxml2-devel.x86_64 |
configure: error: Cannot find OpenSSL’s
# yum install openssl-devel.x86_64 |
configure: error: Could not find pcre.h in /usr/local
# yum install pcre-devel.x86_64 |
configure: error: Could not find pcre.h in /usr/local
«—with-pcre-regex=/usr/include»
configure: error: Could not find libpcre.(a|so) in /usr/include
«—with-pcre-regex=/usr»
configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
# yum install libcurl-devel.x86_64 |
configure: error: libjpeg.(a|so) not found.
# yum install libjpeg-devel.x86_64 |
configure: error: libpng.(a|so) not found.
# yum install libpng-devel.x86_64 |
configure: error: freetype.h not found.
# yum install freetype-devel.x86_64 |
configure: error: Please reinstall the iconv library.
«—with-iconv»
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
# yum install libmcrypt.x86_64 libmcrypt-devel.x86_64 |
configure: error: Please reinstall libmhash – I cannot find mhash.h
# yum install mhash.x86_64 mhash-devel.x86_64 |
Note that the MySQL client library is not bundled anymore!
# yum install php-mysql.x86_64 mysql-devel.x86_64 |
configure: error: Please reinstall the BZip2 distribution
# yum install bzip2-devel.x86_64 |
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
DISABLE IMAP
configure: error: Cannot find pspell
# yum install aspell-devel.x86_64 |
configure: error: Cannot find libtidy
# yum install libtidy.x86_64 libtidy-devel.x86_64 |
error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution
# yum install libxslt.x86_64 libxslt-devel.x86_64 |
collect2: ld returned 1 exit status
# yum install glibc-utils.x86_64 libtool-ltdl-devel.x86_64 |
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
скачать libmcrypt—2.5.8.tar.gz # cd /usr/local/src # tar zxvf libmcrypt-2.5.8.tar.gz && cd libmcrypt-2.5.8 # ./configure && make && make install # ln -s /usr/local/lib/libmcrypt.so.4 /lib64/libmcrypt.so.4 |
With these build options a libphp5.so is not created and so Apache cannot use PHP.
On my CentOS 5.8 build I had to add the following configuration line to get that file created.
./configure –with-apxs2=/usr/sbin/apxs
configure: error: snmp.h not found. Check your SNMP installation.
# yum install net-snmp-devel |
checking for curl_multi_strerror in -lcurl… yes
checking for QDBM support… no
checking for GDBM support… no
checking for NDBM support… no
configure: error: DBA: Could not find necessary header file(s).
Fix:
Для тех кто хочет быстро исправить все проблемы, попробуйте запустить так:
# yum install glibc-utils.x86_64 libtool-ltdl-devel.x86_64 libxslt.x86_64 libxslt-devel.x86_64 libtidy.x86_64 libtidy-devel.x86_64 aspell-devel.x86_64 bzip2-devel.x86_64 php-mysql.x86_64 mysql-devel.x86_64 mhash.x86_64 mhash-devel.x86_64 libmcrypt.x86_64 libmcrypt-devel.x86_64 freetype-devel.x86_64 libpng-devel.x86_64 libjpeg-devel.x86_64 curl-devel.x86_64 openssl-devel.x86_64 libxml2-devel.x86_64 net-snmp-devel libcurl-devel.x86_64 |
Обновление и установка средств разработки и библиотек
# yum update # yum group install «Development Tools» # yum group install «Development Libraries» |
После чего запустите bash скрипт:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
#!/bin/sh «./configure» «—prefix=/usr/local/php5» «—enable-force-cgi-redirect» «—enable-fastcgi» «—with-bz2» «—with-config-file-path=/usr/local/etc» «—with-config-file-scan-dir=/usr/local/etc/php.d» «—with-curl=/usr/local/lib» «—with-gd» «—with-gettext» «—with-jpeg-dir=/usr/local/lib» «—with-freetype-dir=/usr/local/lib» «—with-kerberos» «—with-mcrypt» «—with-mhash» «—with-mime-magic» «—with-mysql» «—with-mysqli» «—with-pcre-regex=/usr» «—with-pdo-mysql=shared» «—with-pdo-sqlite=shared» «—with-pear=/usr/local/lib/php» «—with-png-dir=/usr/local/lib» «—with-pspell» «—with-sqlite=shared» «—with-tidy» «—with-ttf» «—with-xmlrpc» «—with-xsl» «—with-zlib» «—with-zlib-dir=/usr/local/lib» «—with-openssl» «—with-iconv» «—with-libdir=lib64» «—enable-bcmath» «—enable-calendar» «—enable-exif» «—enable-ftp» «—enable-gd-native-ttf» «—enable-libxml» «—enable-magic-quotes» «—enable-soap» «—enable-sockets» «—enable-mbstring» «—enable-zip» «—enable-wddx» |
https://github.com/midnight47/
Debian php build errors and solutions
configure: error: xml2-config not found. Please check your libxml2 installation.
# apt-get install libxml2 libxml2-dev
configure: error: Cannot find OpenSSL’s libraries
# apt-get install libssl-dev
и добавить опцию конфигурирования:
--with-libdir=/lib/x86_64-linux-gnu
configure: error: Please reinstall the BZip2 distribution
# apt-get install libbz2-dev
checking for cURL in default path… not found
configure: error: Please reinstall the libcurl distribution —
easy.h should be in <curl-dir>/include/curl/
# apt-get install libcurl4-openssl-dev
configure: error: jpeglib.h not found.
# apt-get install libjpeg-dev
configure: error: png.h not found.
# apt-get install libpng12-dev
configure: error: freetype.h not found.
# apt-get install libfreetype6-dev
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
# apt-get install libmcrypt-dev
checking for MySQL support… yes
checking for specified location of the MySQL UNIX socket… no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
# apt-get install libmysqlclient-dev
While compiling PHP with cURL support we get the error below:-
==========================================================================
checking for cURL support… yes
checking if we should use cURL for URL streams… yes
checking for cURL in the default path… not found
configure: error: Please reinstall the libcurl distribution —
easy.h should be in <curl-dir>/include/curl/
==========================================================================
However, if we check libcurl is already installed on the server with the command below:-
yum list|grep curl
curl.x86_64 7.19.7-37.el6_4 @updates
libcurl.x86_64 7.19.7-37.el6_4 @updates
libcurl-devel.x86_64 7.19.7-37.el6_4 @updates
python-pycurl.x86_64 7.19.0-8.el6 @anaconda-CentOS-201207061011.x86_64/6.3
libcurl.i686 7.19.7-37.el6_4 updates
libcurl-devel.i686 7.19.7-37.el6_4 updates
In this we have to make sure that the libcurl-devel package is installed on the server, if it is not then install it first as below:-
yum install libcurl-devel -y
and then try to re-compile PHP with cURL and it should be able to compile this time.