Project

General

Profile

Actions

Bug #15608

closed

The /usr/local/bin is not searched for GraphicsMagick

Added by Franz Holzinger almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2006-02-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

This is CVS of TYPOcore from yesterday. PHP 4.3.10

I have downloaded and compiled with '--enable-magick-compat' the latest GraphicsMagick-1.1.7 and installed all the files into /usr/local/bin.
However the install tool brings the error message:
"No ImageMagick install available
It seems that there is no adequate ImageMagick installation available at the checked locations (, /usr/local/php/bin/)
An 'adequate' installation for requires 'convert', 'combine'/'composite' and 'identify' to be available"

I wonder why it wants to search in the php subdirectory of /usr/local which does not exist.

The settings are:
-------------------
$TYPO3_CONF_VARS['GFX']['im_path'] = '/usr/local/bin/'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_version_5'] = 'gm'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['gdlib_png'] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_v5effects'] = '1'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_combine_filename'] = 'composite'; // Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS['GFX']['im_path_lzw'] = '/usr/local/bin/'; // Modified or inserted by TYPO3 Install Tool.
---------------------------

(issue imported from #M2538)

Actions #2

Updated by Franz Holzinger almost 19 years ago

The error comes from
./TYPO3core/typo3/sysext/install/mod/class.tx_install.php

function checkTheConfig()    {
if (ini_get('safe_mode'))    {
$paths=array(ini_get('safe_mode_exec_dir'),'/usr/local/php/bin/');
}

How can I change here that the existing path will be used instead of the not extistant php subdirectory?

Actions #3

Updated by Franz Holzinger almost 19 years ago

After further investigation on this I have seen that this comes from 'safe_mode'.
Even if you set /usr/local/bin for the path for ImageMagick/GraphicsMagick, it will only search in /usr/local/php/bin

So I have tried to create this directory with a link to the one in /usr/local/bin.
However it is still not detected:
-------------------------
v10154:/usr/local/php/bin # ls -l
total 12
drwxr-xr-x 2 root root 1024 Feb 14 16:35 .
drwxr-xr-x 3 root root 1024 Feb 14 16:33 ..
lrwxrwxrwx 1 root root 17 Feb 14 16:34 animate -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:34 composite -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 conjure -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 convert -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 display -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 gm -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 identify -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 import -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 mogrify -> /usr/local/bin/gm
lrwxrwxrwx 1 root root 17 Feb 14 16:35 montage -> /usr/local/bin/gm

--------------------------
No ImageMagick install available
It seems that there is no adequate ImageMagick installation available at the checked locations (, /usr/local/php/bin/)
An 'adequate' installation for requires 'convert', 'combine'/'composite' and 'identify' to be available
-----------------------
However it would be nice if the Install Tool could give this information to the users.

Actions #4

Updated by Franz Holzinger almost 19 years ago

I have copied now everything into /usr/local/php/bin without using symbolic links. And I had to enter the safe_mode_exec_dir = /usr/local/php/bin in php.ini .

Now GraphicsMagick gets detected with:
--------------------------------
Available ImageMagick/GraphicsMagick installations:
/usr/local/php/bin/ gm
convert
composite
identify 1.1.7 1.1.7 1.1.7 1.1.7
----------------------------------
However there is an error:

Reading and converting images:
--------------------------------
There was no result from the ImageMagick operation
Below there's a dump of the ImageMagick commands executed:

/usr/local/php/binconvert -geometry 170x136! -colorspace RGB -sharpen 50 -quality 70 /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/jesus.jpg0 /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/pics/install_read_jpg.jpg

It does not use the path correctly here.

Actions #5

Updated by Franz Holzinger almost 19 years ago

Combine using a GIF mask with only black and white
There was no result from the ImageMagick operation
Below there's a dump of the ImageMagick commands executed:
---------------------------
/usr/local/php/bin/convert colorspace GRAY +matte /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/blackwhite_mask.gif /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/temp/2d5be0e52ffc4e4f87975158c1b83275.gif
/usr/local/php/bin/combine -compose over +matte /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/greenback.gif /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/jesus.jpg /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/temp/2d5be0e52ffc4e4f87975158c1b83275.gif /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/install_44f1273ab1.jpg
-------------------------------------------

Combine using a JPG mask with graylevels
There was no result from the ImageMagick operation
Below there's a dump of the ImageMagick commands executed:
--------------------------------------------
/usr/local/php/bin/convert -colorspace GRAY +matte /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/combine_mask.jpg /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/temp/6f7db7dc87da463bda89fcd44bd2b9d7.gif
/usr/local/php/bin/combine -compose over +matte /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/combine_back.jpg /var/www/vhosts/story-castle.net/httpdocs/test4/typo3/sysext/install/imgs/jesus.jpg /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/temp/6f7db7dc87da463bda89fcd44bd2b9d7.gif /var/www/vhosts/story-castle.net/httpdocs/test4/typo3temp/install_fcaf26c521.jpg

GDlib2 does not work here, the 'HELLO WORLD' does not get drawn, but the images are there.

[GFX][gdlib_2] = 1
Name : gd Relocations: (not relocatable)
Version : 2.0.32 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release : 6 Build Date: Tue Mar 22 18:54:14 2005

[GFX][im_version_5] =
This has been left empty.

Actions #6

Updated by Franz Holzinger over 18 years ago

Dimitri Tarassenko:
-------------------------------
if (ini_get('safe_mode')) {
$paths=array(ini_get('safe_mode_exec_dir'),'/usr/local/php/bin/');
}

means TYPO3 will check for GM both the directory(ies) specified in
safe_mode_exec_dir and /usr/local/php/bin. The answer to your question
"How can I change here that the existing path will be used instead of
the not extistant php subdirectory?" was not to change anything there,
but to add that existing path as a value for safe_mode_exec_dir
parameter in php.ini.
------------------------
So this issue can be solved by making this entry into the php.ini.

@Michael Stucki:
You should enhance the init script that this message gets displayed to the user that he has to change his entry 'safe_mode_exec_dir' in the php.ini. This would help them.
No other error correction is needed.

Actions #7

Updated by Michael Stucki over 18 years ago

You should enhance the init script that this message gets displayed
to the user that he has to change his entry 'safe_mode_exec_dir' in
the php.ini. This would help them.
No other error correction is needed.

After thinking about it, I decided to leave it as it is, because when in safe_mode, you cannot execute programs outside of safe_mode_exec_dir anyway. It is a requirement.

Actions

Also available in: Atom PDF