-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can't install an external lib #262
Comments
Same issue here with php:5.5-apache Noticed it yesterday. |
@fprezat ok so what you need to do is more something like: RUN docker-php-source extract \
&& curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/3.0.0.tar.gz \
&& tar xfz /tmp/redis.tar.gz \
&& rm -r /tmp/redis.tar.gz \
&& mv phpredis-3.0.0 /usr/src/php/ext/redis \
&& docker-php-ext-install redis |
This is what I did:
By the way,3.0.0 is only for php7,you need 2.2.8. phpredis/phpredis#884 |
Hello |
You can still use pecl for this, but the important thing is to extract/delete the source. RUN docker-php-source extract && \
pecl install xdebug redis && \
docker-php-ext-enable xdebug redis && \
docker-php-source delete |
Using the |
today building my image failed with /usr/src/php/ext no such file or directory (following shouze's suggestion). last time i had to rebuild, it worked flawlessly. i guess there were some changes in the fpm base image, and adding 'mkdir -p /usr/src/php/ext' fixed that for me. just in case somebody runs into the same problem. |
@airycanon I get this error: |
Hello,
I try to install an external lib using php:5.6-apache image.
I use this in my dockerfile to install phpredis lib
But i get this error :
Can you please help me on this
Thx :)
The text was updated successfully, but these errors were encountered: