Re: [PHP-INSTALL] Troubles installing oauth extension

[email protected] (Daniel Brown)
Newsgroups php.install
Message-ID <[email protected]>
On Mon, Dec 13, 2010 at 17:46, Daniel Hong <[email protected]> wrote:
> Hello,
>
> I'm having problems installing the oauth extension. I'm trying to install it
> on a Ubuntu Hardy Heron (8.0.4) box with PHP 5.2.4.
>
> I'm installing it by running "pecl install oauth". It goes through a bunch
> of checks, then make runs, then finally it errors out with "make: ***
> [oauth.lo] Error 1". There are some errors and a warning just before it
> exists out:
>
> In file included from /tmp/pear/cache/oauth-1.0.0/php_oauth.h:47,
>                  from /tmp/pear/cache/oauth-1.0.0/oauth.c:14:
> /usr/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or
> directory
> In file included from /tmp/pear/cache/oauth-1.0.0/php_oauth.h:47,
>                  from /tmp/pear/cache/oauth-1.0.0/oauth.c:14:
> /usr/include/php5/ext/pcre/php_pcre.h:45: error: expected ‘=’, ‘,’, ‘;’,
> ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/include/php5/ext/pcre/php_pcre.h:46: error: expected ‘=’, ‘,’, ‘;’,
> ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/include/php5/ext/pcre/php_pcre.h:52: error: expected
> specifier-qualifier-list before ‘pcre’
> /tmp/pear/cache/oauth-1.0.0/oauth.c: In function ‘oauth_http_build_query’:
> /tmp/pear/cache/oauth-1.0.0/oauth.c:562: warning: dereferencing type-punned
> pointer will break strict-aliasing rules
>
> Is the extension itself corrupt?
>
> Any help will be appreciated. Thanks.

    You don't have the PCRE library sources installed.  Try this, then
retry the PECL install:

        sudo apt-get install pcre pcre-devel

-- 
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.