Difference between revisions of "InstallingAboutUsOnOSX/php"
| Line 1: | Line 1: | ||
This is one step in the [[InstallingAboutUsOnOSX]] process. | This is one step in the [[InstallingAboutUsOnOSX]] process. | ||
| + | Below is what Brandon uses, which uses freetype from MacPorts | ||
<pre> | <pre> | ||
mkdir -p /www/build | mkdir -p /www/build | ||
| Line 7: | Line 8: | ||
tar jxvf php-5.2.5.tar.bz2 | tar jxvf php-5.2.5.tar.bz2 | ||
cd php-5.2.5 | cd php-5.2.5 | ||
| − | + | ./configure \ | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
--prefix=/www \ | --prefix=/www \ | ||
| − | |||
--with-apxs2=/www/bin/apxs \ | --with-apxs2=/www/bin/apxs \ | ||
| − | --with-mysql=/usr/local/mysql | + | --with-mysql=/usr/local/mysql-5.0.45-osx10.4-i686 \ |
--with-zlib \ | --with-zlib \ | ||
--enable-soap \ | --enable-soap \ | ||
| − | |||
--enable-bcmath \ | --enable-bcmath \ | ||
--with-gd \ | --with-gd \ | ||
| − | --with-png \ | + | --with-png-dir=/opt/local \ |
| − | --with- | + | --with-freetype-dir=/opt/local \ |
| − | --with-zlib-dir=/ | + | --with-zlib-dir=/opt/local \ |
| − | --with- | + | --with-jpeg-dir=/opt/local |
| − | |||
make | make | ||
make install | make install | ||
| Line 77: | Line 64: | ||
'--with-freetype-dir=/sw/lib/freetype2' \ | '--with-freetype-dir=/sw/lib/freetype2' \ | ||
'--enable-gd-native-ttf' \ | '--enable-gd-native-ttf' \ | ||
| + | </pre> | ||
| + | |||
| + | == Old == | ||
| + | Below is what Brandon uses, which uses a hand compiled freetype | ||
| + | <pre> | ||
| + | mkdir -p /www/compile | ||
| + | cd /www/compile | ||
| + | wget http://us2.php.net/get/php-5.2.1.tar.bz2/from/us.php.net/mirror | ||
| + | tar -jxvf php-5.2.1.tar.bz2 | ||
| + | cd php-5.2.1 | ||
| + | CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/www/lib' \ | ||
| + | LDFLAGS='-L/www/lib' \ | ||
| + | ./configure \ | ||
| + | --prefix=/www \ | ||
| + | --enable-so \ | ||
| + | --with-apxs2=/www/bin/apxs \ | ||
| + | --with-mysql=/usr/local/mysql-debug-5.0.27-osx10.4-i686 \ | ||
| + | --with-zlib \ | ||
| + | --enable-soap \ | ||
| + | --enable-gmp \ | ||
| + | --enable-bcmath \ | ||
| + | --with-gd \ | ||
| + | --with-png \ | ||
| + | --with-png-dir=/www \ | ||
| + | --with-zlib-dir=/www \ | ||
| + | --with-freetype-dir=/www | ||
| + | make clean | ||
| + | make | ||
| + | make install | ||
</pre> | </pre> | ||
Revision as of 20:12, 27 December 2007
This is one step in the InstallingAboutUsOnOSX process.
Below is what Brandon uses, which uses freetype from MacPorts
mkdir -p /www/build cd /www/build curl -O http://us.php.net/distributions/php-5.2.5.tar.bz2 tar jxvf php-5.2.5.tar.bz2 cd php-5.2.5 ./configure \ --prefix=/www \ --with-apxs2=/www/bin/apxs \ --with-mysql=/usr/local/mysql-5.0.45-osx10.4-i686 \ --with-zlib \ --enable-soap \ --enable-bcmath \ --with-gd \ --with-png-dir=/opt/local \ --with-freetype-dir=/opt/local \ --with-zlib-dir=/opt/local \ --with-jpeg-dir=/opt/local make make install
below is what jason uses, which uses Freetype from fink
'./configure' \ '--with-apxs2=/www/bin/apxs' \ '--enable-so' \ '--with-mysql=/usr/local/mysql' \ '--enable-mbstring' \ '--with-pgsql' \ '--with-zlib' \ '--enable-soap' \ '--enable-gmp' \ '--enable-bcmath' \ '--with-gd' \ '--with-png' \ '--with-png-dir=/www' \ '--with-freetype' \ '--with-freetype-dir=/sw/lib/freetype2' \ '--enable-gd-native-ttf' \ "$@"
Here's what worked for me (stephen): (I had to make sure to install the gd2, not the gd, package, for it to work)
'./configure' \ '--prefix=/www' \ '--with-apxs2=/www/bin/apxs' \ '--enable-so' \ '--with-mysql=/usr/local/mysql' \ '--enable-mbstring' \ '--with-zlib' \ '--enable-soap' \ '--enable-gmp' \ '--enable-bcmath' \ '--with-gd=/sw' \ '--with-png' \ '--with-png-dir=/sw' \ '--with-freetype' \ '--with-freetype-dir=/sw/lib/freetype2' \ '--enable-gd-native-ttf' \
Old
Below is what Brandon uses, which uses a hand compiled freetype
mkdir -p /www/compile cd /www/compile wget http://us2.php.net/get/php-5.2.1.tar.bz2/from/us.php.net/mirror tar -jxvf php-5.2.1.tar.bz2 cd php-5.2.1 CFLAGS='-arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/www/lib' \ LDFLAGS='-L/www/lib' \ ./configure \ --prefix=/www \ --enable-so \ --with-apxs2=/www/bin/apxs \ --with-mysql=/usr/local/mysql-debug-5.0.27-osx10.4-i686 \ --with-zlib \ --enable-soap \ --enable-gmp \ --enable-bcmath \ --with-gd \ --with-png \ --with-png-dir=/www \ --with-zlib-dir=/www \ --with-freetype-dir=/www make clean make make install
