linux php oauth安装,php – 无法在Linux上安装OAuth

我正在尝试在

Linux上安装OAuth,但它无法正常工作.

我正在运行此命令:

yum install php-devel

然后

pecl install oauth

然后我得到这个输出:

downloading oauth-1.2.2.tgz ...

Starting to download oauth-1.2.2.tgz (45,348 bytes)

.............done: 45,348 bytes

6 source files, building

running: phpize

Configuring for:

PHP Api Version: 20090626

Zend Module Api No: 20090626

Zend Extension Api No: 220090626

building in /var/tmp/pear-build-rootmB8jnS/oauth-1.2.2

running: /var/tmp/oauth/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... no

checking for gcc... no

configure: error: in `/var/tmp/pear-build-rootmB8jnS/oauth-1.2.2':

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

ERROR: `/var/tmp/oauth/configure' failed

谢谢@Daniel M.

现在我有另一个错误:

make

/bin/sh /var/tmp/pear-build-rootfr2xXB/oauth-1.0.0/libtool --mode=compile cc -I. -I/var/tmp/oauth -DPHP_ATOM_INC -I/var/tmp/pear-build-rootfr2xXB/oauth-1.0.0/include -I/var/tmp/pear-build-rootfr2xXB/oauth-1.0.0/main -I/var/tmp/oauth -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /var/tmp/oauth/oauth.c -o oauth.lo

libtool: compile: cc -I. -I/var/tmp/oauth -DPHP_ATOM_INC -I/var/tmp/pear-build-rootfr2xXB/oauth-1.0.0/include -I/var/tmp/pear-build-rootfr2xXB/oauth-1.0.0/main -I/var/tmp/oauth -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /var/tmp/oauth/oauth.c -fPIC -DPIC -o .libs/oauth.o

In file included from /var/tmp/oauth/php_oauth.h:47,

from /var/tmp/oauth/oauth.c:14:

/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory

In file included from /var/tmp/oauth/php_oauth.h:47,

from /var/tmp/oauth/oauth.c:14:

/usr/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

/usr/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'

make: *** [oauth.lo] Error 1

ERROR: `make' failed

你知道我为什么会收到这个错误吗?

最佳答案 是的,我成功了!

我更新了yum并按照以下说明操作:

另外,最后我再打了一个电话(我需要1.0.0)

sudo pecl install -f oauth-1.0.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值