インストールし直した phpコンパイルまで
snow leopardでる寸前だというのに。。。。leopard入れ直しとはいかに。。
なんつーか、予行練習。
macports入れる
dmgが見つからないので、ソースからビルドした
旧・Macの手書き説明書 - FC2 BLOG パスワード認証
MacPortsでステキなUNIXツールをインストール - はこべにっき ♨
.bashrcが反映されない
いつもbash_profileにexportとか書いてた
.bashrc が反映されない件 - たつこの部屋
http://memo358.blog18.fc2.com/blog-entry-30.html
libjpgとlibpng
portsでない?
Mac OS Xで動かす軽量プログラミング言語 (2/2)− @IT
で紹介されてる
http://ethan.tira-thompson.org/Mac_OS_X_Ports.html
にインストーラあるからそれつかう<追記>
ふつーにportsでインストールすればよさげ。。
それないとphpのconfigure
--with-gd
が通らない
libmcrypt
http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz/download
からおとしたのコンパイル
mysqlをmacportsでいれてからphpのconfigureとおらない
下記サイトの通りに
lnしてから
http://d.hatena.ne.jp/spdog/20080223/p1
mysqlとかの場所もかえておく
cd cd /opt/local sudo ln -s /opt/local/lib/mysql5 mysql sudo ln -s /opt/local/lib/postgres83 pgsql cd /opt/local/var/run sudo ln -s mysql5 mysql
にしといた
makeでこける
前のエントリ
macのphpを入れなおしたら クソハマった話 - くりまるwebつくる
opensslはportsで入れて/opt/localにしたらよくなった。。
iconvもportsのほう使えばよいのかも(試す前にiconv.cの編集しちゃったから試してない)
ついでに、apache2もportsで入れたのにした
どうも、最初からleopardに入ってるいろいろを使うより、portsでインストールしてそっちを使った方がよさげ(そもそも最初から入ってるphpか使えないから入れ直してるわけで。。)
で、今回のコンパイルオプション
./configure \ '--prefix=/user/local/php-5.3.0' \ '--with-apxs2=/opt/local/apache2/bin/apxs' \ '--enable-mbstring' \ '--enable-mbregex' \ '--enable-calendar' \ '--enable-exif' \ '--with-mcrypt=/opt/local' \ '--with-gd' \ '--with-jpeg-dir=/opt/local' \ '--with-png-dir=/opt/local' \ '--with-zlib-dir=/opt/local' \ '--with-tidy=/opt/local' \ '--with-pgsql=/opt/local/pgsql' \ '--with-pdo-pgsql=/opt/local/pgsql' \ '--with-mysql=/opt/local/mysql' \ '--with-pdo-mysql=/opt/local/mysql' \ '--with-mysql-sock=/opt/local/var/run/mysql' \ '--with-openssl=/opt/local' \ '--with-openssl-dir' \ '--with-iconv=/opt/local/'
これで無事
Build complete. Don't forget to run 'make test'.
になった