?
Solved

php error after installing imagemagick and imagick

Posted on 2014-01-06
4
Medium Priority
?
818 Views
Last Modified: 2014-01-17
Hello All,

On a Mac OSX 10.8.5 machine running Apache, PHP, & MySQL for several months with no problems.

After installing ImageMagick via homebrew and imagick.so via pecl, PHP no longer runs, i.e. no pages will load and terminal scripts such as php echo 'hey'; all fail with the following error:

dyld: lazy symbol binding failed: Symbol not found: _MagickWandGenesis
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
  Expected in: flat namespace

dyld: Symbol not found: _MagickWandGenesis
  Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so
  Expected in: flat namespace

Sorry, my web searches have been less than fruitful on this one.

Any help would be greatly appreciated.

Thanks!
0
Comment
Question by:foxymoron7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
Berkson Wein earned 2000 total points
ID: 39762866
Looks like this might be a common problem.  Here's a possible solution though:
http://charles.lescampeurs.org/2013/06/18/add-c-header-include-path-pecl

Hope this helps.
0
 
LVL 1

Author Comment

by:foxymoron7
ID: 39769920
weinberk,

Sorry for the delay in responding and thank you for your help.  I'm hoping for a fix that won't require reinstalling imagick manually.  I'm going to leave this question open for a couple days longer in case there is another solution out there.  If nothing else pops up, i will accept your answer as the solution.

Thanks again!
0
 
LVL 15

Expert Comment

by:Berkson Wein
ID: 39771324
Ok.  Good luck Foxy.
I'm absolutely not a homebrew expert, but my experience with other installation tools / 3rd party package managers tells me that when they work, fine, but sometimes there's a package that conflicts with another and when that happens, it's best to take over.  (and for that reason I try not to use installers like homebrew)
0
 
LVL 1

Author Closing Comment

by:foxymoron7
ID: 39790343
Thank you, weinberk!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question