Wie kann man das, 'PHP', in Mac OS X (10.9.4)?

Ich bin das hinzufügen von postgres-Unterstützung für PHP auf OS X Mavericks (10.9.4).

Schritte von der [blog] (http://blog.rupey.org/post/63221360055/adding-postgres-support-to-php-on-os-x-mavericks)... behoben, die zwischen Fehler und erreicht bis zu 'machen'.

Beim ausführen von 'make' bekomme ich die folgende Fehlermeldung.
- - - - - - - FEHLER------

users-mbp:pdo_pgsql RK$ pwd
/usr/include/php/ext/pdo_pgsql

users-mbp:pdo_pgsql RK$ make
/bin/sh /usr/include/php/ext/pdo_pgsql/libtool --mode=compile cc -I/usr/include/php/ext          -I. -I/usr/include/php/ext/pdo_pgsql -DPHP_ATOM_INC -I/usr/include/php/ext/pdo_pgsql/include -I/usr/include/php/ext/pdo_pgsql/main -I/usr/include/php/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/Postgres.app/Contents/Versions/9.3/include  -DHAVE_CONFIG_H  -g -O2   -c /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c -o pdo_pgsql.lo 
 cc -I/usr/include/php/ext -I. -I/usr/include/php/ext/pdo_pgsql -DPHP_ATOM_INC -I/usr/include/php/ext/pdo_pgsql/include -I/usr/include/php/ext/pdo_pgsql/main -I/usr/include/php/ext/pdo_pgsql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/Applications/Postgres.app/Contents/Versions/9.3/include -DHAVE_CONFIG_H -g -O2 -c /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c  -fno-common -DPIC -o .libs/pdo_pgsql.o
In file included from /usr/include/php/ext/pdo_pgsql/pdo_pgsql.c:25:
In file included from /usr/include/php/main/php.h:34:
/usr/include/php/Zend/zend.h:51:11: fatal error: 'zend_config.h' file not found
# include <zend_config.h>
      ^
1 error generated.
make: *** [pdo_pgsql.lo] Error 1
users-mbp:pdo_pgsql RK$


------ERROR------ }

Aber, ich könnte suchen Sie die Dateien in den unter-Verzeichnisse:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/php/Zend/zend.h 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/php/Zend/zend.h 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/php/Zend/zend_config.h 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/php/Zend/zend_config.h 

Sah ein ähnliches Problem unter [post] (Haben Sie Probleme, während Sie versuchen, es zu installieren OAUTH mit PECL in MAMP auf mac OS lion).
-das legt nahe:

Wenn Sie folgende /Applications/MAMP/bin/php/php5.4.4/include/php/Zend/zend.h:51:11: fatal error: 'zend_config.h' die Datei wurde nicht gefunden stellen Sie sicher, dass Sie php konfigurieren Quellen. d.h. in das Verzeichnis, in dem Sie kopiert alle Dateien ausführen ./konfigurieren – greg Jan 19 '13 at 2:41

Obwohl, ich habe bereits ausgeführt wird ./konfigurieren Sie die oben genannten Fehler immer noch Auftritt.

Kann mir helfen zu verstehen, was ich bin fehlt?

Vielen Dank im Voraus!

  • Es scheint zend.h ist nicht in /usr/include/php/Zend/ sondern in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/php/Zend/.
  • Tatsächlich ist "zend.h" konnte nicht gefunden werden "zend_config.h". ...es ist wahr, dass zend_config.h ist NICHT unter: /usr/include/php/Zend. Vielmehr sehe ich die folgenden beiden Dateien unter: /usr/include/php/Zend zend_config.w32.h zend_config.nw.h -Sollte ich kopieren zend_config.h an den oben genannten Speicherort manuell?
  • Sie könnte versuchen, oder verwenden Sie den Pfad, wo Sie gespeichert sind; diese Dateien sind wahrscheinlich von anderen abhängig aber auch.
InformationsquelleAutor KRISH | 2014-09-15
Schreibe einen Kommentar