日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發(fā)布時間:2023/12/10 linux 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux php oauth安装,php – 无法在Linux上安装OAuth 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

我正在嘗試在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.

現(xiàn)在我有另一個錯誤:

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

標簽:php,linux,oauth,oauth-2-0

來源: https://codeday.me/bug/20190704/1374526.html

總結

以上是生活随笔為你收集整理的linux php oauth安装,php – 无法在Linux上安装OAuth的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。