phpbrewでsoapをインストールしようとしたらコケた話
phpbrew ext install soap
で SOAP Client をインストールしようとしたらコケました。
$ phpbrew extension install soap ===> Installing soap extension... Log stored at: /Users/tsmsogn/.phpbrew/build/php-5.6.31/ext/soap/build.log Changing directory to /Users/tsmsogn/.phpbrew/build/php-5.6.31/ext/soap ===> Phpize... ===> Configuring... Error: Command failed: ./configure --with-php-config=/Users/tsmsogn/.phpbrew/php/php-5.6.31/bin/php-config >> /Users/tsmsogn/.phpbrew/build/php-5.6.31/ext/soap/build.log 2>&1 returns:
以下のような、ログが出ていました
Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-apple-darwin16.7.0 checking host system type... x86_64-apple-darwin16.7.0 checking target system type... x86_64-apple-darwin16.7.0 checking for PHP prefix... /Users/tsmsogn/.phpbrew/php/php-5.6.31 checking for PHP includes... -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/main -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/TSRM -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/Zend -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/ext -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/ext/date/lib checking for PHP extension directory... /Users/tsmsogn/.phpbrew/php/php-5.6.31/lib/php/extensions/no-debug-non-zts-20131226 checking for PHP installed headers prefix... /Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable SOAP support... yes, shared checking libxml2 install dir... no checking for xml2-config path... /usr/bin/xml2-config checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details.
いろいろと no
となっていて気になります。。。
config.log を見てみる
Please check the config.log for details.
とあるので ~/.phpbrew の config.log
を見てみます。
$ cd ~ $ find . -name "config.log" ./build/php-5.6.31/config.log ./build/php-5.6.31/ext/soap/config.log ./build/php-5.6.31/ext/xdebug/config.log
build/php-5.6.31/ext/soap/config.log
がそれっぽそうなので、見てみます。
cat build/php-5.6.31/ext/soap/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --with-php-config=/Users/tsmsogn/.phpbrew/php/php-5.6.31/bin/php-config ## --------- ## ## Platform. ## ## --------- ## hostname = tsmsogn-mac.local uname -m = x86_64 uname -r = 16.7.0 uname -s = Darwin uname -v = Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available. 4 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 Primary memory available: 8.00 gigabytes Default processor set: 297 tasks, 2066 threads, 4 processors Load average: 1.50, Mach factor: 2.50 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Users/tsmsogn/.nvm/versions/node/v6.11.5/bin PATH: /Users/tsmsogn/.phpbrew/php/php-5.6.31/bin PATH: /Users/tsmsogn/.phpbrew/bin PATH: /usr/local/opt/opencv/bin PATH: /Users/tsmsogn/.pyenv/shims PATH: /Users/tsmsogn/.pyenv/shims PATH: /Users/tsmsogn/.rbenv/shims PATH: /usr/local/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/MacGPG2/bin PATH: /usr/local/opt/opencv/bin PATH: /Users/tsmsogn/.pyenv/shims PATH: /Users/tsmsogn/.rbenv/shims PATH: /Users/tsmsogn/go/bin PATH: /Users/tsmsogn/go/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2296: checking for grep that handles long lines and -e configure:2354: result: /usr/bin/grep configure:2359: checking for egrep configure:2421: result: /usr/bin/grep -E configure:2426: checking for a sed that does not truncate output configure:2480: result: /usr/bin/sed configure:2612: checking for cc configure:2628: found /usr/bin/cc configure:2639: result: cc configure:2670: checking for C compiler version configure:2679: cc --version >&5 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:2690: $? = 0 configure:2679: cc -v >&5 Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:2690: $? = 0 configure:2679: cc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:2690: $? = 1 configure:2679: cc -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:2690: $? = 1 configure:2710: checking whether the C compiler works configure:2732: cc conftest.c >&5 configure:2736: $? = 0 configure:2784: result: yes configure:2787: checking for C compiler default output file name configure:2789: result: a.out configure:2795: checking for suffix of executables configure:2802: cc -o conftest conftest.c >&5 configure:2806: $? = 0 configure:2828: result: configure:2850: checking whether we are cross compiling configure:2858: cc -o conftest conftest.c >&5 configure:2862: $? = 0 configure:2869: ./conftest configure:2873: $? = 0 configure:2888: result: no configure:2893: checking for suffix of object files configure:2915: cc -c conftest.c >&5 configure:2919: $? = 0 configure:2940: result: o configure:2944: checking whether we are using the GNU C compiler configure:2963: cc -c conftest.c >&5 configure:2963: $? = 0 configure:2972: result: yes configure:2981: checking whether cc accepts -g configure:3001: cc -c -g conftest.c >&5 configure:3001: $? = 0 configure:3042: result: yes configure:3059: checking for cc option to accept ISO C89 configure:3122: cc -c -g -O2 conftest.c >&5 configure:3122: $? = 0 configure:3135: result: none needed configure:3161: checking how to run the C preprocessor configure:3192: cc -E conftest.c configure:3192: $? = 0 configure:3206: cc -E conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:3206: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3231: result: cc -E configure:3251: cc -E conftest.c configure:3251: $? = 0 configure:3265: cc -E conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:3265: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3296: checking for icc configure:3305: result: no configure:3319: checking for suncc configure:3328: result: no configure:3346: checking whether cc understands -c and -o together configure:3374: cc -c conftest.c -o conftest2.o >&5 configure:3378: $? = 0 configure:3384: cc -c conftest.c -o conftest2.o >&5 configure:3388: $? = 0 configure:3443: result: yes configure:3457: checking for system library directory configure:3472: result: lib configure:3479: checking if compiler supports -R configure:3498: cc -o conftest -g -O2 conftest.c -R /usr/lib >&5 warning: unknown remark option '-R' [-Wunknown-warning-option] 1 warning generated. ld: can't map file, errno=22 file '/usr/lib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3498: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3508: result: no configure:3513: checking if compiler supports -Wl,-rpath, configure:3532: cc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5 configure:3532: $? = 0 configure:3542: result: yes configure:3587: checking build system type configure:3601: result: x86_64-apple-darwin16.7.0 configure:3621: checking host system type configure:3634: result: x86_64-apple-darwin16.7.0 configure:3654: checking target system type configure:3667: result: x86_64-apple-darwin16.7.0 configure:3770: checking for PHP prefix configure:3772: result: /Users/tsmsogn/.phpbrew/php/php-5.6.31 configure:3774: checking for PHP includes configure:3776: result: -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/main -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/TSRM -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/Zend -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/ext -I/Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php/ext/date/lib configure:3778: checking for PHP extension directory configure:3780: result: /Users/tsmsogn/.phpbrew/php/php-5.6.31/lib/php/extensions/no-debug-non-zts-20131226 configure:3782: checking for PHP installed headers prefix configure:3784: result: /Users/tsmsogn/.phpbrew/php/php-5.6.31/include/php configure:3787: checking if debug is enabled configure:3813: result: no configure:3816: checking if zts is enabled configure:3842: result: no configure:3913: checking for re2c configure:3943: result: no configure:3968: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. configure:3982: checking for gawk configure:4013: result: no configure:3982: checking for nawk configure:4013: result: no configure:3982: checking for awk configure:3999: found /usr/bin/awk configure:4010: result: awk configure:4033: checking if awk is broken configure:4040: result: no configure:4054: checking whether to enable SOAP support configure:4093: result: yes, shared configure:4103: checking libxml2 install dir configure:4118: result: no configure:4132: checking for xml2-config path configure:4146: result: /usr/bin/xml2-config configure:4290: checking whether libxml build works configure:4317: cc -o conftest -g -O2 conftest.c -Wl,-rpath,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib -lxml2 -lz -licucore -lm >&5 ld: file not found: /usr/lib/system/libsystem_darwin.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:4317: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | | char xmlInitParser(); | int main() { | xmlInitParser(); | return 0; | } | configure:4328: result: no configure:4330: error: build test failed. Please check the config.log for details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-apple-darwin16.7.0 ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=x86_64-apple-darwin16.7.0 ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_php_xml2_config_path=/usr/bin/xml2-config ac_cv_prog_AWK=awk ac_cv_prog_CPP='cc -E' ac_cv_prog_ac_ct_CC=cc ac_cv_prog_cc_c89= ac_cv_prog_cc_cc_c_o=yes ac_cv_prog_cc_g=yes ac_cv_target=x86_64-apple-darwin16.7.0 lt_cv_path_SED=/usr/bin/sed php_cv_cc_dashr=no php_cv_cc_rpath=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='' AWK='awk' CC='cc' CFLAGS='-g -O2' CONFIGURE_COMMAND=' '\''./configure'\'' '\''--with-php-config=/Users/tsmsogn/.phpbrew/php/php-5.6.31/bin/php-config'\''' CONFIGURE_OPTIONS=' '\''--with-php-config=/Users/tsmsogn/.phpbrew/php/php-5.6.31/bin/php-config'\''' CPP='cc -E' CPPFLAGS='' DEFS='' DSYMUTIL='' ECHO='/bin/echo' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' GREP='/usr/bin/grep' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='' LN_S='' LTLIBOBJS='' NMEDIT='' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='' RE2C='exit 0;' SED='/usr/bin/sed' SHELL='/bin/sh' SHLIB_DL_SUFFIX_NAME='so' SHLIB_SUFFIX_NAME='dylib' STRIP='' ac_ct_CC='cc' bindir='${exec_prefix}/bin' build='x86_64-apple-darwin16.7.0' build_alias='' build_cpu='x86_64' build_os='darwin16.7.0' build_vendor='apple' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='x86_64-apple-darwin16.7.0' host_alias='x86_64-apple-darwin16.7.0' host_cpu='x86_64' host_os='darwin16.7.0' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/Users/tsmsogn/.phpbrew/php/php-5.6.31' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-apple-darwin16.7.0' target_alias='' target_cpu='x86_64' target_os='darwin16.7.0' target_vendor='apple' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" configure: exit 1