Different version of imagemagick, problem with convert
Posted: 2013-01-19T19:37:06-07:00
Exec is executing a different version of ImageMagick,
With php,
convert -version
returns me:
Version: ImageMagick 6.5.4-7
Whereas executing as root in the command line returns me:
Version: ImageMagick 6.8.1-10
It seems I have convert in two places,
/usr/local/bin/convert
which gets executed from the command line with putty,
and then
/usr/bin/convert
which is executed with php which is also in /usr/bin/
so I wonder how to get rid of convert in /usr/bin
-and if that would let php find the other convert in /usr/local/bin/
or whether to be able to move all successfully that belongs to the newer version of im to overwrite files from the previous version of im , but do not know if this would cause conflict,
or whether to specify somehow for php to user convert at /usr/local/bin and not on usr/bin
thanks
decided to overwrite convert of old version of im in /usr/bin with the one in /usr/local/bin and it did not work, so moved back the file to /usr/local/bin
now I lost the old conversion file and need to run the new version of im with php, it does not find it automatically in /usr/local/bin, it seems it still looks at /usr/bin
With php,
convert -version
returns me:
Version: ImageMagick 6.5.4-7
Whereas executing as root in the command line returns me:
Version: ImageMagick 6.8.1-10
It seems I have convert in two places,
/usr/local/bin/convert
which gets executed from the command line with putty,
and then
/usr/bin/convert
which is executed with php which is also in /usr/bin/
so I wonder how to get rid of convert in /usr/bin
-and if that would let php find the other convert in /usr/local/bin/
or whether to be able to move all successfully that belongs to the newer version of im to overwrite files from the previous version of im , but do not know if this would cause conflict,
or whether to specify somehow for php to user convert at /usr/local/bin and not on usr/bin
thanks
decided to overwrite convert of old version of im in /usr/bin with the one in /usr/local/bin and it did not work, so moved back the file to /usr/local/bin
now I lost the old conversion file and need to run the new version of im with php, it does not find it automatically in /usr/local/bin, it seems it still looks at /usr/bin