Essayer d’intégrer une application PHP à Quickbooks et au Quickbooks SDK indique qu’il nécessite PECL Oauth.
J’ai Ubuntu 14.04 et obtenez cette erreur lorsque j’essaie d’installer Oauth.
sudo pecl install oauth downloading oauth-1.2.3.tgz ... Starting to download oauth-1.2.3.tgz (45,531 bytes) .............done: 45,531 bytes could not extract the package.xml file from "/build/buildd/php5-5.5.9+dfsg/pear-build- download/oauth-1.2.3.tgz" Download of "pecl/oauth" succeeded, but it is not a valid package archive Error: cannot download "pecl/oauth" Download failed install failed
J’ai googlé un peu et mis à jour mon système:
sudo apt-get install libpcre3 libpcre3-dev sudo apt-get install php-pear php5-dev
mais pas de chance là-bas. Toutes les idées – cela devrait être une étape facile pour Ubuntu.
sudo apt-get install php5-oauth
J’utilise aussi l’API QuickBooks et pour PHP 7, cela a fonctionné pour moi sur Ubuntu 14.04.3 LTS
sudo apt-get install libpcre3 libpcre3-dev sudo apt-get install php-pear php7.0-dev sudo pecl install oauth
Puis ajoutez à votre php.ini
extension=oauth.so
Peut-être que cela résout le problème:
sudo pecl install oauth-1.2.3