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

ERROR: Service 'php' failed to build #10

Open
eddapp opened this issue Mar 24, 2022 · 2 comments
Open

ERROR: Service 'php' failed to build #10

eddapp opened this issue Mar 24, 2022 · 2 comments

Comments

@eddapp
Copy link

eddapp commented Mar 24, 2022

config.status: creating config.h
/bin/sh /usr/src/php/ext/mysqli/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/usr/src/php/ext/mysqli -DPHP_ATOM_INC -I/usr/src/php/ext/mysqli/include -I/usr/src/php/ext/mysqli/main -I/usr/src/php/ext/mysqli -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/mysqli/mysqli.c -o mysqli.lo
make: /bin/sh: Operation not permitted
make: *** [Makefile:192: mysqli.lo] Error 127
ERROR: Service 'php' failed to build : The command '/bin/sh -c docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql' returned a non-zero code: 2

@eddapp
Copy link
Author

eddapp commented Mar 24, 2022

this error after cloning and running the dock-compose up cmd

@eddapp
Copy link
Author

eddapp commented Mar 29, 2022

Here is a more clear error being thrown after downloading and attempting to build using provided command:

checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
make: /bin/sh: Operation not permitted
make: *** [Makefile:192: mysqli.lo] Error 127
/bin/sh /usr/src/php/ext/mysqli/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I. -I/usr/src/php/ext/mysqli -DPHP_ATOM_INC -I/usr/src/php/ext/mysqli/include -I/usr/src/php/ext/mysqli/main -I/usr/src/php/ext/mysqli -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/mysqli/mysqli.c -o mysqli.lo 
ERROR: Service 'php' failed to build : The command '/bin/sh -c docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql' returned a non-zero code: 2

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

1 participant