Difficulties installing PHP iMagick with MacPorts ImageMagick installation

Ryan Schmidt ryandesign at macports.org
Fri Mar 14 04:13:35 PDT 2008


On Mar 13, 2008, at 10:25, Elise van Looij wrote:

> I've installed php5 @5.2.5 and ImageMagick @6.3.9 with MacPorts 1.6  
> on Leopard. I then wanted to install the PHP wrapper for  
> ImageMagick, namely iMagick. Since iMagick is not a port, I decided  
> to follow recommendations and use
>
> > pecl install imagick
>
> or rather, to avoid any confusion
>
> > sudo /opt/local/bin/pecl install imagick
>
> The installation begin but always ends in the following error:
>
>   checking ImageMagick MagickWand API configuration program...  
> configure: error: not found. Please provide a path to MagickWand- 
> config or Wand-config program.
>
> After a lot of frutiless googling, I figured that the paths were  
> the problem, I decided on a different approach and adapted the  
> install instructions from the iMagic package to account for the  
> MacPorts paths, thus:
>
> > cd /Users/elisevanlooij/Downloads/imagick-2.1.1/imagick-2.1.1
> > sudo /opt/local/bin/phpize && ./configure --with-imagick=/opt/ 
> local && make && make install
>
> This resulted in the hope-giving message:
>
> ----------------------------------------------------------------------
> Libraries have been installed in:
>    /Users/elisevanlooij/Downloads/imagick-2.1.1/imagick-2.1.1/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>    - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
>      during execution
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
>
> Build complete.
> Don't forget to run 'make test'.
>
> Installing shared extensions:     /usr/lib/php/extensions/no-debug- 
> non-zts-20060613/
> cp: /usr/lib/php/extensions/no-debug-non-zts-20060613/#INST at 10132#:  
> Permission denied
> make: *** [install-modules] Error 1
>
>
> So now I'm stymied. There is indeed a document named imagick.so,  
> but it's in my download folder
>
> /Users/elisevanlooij/Downloads/imagick-2.1.1/imagick-2.1.1/modules/ 
> imagick.so
>
> which I don't think is a good location, Should I move  imagick.so  
> and if so, where and how? The PHP extension_dir is set to ./
> Any help would be appreciated.

Try running "sudo make install" (instead of "make install").

You might also want to consider making a port for imagick so that  
others won't have to go through what you went through to get it  
installed.





More information about the macports-users mailing list