免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5145 | 回复: 12
打印 上一主题 下一主题

[OpenBSD] openbsd安装zend optimizer问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-02 18:27 |只看该作者 |倒序浏览
我下载了ZendOptimizer-3.3.0a-openbsd3.4-i386.tar.gz无法安装


有人成功吗??

论坛徽章:
0
2 [报告]
发表于 2007-09-02 18:29 |只看该作者
Solution for ZendOptimizer to work under OpenBSD 4.1/i386


1. Download the file for OpenBSD 3.x as distributed by Zend
currently ZendOptimizer-3.2.8-openbsd3.4-i386.tar.gz

2. Untar (tar -xzf ZendOpt*), and fetch the files
-> ZendOptimizer*/data/ZendExtensionManager.so
-> ZendOptimizer*/data/5_1_x_comp/ZendOptimizer.so
where 5_1_x is the php you have installed

3. Put those file somewhere clean like
-> /var/www/lib/php/ZendExtensionManager.so
-> /var/www/lib/php/ZendOptimizer.so
you NEED to keep the names unchanged

4. Simulate old libs (here's the magic)
type in the console the following command
# ln -s libm.so.2.3 /usr/lib/libm.so.1.0

Alternatively, if you don't like symlinking you can edit the binaries and change the string 'libm.so.1.0' into 'libm.so.2.3' in both of Zend*.so files
- change 0x[31 2E 30] -> 0x[32 2E 33] in ZendExtensionManager.so at offset 0x0720
- change 0x[31 2E 30] -> 0x[32 2E 33] in ZendOptimizer.so at offset 0xCEAE

5. Edit your /var/www/conf/php.ini and add the section
[Zend]
zend_extension=/var/www/lib/php/ZendExtensionManager.so
zend_extension=/var/www/lib/php/ZendOptimizer.so

6. Test
Reboot your webserver
# apachectl stop
# apachectl start
Write down one php page containing <? phpinfo(); ?> and browse it !



网上找到以上内容,谁能翻译一下啊?我的系统也是openbsd4.1

论坛徽章:
0
3 [报告]
发表于 2007-09-02 18:55 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2007-09-02 19:39 |只看该作者
好贴。

以前一直希望能在 OPENBSD 上安装 Zend Optimizer,结果都是惨败,多谢楼主的贴子。

PS:从 google 里找到了原帖:
http://www.zend.com/forums/index ... a2cdf98ae2e447e630d

论坛徽章:
0
5 [报告]
发表于 2007-09-03 11:38 |只看该作者
我看还是不要费劲了,即使装上了性能也不会好到那里去

论坛徽章:
0
6 [报告]
发表于 2007-09-04 09:44 |只看该作者
原帖由 llzqq 于 2007-9-3 11:38 发表
我看还是不要费劲了,即使装上了性能也不会好到那里去

测试过?

论坛徽章:
0
7 [报告]
发表于 2007-09-04 11:03 |只看该作者
原帖由 MichaelBibby 于 2007-9-4 09:44 发表

测试过?



偶也没有安装成功过,听人说的。

论坛徽章:
0
8 [报告]
发表于 2007-09-05 12:39 |只看该作者
test.php中可以看到ZendOptimizer的信息,但是phpcms2007安装的时候还是一片空白!!!

论坛徽章:
0
9 [报告]
发表于 2007-09-06 19:33 |只看该作者
期待支持openbsd4.1的 ZendOptimizer

论坛徽章:
0
10 [报告]
发表于 2007-09-29 12:05 |只看该作者
关注一下

ob真的不适合么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP