Skip to content
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: Error: cannot download "pecl/redis" #1670

Closed
jeffochoa opened this issue Jul 3, 2018 · 4 comments
Closed

Can't install: Error: cannot download "pecl/redis" #1670

jeffochoa opened this issue Jul 3, 2018 · 4 comments
Labels

Comments

@jeffochoa
Copy link

Info:

  • Docker version 18.03.1-ce, build 9ee9f40
  • Laradock commit v7.2.0
  • Ubuntu 17.10

Issue: Error: cannot download "pecl/redis"

Error: cannot download "pecl/redis"
Download failed
install failed
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_PHPREDIS} = true ]; then     printf "\n" | pecl -q install -o -f redis &&     echo "extension=redis.so" >> /etc/php/${PHP_VERSION}/mods-available/redis.ini &&     phpenmod redis ;fi' returned a non-zero code: 1

Steps

// Clone repo
git clone https://github.com/laradock/laradock.git

// Move to directory
cd laradock

// Copy .env file
cp env-example .env

// Run
docker-compose up -d nginx mysql
@liyuze
Copy link

liyuze commented Aug 29, 2018

1.) download the extension from http://pecl.php.net/packages.php

2.) there you get an .tgz file

3.) install the file:

edit file: php-fpm/Dockerfile

RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
    # Install Php Redis Extension
    printf "\n" | pecl install -o -f redis \
    &&  rm -rf /tmp/pear \
    &&  docker-php-ext-enable redis \
;fi

replace to

RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
    # Install Php Redis Extension
    # printf "\n" | pecl install -o -f redis \
    printf "\n" | curl 'http://pecl.php.net/get/redis-4.1.1.tgz' -o redis-4.1.1.tgz \
    && pecl install redis-4.1.1.tgz \
    &&  rm -rf redis-4.1.1.tgz \
    &&  rm -rf /tmp/pear \
    &&  docker-php-ext-enable redis \
;fi

happy to rebuild

@stale
Copy link

stale bot commented Feb 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Feb 2, 2020
@stale
Copy link

stale bot commented Feb 23, 2020

Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.

@stale stale bot closed this as completed Feb 23, 2020
@vishwapriyanatha
Copy link

I had the same issue and I update the docker to lates version and work fine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants