Bei der Installation von OAUTH mit PECL in MAMP unter Mac OS Lion treten Probleme auf

Ich bin neu in der Einstellung von PHP-Servern, und ich hatte durch andere verwandte Post gehen, scheint, als ob niemand den gleichen Fehler wie ich habe. Ich verwende MAMP 2.0.2 und starte PHP 5.3.6. Ich habe versucht, oAuth mit den folgenden Befehlen auf meinem lokalen MAMP zu installieren:

$ cd /Applications/MAMP/bin/php/php5.3.6/bin
$ ./pecl install oauth

Es wird jedoch folgender Fehler zurückgegeben:

Notice: unserialize(): Error at offset 276 of 1133 bytes in Config.php on line 1050
ERROR: The default config file is not a valid config file or is corrupted.

Was ist los? PECL ist in MAMP enthalten.

Aktualisieren:

Ich habe einen Beitrag an anderer Stelle gelesen, der vorschlägt, dass die Daten der Konfigurationsdatei, die die Installationspfade enthält, nicht korrekt sind. Ich habe daher einen Wert in der folgenden Datei geändert:

/Applications/MAMP/bin/php/php5.3.6/conf/pear.conf

Dann benutze ich den Befehl:

$ ./pecl install oauth

Was es startet herunterladen und entpacken, aber wenn es versucht zu installieren, gibt es:

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/libtool --mode=compile cc  -I. -I/private/tmp/pear/temp/oauth -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/include -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/main -I/private/tmp/pear/temp/oauth -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -g   -c /private/tmp/pear/temp/oauth/oauth.c -o oauth.lo
mkdir .libs
cc -I. -I/private/tmp/pear/temp/oauth -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/include -I/private/tmp/pear/temp/pear-build-user1RU5EZA/oauth-1.2.2/main -I/private/tmp/pear/temp/oauth -I/Applications/MAMP/bin/php/php5.3.6/include/php -I/Applications/MAMP/bin/php/php5.3.6/include/php/main -I/Applications/MAMP/bin/php/php5.3.6/include/php/TSRM -I/Applications/MAMP/bin/php/php5.3.6/include/php/Zend -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext -I/Applications/MAMP/bin/php/php5.3.6/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /private/tmp/pear/temp/oauth/oauth.c  -fno-common -DPIC -o .libs/oauth.o
In file included from /private/tmp/pear/temp/oauth/oauth.c:14:
/private/tmp/pear/temp/oauth/php_oauth.h:20:10: 

fatal error: 'php.h' file not found

include "php.h"
     ^

1 error generated.

make: *** [oauth.lo] Error 1

ERROR: `make' failed

Was ist wieder los?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage