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

yar编译出错 #79

Open
wanminny opened this issue Apr 19, 2016 · 5 comments
Open

yar编译出错 #79

wanminny opened this issue Apr 19, 2016 · 5 comments
Labels

Comments

@wanminny
Copy link

  1. phpize ;=====ok
    2, ./configure --with-curl=/usr/local/Cellar/curl/7.48.0 ====== ok
    3.mac-share:yar-2.0.0 xx$ 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 '
    ===出错;
    4.mac
    5.PHP 7.0.5 (cli) (built: Apr 7 2016 12:15:11) ( NTS )
    6.yar 是PECL yar-2.0.0
@wanminny
Copy link
Author

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
7. thx

@ruanyihang
Copy link

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

@laruence
Copy link
Owner

尝试下载下来自己编译呢?

@ruanyihang
Copy link

找了老大,通过一下几步完成了安装
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
以上就是历史命令。

@laruence
Copy link
Owner

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants