Skip to content

Installation of curl fails - easy.h should be in <curl-dir>/include/curl/ #467

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

Closed
laurinkeithdavis opened this issue Jul 21, 2017 · 3 comments

Comments

@laurinkeithdavis
Copy link

laurinkeithdavis commented Jul 21, 2017

dockerfile:

FROM php:7.1.7-apache
RUN apt-get update
&& docker-php-ext-install curl fileinfo imap ldap mbstring mysqli openssl pdo_mysql soap odbc ftp

Produces this:

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/

Well, just found the same issue in PHPBrew:

phpbrew/phpbrew#861

And a bug has been filed with PHP itself:

https://bugs.php.net/bug.php?id=74125

@tianon
Copy link
Member

tianon commented Jul 21, 2017

Isn't curl already enabled in the image by default?

$ docker pull php:7.1-apache
7.1-apache: Pulling from library/php
Digest: sha256:bf65d92b08473d628c6af87b4b9da1dec434e2bb2dce1c98192470547b314d10
Status: Downloaded newer image for php:7.1-apache

$ docker run --rm php:7.1-apache php -i | grep curl
Configure Command =>  './configure'  '--build=x86_64-linux-gnu' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--disable-cgi' '--enable-ftp' '--enable-mbstring' '--enable-mysqlnd' '--with-curl' '--with-libedit' '--with-openssl' '--with-zlib' '--with-pcre-regex=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-apxs2' 'build_alias=x86_64-linux-gnu'
curl

@laurinkeithdavis
Copy link
Author

Ah, yes, you are correct. I'm on Windows and I assumed from the docs that anything enabled by extension= was not enabled in this repo, thanks.

@tianon
Copy link
Member

tianon commented Jul 21, 2017

👍

@tianon tianon closed this as completed Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants