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

Bug while installing pdo on 8.0.8-fpm-alpine3.14 #1181

Closed
fefas opened this issue Jul 20, 2021 · 1 comment
Closed

Bug while installing pdo on 8.0.8-fpm-alpine3.14 #1181

fefas opened this issue Jul 20, 2021 · 1 comment

Comments

@fefas
Copy link

fefas commented Jul 20, 2021

We got the following error while trying to install PDO on a MacBook pro from 2013:

$ docker run -it php:8.0.8-fpm-alpine3.14 sh
/var/www/html # docker-php-ext-install pdo
/bin/sh /usr/src/php/ext/pdo/libtool --mode=compile cc -I. -I/usr/src/php/ext/pdo -I/usr/src/php/ext/pdo/include -I/usr/src/php/ext/pdo/main -I/usr/src/php/ext/pdo -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  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64    -c /usr/src/php/ext/pdo/pdo.c -o pdo.lo
make: /bin/sh: Operation not permitted
make: *** [Makefile:243: pdo.lo] Error 127

By trying to run ./bin/sh, we got:

/var/www/html # ./bin/sh
sh: ./bin/sh: not found

After investigating a bit, we decided to try alpine 3.13 and it worked fine.

@wglambert
Copy link

Duplicate of #1177

@wglambert wglambert marked this as a duplicate of #1177 Jul 20, 2021
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

3 participants