473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Imagemagick and php

Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
../configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??

eholz1

Jan 7 '07 #1
6 2920
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.comwrote:
>Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
./configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??
I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 8 '07 #2
here is where imagemagick put the libraries:

Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

tnx,

eholz1

Andy Hassall wrote:
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.comwrote:
Hello Users,

I am not sure if this is the place to post an imagemagick question -
please advise.
I have imagemagick 6.3 installed, runs from command line ok, etc.

I have tried (several times now) to install the "MagicWand" PHP api
from the imagemagik site.

This flatly refused to "make" configure seems ok, I follow the
directions provided from the Imagemagick "INSTALL" file that comes in
the source tar.gz file (0-1.9)

I always get this error when I try to do the "make" for php after the
./configure (with a whole bunch of options (pdo, gc, zlib, etc)

error:
ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

the /files/PHP etc if the path to my php source.

Any one seen this error before??

I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #3
And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH, no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.

Thanks again,

eholz1
eholz1 wrote:
here is where imagemagick put the libraries:

Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

tnx,

eholz1

Andy Hassall wrote:
On 7 Jan 2007 15:07:08 -0800, "eholz1" <ew****@gmail.comwrote:
>Hello Users,
>
>I am not sure if this is the place to post an imagemagick question -
>please advise.
>I have imagemagick 6.3 installed, runs from command line ok, etc.
>
>I have tried (several times now) to install the "MagicWand" PHP api
>from the imagemagik site.
>
>This flatly refused to "make" configure seems ok, I follow the
>directions provided from the Imagemagick "INSTALL" file that comes in
>the source tar.gz file (0-1.9)
>
>I always get this error when I try to do the "make" for php after the
>./configure (with a whole bunch of options (pdo, gc, zlib, etc)
>
>error:
>ext/magickwand/.libs/magickwand.o: In function
>`zif_magickrecolorimage':
>/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
>reference to `MagickRecolorImage'
>collect2: ld returned 1 exit status
>make: *** [sapi/cli/php] Error 1
>
>the /files/PHP etc if the path to my php source.
>
>Any one seen this error before??
I just compiled up ImageMagick and MagickWand and it went smoothly. Where did
you install the ImageMagick libraries - it seems that your linker can't find
them when it's building MagickWand.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #4
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.comwrote:
>Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???
That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
>And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH, no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.
Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar.gz.1
cd ImageMagick-6.3.1/
../configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
../configure --with-magickwand=shared,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 9 '07 #5
Thanks Andy,

It seems I have other problems as well - PHP is reading a php.ini file,
but not the one I think it is supposed to be reading! I will see if
there is another file hiding!!!

Thanks,

eric
Your step by step is good. I also need to find out how to reset my
LD_LIBRARY_PATH env variable, I exported the wrong one
Andy Hassall wrote:
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.comwrote:
Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
how to I tell php where to find them???

That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
And here is the error message I get
(I have attempted to export the LD_LIBRARY_PATH, no guarantee I did it
correctly!)

ext/magickwand/.libs/magickwand.o: In function
`zif_magickrecolorimage':
/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
reference to `MagickRecolorImage'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Above is the error I get.

Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar.gz.1
cd ImageMagick-6.3.1/
./configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
./configure --with-magickwand=shared,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 10 '07 #6
Success At last!

Hello Andy (do you know you have over 2300 posts in this group!!!)!

I followed your set up suggestions - I am not quite sure what actually
worked, but
I ended up rebuilding php, and added the --with-magickwand=/usr/local
option and
the configure and make actually ran without errors (my box may be
faster than yours, it is a rompin-stomping 700mhz PIII!). I did a make
install, and fired up apache and php, and
the phpinfo() showed the magickwand stuff - the old demo.php page for
MagickWand works.
Now all i have to do is figure out how to use it!!!

Thanks for the tips

eholz1
eholz1 wrote:
Thanks Andy,

It seems I have other problems as well - PHP is reading a php.ini file,
but not the one I think it is supposed to be reading! I will see if
there is another file hiding!!!

Thanks,

eric
Your step by step is good. I also need to find out how to reset my
LD_LIBRARY_PATH env variable, I exported the wrong one
Andy Hassall wrote:
On 8 Jan 2007 22:02:45 -0800, "eholz1" <ew****@gmail.comwrote:
>Libraries have been installed in:
/files/PHP/php-5.2.0/ext/magickwand/modules
>how to I tell php where to find them???
That's a slightly odd location for the ImageMagick libraries? That's where the
magickwand extension might end up though.
>And here is the error message I get
>(I have attempted to export the LD_LIBRARY_PATH, no guarantee I did it
>correctly!)
>
>ext/magickwand/.libs/magickwand.o: In function
>`zif_magickrecolorimage':
>/files/PHP/php-5.2.0/ext/magickwand/magickwand.c:7763: undefined
>reference to `MagickRecolorImage'
>collect2: ld returned 1 exit status
>make: *** [sapi/cli/php] Error 1
>
>Above is the error I get.
Here's what I did (I've copied these from my shell history - I'm not running
them again as this is on my severely ancient Linux server and it takes ages!)

(1) Compile and install ImageMagick. I put it in /usr, you may well have it
somewhere else, or perhaps you've installed it from an RPM.

wget ftp://ftp.imagemagick.org/pub/ImageM...eMagick.tar.gz
tar zxvf ImageMagick.tar.gz.1
cd ImageMagick-6.3.1/
./configure --prefix=/usr
make
make install

(2) Compile and install MagickWand PHP extension. I didn't follow the
instructions in the INSTALL file as I didn't want to rebuild PHP entirely and
static link it in; instead I've built a shared module.

wget http://www.magickwand.org/download/p...-0.1.9.tar.bz2
tar jxvf magickwand-0.1.9.tar.bz2
cd magickwand
phpize
./configure --with-magickwand=shared,/usr
make
make install

The directory after the comma in configure might be the key to you getting it
working.

(3) Add an extension= to php.ini, stop'n'start Apache and look in the output of
phpinfo() - magickwand is loaded. Or:

$ php -m | grep magick
magickwand

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jan 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Randell D. | last post by:
Folks, I've not used ImageMagick before - I've worked with the gd functions that are pre-compiled in PHP and found some of the limits problematic yet heard better reviews on ImageMagick. I've...
3
by: Joe | last post by:
Hey I have tried to install ImageMagick on my server, but my apache stalls when i try to start it with the following line added to my php.ini file: extension=php_imagick.dll I can't even...
5
by: nawfer | last post by:
for to resize and copy original photos into a new directory and to use for a thumbnail gallery on the web; what is better: GD, Netpbm or imagemagick and why? very thank
1
by: shanergb | last post by:
Hi all. I'm creating a web-based application that uses PHP, MySQL & Apache on a Windows platform. What I need to do is create images on the fly with either GD or ImageMagick, display them on the...
3
by: Chuck Anderson | last post by:
I am trying to use ImageMagick from a Php script running under Windows XP. I have installed the latest version of ImageMagick - 6.2.1-7 and even tried backing up to version 5.5.7 (based on a...
5
by: Jim Red | last post by:
Hello Can someone give me an example how to use the Imagemagick - Identity command? Cheers Jim
2
by: azrael | last post by:
Hy did anyone manage to work with imahemagick through python. I've been googling like a crazy for some instalation instructions, but i cant find anything. please help. thnx
3
by: femtox77 | last post by:
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a...
0
by: empiresolutions | last post by:
I am working with a TIF to JPG conversion that will result in the JPG being printed from a web page. My issue is the final JPG image prints VERY blurry. The TIF file that has the following...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.