FreeBSD下安装ZendOptimizer

注意,先安装了/usr/ports/misc/compat6x后再安装/usr/ports/devel/ZendOptimizer就可以了,以下部份都不用执行了!
#########################################
cd /usr/ports/devel/ZendOptimizer
make install clean
make deinstall
vi /usr/local/etc/php.ini and add:(回到最后就可以了)
[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=”/usr/local/lib/php/20060613/Optimizer”
zend_extension_manager.optimizer_ts=”/usr/local/lib/php/20060613/Optimizer_TS”
zend_extension=”/usr/local/lib/php/20060613/ZendExtensionManager.so”
zend_extension_ts=”/usr/local/lib/php/20060613/ZendExtensionManager_TS.so”
:wq
/usr/local/etc/rc.d/apache2 restart
#################
cd /usr/ports/misc/compat6x
make install clean
#################
cd /root/tmp3/
tar -zxvpf ../ZendOptimizer-3.3.0a-freebsd6.0-i386.tar.gz
cd /root/tmp3/ZendOptimizer-3.3.0a-freebsd6.0-i386/
./install-tty
###########
vi /usr/local/etc/php.ini (php.ini已经连接指向到/usr/local/Zend/etc/php.ini了)
[Zend]
zend_optimizer.optimization_level=15
#zend_optimizer.version=3.3.0a
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
:wq
/usr/local/etc/rc.d/apache2 restart
##################
vi aa.php

:wq
##############
如果提示以下信息就成功了。
Zend信息
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
完成!