2014-06-23 16 views
7

Sto provando ad installare pecl_http in php MAMP. Ho ricevuto i seguenti errori.Dove trovare i componenti e le librerie del server MAMP

grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:

fatto una ricerca su questo e scoperto che dobbiamo componenti server MAMP e Biblioteche.

Dopo aver scaricato questo componente, trovare il file zip corrispondente alla mia versione di PHP, estrarlo in una nuova directory nell'installazione di PHP ed eseguire lo script di configurazione.

Tutti i post che ho visto rimandano a questo link http://www.mamp.info/en/downloads/. Ma non riesco a trovare niente lì. E in pochi altri link ho trovato i componenti per le versioni precedenti di php (fino a 5.3).

Questa installazione dipende da troppe cose e richiede molto tempo. Per favore fatemelo sapere, se qualcuno sa dove posso trovare questi componenti server MAMP e Biblioteche per PHP5.5.10

Collegamento la maggior parte delle linee di uscita creati nel mio terminale FYI.

$ sudo pecl install pecl_http
Password:
downloading pecl_http-2.0.6.tgz ...
Starting to download pecl_http-2.0.6.tgz (152,827 bytes)
......................done: 152,827 bytes
downloading raphf-1.0.4.tgz ...
Starting to download raphf-1.0.4.tgz (7,232 bytes)
...done: 7,232 bytes downloading propro-1.0.0.tgz ...
Starting to download propro-1.0.0.tgz (6,217 bytes)
...done: 6,217 bytes 4 source files, building WARNING: php_bin /Applications/MAMP/bin/php/php5.5.10/bin/php appears to have a suffix /php5.5.10/bin/php, but config variable php_suffix does not match
running: phpize grep: /Applications/MAMP/bin/php/php5.5.10/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.5.10/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version: Zend Module Api No: Zend Extension Api No: whether to enable raphf support [yes] : yes building in /usr/local/pear/pear-build-rootXNkOc5/raphf-1.0.4 running: /usr/local/pear/raphf/configure --enable-raphf=yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-apple-darwin12.5.0 checking host system type... x86_64-apple-darwin12.5.0 checking target system type... x86_64-apple-darwin12.5.0 checking for PHP prefix... /Applications/MAMP/bin/php/php5.5.10 checking for PHP includes... -I/Applications/MAMP/bin/php/php5.5.10/include/php -I/Applications/MAMP/bin/php/php5.5.10/include/php/main -I/Applications/MAMP/bin/php/php5.5.10/include/php/TSRM -I/Applications/MAMP/bin/php/php5.5.10/include/php/Zend -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext -I/Applications/MAMP/bin/php/php5.5.10/include/php/ext/date/lib checking for PHP extension directory... /Applications/MAMP/bin/php/php5.5.10/lib/php/extensions/no-debug-non-zts-20121212 checking for PHP installed headers prefix... /Applications/MAMP/bin/php/php5.5.10/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable raphf support... yes, shared checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no
...............
^
1 error generated.
make: *** [php_propro.lo] Error 1
ERROR: `make' failed
64 source files, building

1 error generated.
make: *** [php_http_buffer.lo] Error 1
ERROR: `make' failed

risposta

11

Got alcuni consigli da parte di alcuni posti esistenti relativi a questo tipo di problemi. ho trovato il componente per php5.5.10 in http://us2.php.net/get/php-5.5.10.tar.gz/from/a/mirror

seguito i passaggi di seguito per installare sul mio pecl_http MAMP su Mac OS 10.8:

Install brew 
Install autoconf using brew brew install autoconf 
Download the source code for PHP 5.5.10 (or whatever version you are using) from php.net 
Extract the source code into /Applications/MAMP/bin/php/php5.5.10/include 
Rename the extracted file from "php-5.5.10" to "php" 
cd /Applications/MAMP/bin/php/php5.5.10/include/php 
Run ./configure 
Add extension=http.so to my php.ini file 
Restart MAMP 

Tutte le mie estensioni sono installati.

Un ringraziamento speciale a joshua.paling e user387049 per tutte le informazioni di cui sopra.

0

Ho lottato anche con lo stesso. L'installazione è stata un problema perché le librerie MAMP non sono più disponibili pubblicamente. Ma una volta ottenuto ciò che i componenti della libreria avrebbero dovuto fare, in realtà era relativamente semplice.

Puoi semplicemente scaricare l'ultima versione di php qui: http://php.net/releases/index.php, estrarre il suo contenuto e inserirlo di seguito.

Il percorso è simile a questo per me/Applicazioni/MAMP /bin /php/php5.5.3/include/php. Creo manualmente la cartella include e quindi il contenuto del download estratto qui nella cartella php.

Dopo che ./configure ha funzionato, e quindi ho appena installato pecl install uploadprogress. Aggiungi che l'estensione del file php.ini rilevanti (per la versione) -: le estensioni = uploadprogress.so nel tuo php.ini

Acclamazioni Pratik

0

Ho questa esecuzione con MAMP 3.2.1 su OS X 10.10.5 Yosemite.Ecco i comandi che ho incontrato:

scaricare il codice sorgente PHP: http://us2.php.net/get/php-5.6.7.tar.bz2/from/a/mirror

andare ai download cartella

cd ~/Downloads 

estrarre il tarball

tar -xzvf ./php-5.6.7.tar.bz2 

rinominare la cartella risultante a php :

mv php-5.6.7 php 

spostarlo

mv php /Applications/MAMP/bin/php/php5.6.7/include/ 

installare gli strumenti della riga di comando Xcode:

xcode-select --install 

corsa configurare e generare qualcosa!

cd /Applications/MAMP/bin/php/php5.6.7/include/php 
./configure 
pecl install uploadprogress 

Grazie a:

Can't phpize or configure an extension in OS X 10.9 Mavericks

e

How to fix, 'PHP' make, in Mac OS X (10.9.4)?

Problemi correlati