6 months ago
[2/9] RUN apt-get update && apt-get install -y libpq-dev libzip-dev unzip git curl libpng-dev libjpeg-dev libfreetype6-dev nodejs npm && docker-php-ext-install pdo pdo_mysql zip gd && pecl install mongodb-1.21 && docker-php-ext-enable mongodb
process "/bin/sh -c apt-get update && apt-get install -y libpq-dev libzip-dev unzip git curl libpng-dev libjpeg-dev libfreetype6-dev nodejs npm && docker-php-ext-install pdo pdo_mysql zip gd && pecl install mongodb-1.21 && docker-php-ext-enable mongodb" did not complete successfully: exit code: 1
1 Replies
5 months ago
This likekly happens because either
Required build tools like
php-devorgccormakewere missing ormongodb-1.21is not compactabile with your php version
Install those tools first then run pecl install mongodb without specifying the version so it picks the best match