Discussion:
[PHP-INSTALL] Troubles installing oauth extension
Daniel Hong
2010-12-13 22:46:21 UTC
Permalink
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.
Daniel Brown
2010-12-13 23:35:51 UTC
Permalink
Post by Daniel Hong
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
In file included from /tmp/pear/cache/oauth-1.0.0/php_oauth.h:47,
/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,
/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: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/
Daniel Hong
2010-12-13 23:51:48 UTC
Permalink
Thanks Daniel!

After installing the PCRE library, the oauth extension installed
successfully.

Thanks again,
daniel
Post by Daniel Hong
Post by Daniel Hong
Hello,
I'm having problems installing the oauth extension. I'm trying to install
it
Post by Daniel Hong
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
Post by Daniel Hong
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
In file included from /tmp/pear/cache/oauth-1.0.0/php_oauth.h:47,
/usr/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file
or
Post by Daniel Hong
directory
In file included from /tmp/pear/cache/oauth-1.0.0/php_oauth.h:47,
/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
/tmp/pear/cache/oauth-1.0.0/oauth.c:562: warning: dereferencing
type-punned
Post by Daniel Hong
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
sudo apt-get install pcre pcre-devel
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
Ferenc Kovacs
2010-12-14 08:19:53 UTC
Permalink
Post by Daniel Brown
You don't have the PCRE library sources installed. Try this, then
sudo apt-get install pcre pcre-devel
Hi.

it should be mentioned in the requirements list:
http://php.net/manual/en/oauth.requirements.php

<http://php.net/manual/en/oauth.requirements.php>and I checked the
changelog: "- Added php streams support (libcurl is no longer required)" so
that should be updated in the docs also.

should I add this as a phpdoc bug, or as a package bug?

Tyrael
Daniel Brown
2010-12-14 15:14:03 UTC
Permalink
Post by Ferenc Kovacs
Hi.
http://php.net/manual/en/oauth.requirements.php
and I checked the changelog: "- Added php streams support (libcurl is no
longer required)" so that should be updated in the docs also.
should I add this as a phpdoc bug, or as a package bug?
Just a documentation bug. Thanks.
--
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/
Ferenc Kovacs
2010-12-14 15:32:48 UTC
Permalink
Post by Daniel Brown
Post by Ferenc Kovacs
Hi.
http://php.net/manual/en/oauth.requirements.php
and I checked the changelog: "- Added php streams support (libcurl is no
longer required)" so that should be updated in the docs also.
should I add this as a phpdoc bug, or as a package bug?
Just a documentation bug. Thanks.
http://bugs.php.net/bug.php?id=53544
done.

Tyrael

Loading...