これは古い質問ですが、それでも関連性があります。
私は MAMP を更新しており、 davidgolding.netで見つけたガイドを使用して、PHP の安定版リリースを最新の状態に維持しています。
ガイドは次のようになります。
まず、
phpinfo()
ローカルホストの PHP スクリプトで機能するか、PHPMyAdmin に移動して構成ページを探します。上部またはその近くに構成マークアップの大きなチャンクが表示されます。
'./configure' '--with-mysql=/Applications/MAMP/Library'
'--with-apxs2=/Applications/MAMP/Library/bin/apxs'
'--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library'
'--with-png-dir=/Applications/MAMP/Library' '--with-zlib'
'--with-freetype-dir=/Applications/MAMP/Library'
'--prefix=/Applications/MAMP/bin/php5' '--exec-prefix=/Applications/MAMP/bin/php5'
'--sysconfdir=/Applications/MAMP/conf/php5' '--with-soap'
'--with-config-file-path=/Applications/MAMP/conf/php5'
'--enable-track-vars' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf'
'--with-bz2=/usr' '--with-ldap' '--with-mysqli=/Applications/MAMP/Library/bin/mysql_config'
'--with-sqlite' '--with-ttf' '--with-t1lib=/Applications/MAMP/Library'
'--enable-mbstring=all' '--with-curl=/Applications/MAMP/Library' '--enable-dbx'
'--enable-sockets' '--enable-bcmath' '--with-imap=shared,/Applications/MAMP/Library/lib/imap-2006i'
'--enable-soap' '--with-kerberos' '--enable-calendar'
'--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-dbase'
'--enable-exif' '--with-libxml-dir=/Applications/MAMP/Library'
'--with-gettext=shared,/Applications/MAMP/Library' '--with-xsl=/Applications/MAMP/Library'
'--with-pdo-mysql=shared,/Applications/MAMP/Library' '--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg'
'--with-mcrypt=shared,/Applications/MAMP/Library' '--with-openssl'
このチャンク全体をコピーしてテキスト エディターに貼り付け、一重引用符を削除します(検索して置換する必要があります)。旗を探して
--with-pdo-mysql=shared,/Applications/MAMP/Library
そしてそれを次のように置き換えます:
--with-pdo-mysql=/Applications/MAMP/Library
これを行わないと、エラーが発生する可能性があります。
ld: symbol(s) not found
最後に、次のフラグを末尾に追加します。
--without-iconv
PHP Sources Snapshots から選択した最新の PHP リリースをダウンロードしたら、
cd
ターミナルのダウンロードしたディレクトリに。再フォーマットされた構成文字列 (最初の./configureコマンドを含むすべて) を貼り付けて実行します。
構成フェーズが完了したら、次を実行します。
$ make
$ sudo make install
MAMP を再起動すれば準備完了です。