Open wanminny opened 8 years ago
1.phpize ;=====ok
2, ./configure --with-curl=/usr/local/Cellar/curl/7.48.0 ====== ok
3.mac-share:yar-2.0.0 wanmin$ sudo make
/bin/sh /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/libtool --mode=compile cc -I. -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -DPHP_ATOM_INC -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/include -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/main -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -I/usr/local/Cellar/php70/7.0.5/include/php -I/usr/local/Cellar/php70/7.0.5/include/php/main -I/usr/local/Cellar/php70/7.0.5/include/php/TSRM -I/usr/local/Cellar/php70/7.0.5/include/php/Zend -I/usr/local/Cellar/php70/7.0.5/include/php/ext -I/usr/local/Cellar/php70/7.0.5/include/php/ext/date/lib -I/usr/local/Cellar/curl/7.48.0/include -DHAVE_CONFIG_H -g -O2 -c /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/yar.c -o yar.lo
/bin/sh: -c: line 0: syntax error near unexpected token (' /bin/sh: -c: line 0:
/bin/sh /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/libtool --mode=compile cc -I. -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -DPHP_ATOM_INC -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/include -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/main -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -I/usr/local/Cellar/php70/7.0.5/include/php -I/usr/local/Cellar/php70/7.0.5/include/php/main -I/usr/local/Cellar/php70/7.0.5/include/php/TSRM -I/usr/local/Cellar/php70/7.0.5/include/php/Zend -I/usr/local/Cellar/php70/7.0.5/include/php/ext -I/usr/local/Cellar/php70/7.0.5/include/php/ext/date/lib -I/usr/local/Cellar/curl/7.48.0/include -DHAVE_CONFIG_H -g -O2 -c /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/yar.c -o yar.lo '
make: *\ [yar.lo] Error 2
===出错;
4.mac
5.PHP 7.0.5 (cli) (built: Apr 7 2016 12:15:11) ( NTS )
6.yar 是PECL yar-2.0.0
ubuntu16.04遇到同样的错误 php5.6.30 安装版本1.2.5 2.0.1 安装方式 https://pecl.php.net/package/yar下载后安装 错误make 时Makefile:181: recipe for target 'yar.lo' failed make: *** [yar.lo] Error 1
尝试下载下来自己编译呢?
找了老大,通过一下几步完成了安装 2154 phpize 2155 ./configure 2156 make 2157 cd .. 2158 cd yar-1.2.5/ 2159 ./configure --enable-msgpack=yes 2160 make 2161 ./configure clean 2162 ./configure --enable-msgpack=yes 2163 make clean 2164 make 2165 make install 2166 sudo make install 2167 history 以上就是历史命令。
cool
(' /bin/sh: -c: line 0:
/bin/sh /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/libtool --mode=compile cc -I. -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -DPHP_ATOM_INC -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/include -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/main -I/Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0 -I/usr/local/Cellar/php70/7.0.5/include/php -I/usr/local/Cellar/php70/7.0.5/include/php/main -I/usr/local/Cellar/php70/7.0.5/include/php/TSRM -I/usr/local/Cellar/php70/7.0.5/include/php/Zend -I/usr/local/Cellar/php70/7.0.5/include/php/ext -I/usr/local/Cellar/php70/7.0.5/include/php/ext/date/lib -I/usr/local/Cellar/curl/7.48.0/include -DHAVE_CONFIG_H -g -O2 -c /Users/wanmin/Downloads/yar-2.0.0(1)/yar-2.0.0/yar.c -o yar.lo '===出错; 4.mac 5.PHP 7.0.5 (cli) (built: Apr 7 2016 12:15:11) ( NTS ) 6.yar 是PECL yar-2.0.0