php - 尝试在 Ubuntu 上安装 OAuth 但出现错误

标签 php ubuntu oauth

我正在尝试在 Ubuntu Server 12.04 上安装 OAuth,但出现错误。我正在关注本教程,但有些东西没有排好:

http://sergiopvilar.wordpress.com/2013/05/18/how-to-install-php-oauth-extension/

我在终端中运行的命令:

sudo pecl install oauth

我得到响应的最后一部分错误(因为它返回了几页响应):
    running: make
/bin/bash /tmp/pear/temp/pear-build-rootFgGDRe/oauth-1.2.3/libtool --mode=compile cc  -I. -I/tmp/pear/temp/oauth -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootFgGDRe/oauth-1.2.3/include -I/tmp/pear/temp/pear-build-rootFgGDRe/oauth-1.2.3/main -I/tmp/pear/temp/oauth -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -g   -c /tmp/pear/temp/oauth/oauth.c -o oauth.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/oauth -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootFgGDRe/oauth-1.2.3/include -I/tmp/pear/temp/pear-build-rootFgGDRe/oauth-1.2.3/main -I/tmp/pear/temp/oauth -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /tmp/pear/temp/oauth/oauth.c  -fPIC -DPIC -o .libs/oauth.o
In file included from /tmp/pear/temp/oauth/php_oauth.h:47:0,
                 from /tmp/pear/temp/oauth/oauth.c:14:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [oauth.lo] Error 1
ERROR: `make' failed

Make已安装并正在运行。有什么建议吗?

最佳答案

找到它,我需要安装 PCRE 库(Perl 5 兼容正则表达式库)。

# apt-get update
# apt-get install libpcre3 libpcre3-dev

这对我有用。

关于php - 尝试在 Ubuntu 上安装 OAuth 但出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22772854/

相关文章:

php - 基于数据库列的记录过滤无法使用自动完成搜索 PHP

Facebook oauth 不会重定向到 Facebook iframe

使用 HttpClient 的 C# application/x-www-form-urlencoded OAuth 和 HTTP REST 请求

node.js - OAuth 2.0 Flow 它是如何工作的 node-oauth2-server

python - Crontab 作业没有启动...想法?

php - CodeIgniter 扩展多个 Controller ?

PHP通过Webservice在moodle中创建用户

PHP Mysql Insert Into 不工作,没有数据发布到数据库时没有错误

linux - 文件保存错误 : "Opening output file: resource temporarily unavailable"

linux - 有什么办法可以回到我离开的航站楼吗?