MrSefesi
MrSefesi

Reputation: 21

error when doing a phpunit or phpunit --version

I get an error message when I enter phpunit in my bash shell. I am using yosemite. I manually installed phpunit and was getting the error msg below. I also done a global installation composer global require "phpunit/phpunit=4.7.*"

(master) $: phpunit

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/opt/php56-imagick/imagick.so' - dlopen(/usr/local/opt/php56-         imagick/imagick.so, 9): Symbol not found: _core_globals
Referenced from: /usr/local/opt/php56-imagick/imagick.so
Expected in: flat namespace
in /usr/local/opt/php56-imagick/imagick.so in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library   '/usr/local/opt/php56-imagick/imagick.so' - dlopen(/usr/local/opt/php56-imagick/imagick.so, 9): Symbol not found: _core_globals
Referenced from: /usr/local/opt/php56-imagick/imagick.so
Expected in: flat namespace
in /usr/local/opt/php56-imagick/imagick.so in Unknown on line 0

Upvotes: 2

Views: 235

Answers (1)

Bjorn
Bjorn

Reputation: 5362

No need to reinstall. Just disable the extension by removing the symlink from the conf.d directory. Where the conf.d folder is located depends on your installation.

For example:

  • Homebrew: /usr/local/etc/php/5.6/conf.d
  • Ubuntu: /etc/php5/[sapi]/conf.d/

Upvotes: 1

Related Questions