andreiz / php-zookeeper

A PHP extension for interfacing with Apache ZooKeeper
Other
449 stars 215 forks source link

Alpine configure: error: C compiler cannot create executables #93

Closed jingmian closed 4 years ago

jingmian commented 4 years ago

My system is Alpine php -v 7.2.19

 git clone https://github.com/andreiz/php-zookeeper.git
 cd php-zookeeper
/tmp/extensions/php-zookeeper # ls
CREDITS                  examples                 php_zookeeper_session.h
ChangeLog                package.xml              tests
LICENSE                  php_zookeeper.c          zoo_lock.c
README.markdown          php_zookeeper.h          zoo_lock.h
config.m4                php_zookeeper_private.h  zookeeper-api.php
dev-tools                php_zookeeper_session.c
/tmp/extensions/php-zookeeper # phpize 
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
/tmp/extensions/php-zookeeper # ls
CREDITS                  config.m4                php_zookeeper.c
ChangeLog                config.sub               php_zookeeper.h
LICENSE                  configure                php_zookeeper_private.h
Makefile.global          configure.ac             php_zookeeper_session.c
README.markdown          dev-tools                php_zookeeper_session.h
acinclude.m4             examples                 run-tests.php
aclocal.m4               install-sh               tests
autom4te.cache           ltmain.sh                zoo_lock.c
build                    missing                  zoo_lock.h
config.guess             mkinstalldirs            zookeeper-api.php
config.h.in              package.xml
/tmp/extensions/php-zookeeper # ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... no
configure: error: in `/tmp/extensions/php-zookeeper':
configure: error: C compiler cannot create executables
See `config.log' for more details
/tmp/extensions/php-zookeeper # 
jingmian commented 4 years ago
apk add libzookeeper-dev --repository http://nl.alpinelinux.org/alpine/edge/testing/