Subscribed unsubscribe Subscribe Subscribe

hasen's tech life

Twitter: @hasen

Homebrewで入れたPHPでxhprof.soのエラーが出たので対応.

Homebrew PHP

# Homebrewで入れたPHPでxhprof.soのエラーが出たので対応.

# error
$ php -v
> Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.12/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so' - dlopen(/usr/local/Cellar/php56/5.6.12/lib/php/extensions/no-debug-non-zts-20131226/xhprof.so, 9): image not found in Unknown on line 0
> PHP 5.6.12 (cli) (built: Sep 22 2015 06:12:12)
> Copyright (c) 1997-2015 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

$ brew install josegonzalez/php/php56-xhprof
$ vi /usr/local/etc/php/5.6/php.ini

$ php -v
> PHP 5.6.13 (cli) (built: Sep 17 2015 21:19:48)
> Copyright (c) 1997-2015 The PHP Group
> Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies