Zum Inhalt springen

Einige Grafikfunktionalitäten fehlen

Erstellt am 6. März 2006 · 6 Antworten · letzte Antwort am 7. März 2006

Tags: Bilder, Frage

dj_jeff ·

Laut Install- Tool funktioniert nicht:
- Read PNG
- Scaling Images PNG
- Combining images komplett (combine- Befehl existiert nicht auf Server)
- gd library sagt gleich "Call to undefined function: imagettfbbox()"

Was ist das Problem ?

Hier die notwendigen Facts:

Auf SuSE- Linux Distribution 9.2 (Kernel 2.6.4-52-smp, gcc 3.3.3) befindet sich manuell kompiliert:
- Apache 2.0.55 (/usr/local/apache2)
- MySQL- Packages als RPM 5.0.15
-libpng 1.2.8
- zlib 1.2.3
- Freetype 2.1.10 (/usr/local/freetype)
- ImageMagick 6.2.6 (/usr/local/ImageMagick)
- GD 2.0.33 (/usr/local/gd)
- PHP 4.4.1 (/usr/local/bin)

In leicht abgewandelter Form habe ich die Zusatzmodule nach Anleitung von Carsten Rose installiert:
* Freetype:
./configure --prefix=/usr/local/freetye --enable-shared

* ImageMagick:
./configure --prefix=/usr/local/ImageMagick --enable-lzw \
--includedir=/usr/local/freetype/include/freetype --without-perl \
--enable-shared

* gdlib- Makefile:
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf
INCLUDEDIRS=-I. -I/usr/local/freetype/include
PREFIX=/usr/local/gd
INSTALL_LIB=${PREFIX}/lib
INSTALL_INCLUDE=${PREFIX}/include
INSTALL_BIN=${PREFIX}/bin

PHP:
./configure --bindir=/usr/bin --datadir=/usr/share/php --enable-discard-path --enable-force-cgi-redirect --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars=yes --enable-trans-sid --enable-versioning --enable-wddx --enable-yp --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/etc --with-gd=/usr/local/gd --with-gettext --with-jpeg-dir --with-mysql=/usr --with-png_dir --with-tiff-dir --with-ttf=/usr/local/freetype --with-xml --with-zlib=yes --enable-gd-native-ttf

Die localconf.php habe ich folgendermaßen über das Install- Tool angepasst:

$TYPO3_CONF_VARS["GFX"]["gdlib_2"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_path"] = '/usr/local/ImageMagick/bin/';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_path_lzw"] = '/usr/bin/ImageMagick/bin/';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_version_5"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_negate_mask"] = '0';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_no_effects"] = '0';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_mask_temp_ext_gif"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["TTFdpi"] = '96';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["sitename"] = 'Friweika_HP';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["SYS"]["doNotCheckReferer"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["BE"]["unzip_path"] = '/usr/bin/unzip';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["gdlib_png"] = '0';       // Modified or inserted by TYPO3 Install Tool. 
$TYPO3_CONF_VARS["GFX"]["im_imvMaskState"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
$TYPO3_CONF_VARS["GFX"]["im_v5effects"] = '1';	//  Modified or inserted by TYPO3 Install Tool.
// Updated by TYPO3 Install Tool 06-03-2006 07:07:29
$TYPO3_CONF_VARS['EXT']['extList'] = 'tsconfig_help,context_help,extra_page_cm_options,rte,impexp,sys_note,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate_analyzer,tstemplate_styler,func_wizards,wizard_crpages,wizard_sortpages,lowlevel,install,belog,beuser,phpmyadmin,aboutmodules,imagelist,setup,taskcenter,sys_notepad,taskcenter_recent,taskcenter_rootlist,info_pagetsconfig,viewpage,csh_de';	//  Modified or inserted by TYPO3 Extension Manager.
// Updated by TYPO3 Extension Manager 06-03-2006 08:42:39
$TYPO3_CONF_VARS["GFX"]["gdlib"] = '1';       // Modified or inserted by TYPO3 Install Tool. 
// Updated by TYPO3 Install Tool 06-03-2006 14:26:18
?>
woida ·

- Combining images komplett (combine- Befehl existiert nicht auf Server)

Dann liegt combine wohl nicht im path

- gd library sagt gleich "Call to undefined function: imagettfbbox()"

Anscheinend ist gd nicht (richtig) installiert (Server neu gestartet?). Ein Blick ins phpinfo() sollte das klären.

Triviale Frage: Hast du auch ein make & make install gemacht?

Warum kompilierst du die Pakete eigentlich selbst?

dj_jeff ·
woida schrieb

Dann liegt combine wohl nicht im path

Das nicht, aber composite. Die Variante war im Install- Tool beschrieben. Wenn auch die Greylevel- Bilder im Test seltsame "Geisterscheinungen" haben.

woida schrieb

Anscheinend ist gd nicht (richtig) installiert (Server neu gestartet?). Ein Blick ins phpinfo() sollte das klären.

Auszug phpinfo:
gd
GD Support enabled
GD Version 2.0 or higher
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

woida schrieb

Triviale Frage: Hast du auch ein make & make install gemacht?

Aber sicher. Ich hab sogar jetzt noch einmal den Freetype- Pfad von ImageMagick angepasst.
./configure --prefix=/usr/local/ImageMagick --enable-lzw \
--includedir=/usr/local/freetype/include/freetype2/freetype --without-perl \
--enable-shared

woida schrieb

Warum kompilierst du die Pakete eigentlich selbst?

Wie schon gesagt, arbeite ich noch auf einer etwas älteren SuSE- Distribution. Ein Komplett- Update auf 10.0 oder die ganzen Abhängigkeiten einzeln zu lösen, wollte ich mir im laufenden System ersparen. Des weiteren lief Apache, PHP, MySQL ohne die entsprechenden Zusatzmodule in kompilierter Form schon einige Zeit auf dem Webserver. Um die entsprechenden Pakete aktuell zu halten, bin ich auf die Idee gekommen, alles manuell rein zu kompilieren.
Außerdem kommt beim Herunterladen mittels ISDN- Leitung (hier gibt's leider keine DSL- Unterstützung) nichtr gerade Freude auf 😉 .

tandem ·

* Freetype:
./configure --prefix=/usr/local/freetye --enable-shared

Ist das nur hier ein Tippfehler - freetye ?

dj_jeff ·

Ja, ist nur ein Tippfehler im Forum gewesen. Beim Kompilieren stand schon "freetype" drin. Mit <TAB> ist die Fehlerwahrscheinlichkeit auf der Console ja gering.

dj_jeff ·

So sieht es aus.

OK, ich habe mich entschlossen nun doch den großen Schritt zu gehen und das Linux- System auf SuSE Distribution 10.0 anzuheben. Ich hoffe mal, dass danach alles was bisher lief noch funktioniert. Und dann werde ich dort mal die neueren RPM- Pakete von apache & Co in Angriff nehmen. Ich hoffe mal, dass ich dann bloß die Pfade rumnehmen brauche und Typo3 nicht irgendwo was Absolutes hinterlegt hat.

Melde mir nochmal, wie der aktuelle Stand ist.