How to install eAccelerator for XAMPP on Mac OS X 10.7 Lion

走远了吗. 提交于 2019-12-12 11:19:18

问题


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:

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

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

How to solve it?


回答1:


Under eAccelerator source dir:

make clean

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

make

sudo make install

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



来源:https://stackoverflow.com/questions/8330536/how-to-install-eaccelerator-for-xampp-on-mac-os-x-10-7-lion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!