如何在 Mac OS X 10.7 Lion 上为 XAMPP 安装 eAccelerator [英] How to install eAccelerator for XAMPP on Mac OS X 10.7 Lion

查看:72
本文介绍了如何在 Mac OS X 10.7 Lion 上为 XAMPP 安装 eAccelerator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mac OS X Lion 的 XAMPP 安装上安装 eAccelerator 时遇到了一些问题.

I had some problems installing eAccelerator on XAMPP installation of Mac OS X Lion.

首先,我遇到了这个问题:

Firstly, I had this problem:

 Mohd-Yusufs-MacBook-Pro:APC-3.1.9 mohdyusuf$ $PHP_PREFIX/bin/phpize
    grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/main/php.h: No such file or directory
    grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_modules.h: No such file or directory
    grep: /Applications/XAMPP/xamppfiles/include/php/php-5.3.1/php/Zend/zend_extensions.h: No such file or directory
    Configuring for:
    PHP Api Version:        
    Zend Module Api No:     
    Zend Extension Api No:

所以我通过从 XAMPP 下载页面安装开发人员包"解决了这个问题.

So I solved it by installing "Developer package" from XAMPP download page.

然后,我在编译版本的 eAccelerator 时遇到了问题:

Then, I had problems with compiled version of eAccelerator:

 PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so, 9): no suitable image found.  Did find:
    /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/eaccelerator.so: mach-o, but wrong architecture in Unknown on line 0

如何解决?

推荐答案

在 eAccelerator 源目录下:

Under eAccelerator source dir:

清理干净

./configure CFLAGS='-arch i386' APXSLDFLAGS='-arch i386' --enable-eaccelerator=shared --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config

./configure CFLAGS='-arch i386' APXSLDFLAGS='-arch i386' --enable-eaccelerator=shared --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config

制作

sudo make install

sudo make install

Ps:不要忘记在/Applications/XAMPP/xamppfiles/etc/php.ini下启用eaccelerator.so扩展

Ps: dont forget to enable eaccelerator.so extention under /Applications/XAMPP/xamppfiles/etc/php.ini

这篇关于如何在 Mac OS X 10.7 Lion 上为 XAMPP 安装 eAccelerator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆