Installing the OAuth PECL Package on PHP 5 on OS X

I am trying to install the OAuth PECL package and I am using PHP 5.
When I run the installation command, I get the error below that I must have PHP version 7.0.
Upgrading to PHP 7 is not an option now, so how can I install the OAuth package for PHP 5?

chris$ sudo pecl install oauth
pecl/oauth requires PHP (version >= 7.0.0), installed version is 5.5.29
No valid packages found
install failed
+4
source share
2 answers

Dependencies seem to be mixed up for version 2.0.0 oauth. You can install the previous version as follows:

sudo pecl install oauth-1.2.3

I also gave you a question about my GitHub project on your behalf ( here ), as this seems like an unintended mistake.

package.xml :

<required>
  <php>
    <min>7.0.0</min>
  </php>

  <!-- ... -->
</required>

Edit

, . , 2.0.0 PHP7, . oauth PECL . , , 1.2.3, .

, PECL , :)

+13


, , , , , - , MAMP.
, MAMP php.
, php. php-5.6.10

php include/php, php /Applications/MAMP/bin/php/php5.6.10, /Applications/MAMP/bin/php/php5.6.10/include/php.

: , php-version, php-5.6.10 php, include.

/Applications/MAMP/bin/php/php5.6.10/include/php, ./configure, , oauth.

+1

Source: https://habr.com/ru/post/1625429/


All Articles