APC

From ThinkyWiki

Revision as of 19:04, 23 January 2010 by 127.0.0.1 (Talk)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Manually compile APC for Snow Leopard

cd /src/php/ext/apc/dir
#
# Important : comment out the word 'static' on line 959 otherwise you will encounter the following error msg : 
# php_apc.c:959: error: duplicate 'static'
#
emacs /src/php/ext/apc/dir/php_apc.c 
phpize
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' \
  CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' \
  ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config
make
sudo make install

Configure and build a PHP extension on Snow Leopard (Intel-only)

cd /src/php/ext/dir
phpize 
MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' \
  CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' \
  ./configure --with-php-config=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config
make -j6
sudo make install
Personal tools