[Typo3-debian] Debian Sarge PHP4-GD2 with gif support for typo3 solution
Alexander Schories
alexander at schories.com
Tue Aug 10 22:30:39 CEST 2004
*****************************************************
*** A solution for debian sarge (and debian sid) ***
*** ***
*** for a working gd2 installation ***
*** (even with gif support) ***
*** for Typo3 ***
*** ***
*** - updated - ***
*** ***
*** as of 10.08.2004 ***
*****************************************************
Hint for sid users:
As sid is updated so fast, at the time of this rewrite sid`s gd2 libraries
*should* now already provide sufficent gif support.
So this solution is now maybe only interesting to sarge users. Although it
will *still* work fine for sid users as well, for those it is much easier to
just "apt-get" the appropriate "original" sid-packages.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Main contribution by Arco and M.Stucki.
Without Arco`s detailled help and Michael`s support this would have been
impossible, at least for me. ;-)
Rene Dustmann found an annoying mistake / typo that caused a logical
dependency headache after compiling. Sorry once again and thank you, Rene.
Micheal Stucki was right to kick me, for not showing enough respect for the
guys at boutell.com - yes, the creators of gd and gd2 finally managed to
support gif format natively again. No need for patches / patched versions of
gd2 to gain gif-support anymore.
Thank you very much, guys!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Here we go:
You are running latest debian sarge or even sid? You used apt-get to fetch
latest official packages "libgd2-xpm" (2.0.023), php4 (4.3.4) and "php4-gd2"
to have typo3 rendering wonderfull shadows beneath a text in realtime? But
your results are screwed pictures with "interlace-like effects" - no real
shadows at all?
Then you might try this:
1. Obtain the gd2 library with gif support
Download directly always *latest* official source from:
http://www.boutell.com/gd/
Because now even the creators of gd and gd2 natively support the gif format
again!
- or -
If you really need an older version of gd2 with gif support: Download older,
patched version(s) from:
Visit http://www.rime.com.au/gd/ and download "A Patched Library with GIF
support." ( http://downloads.rhyme.com.au/gd/gd-2.0.26gif.tar.gz ). On
08.07.2004 this will not infringe patents anywhere on this planet anymore.
;)
2. Extract it
untar gd-2.0.26gif.tar.gz with
tar -zxvf gd-2.0.26gif.tar.gz
and change into the extracted directory with:
cd gd-2.0.26gif
3. Install all dependencies for a compilation
Just execute following line:
apt-get install libgd2-xpm libgd2-xpm-dev t1lib-dev
This will install libgd2-xpm-dev, libgd2-xpm and t1lib-dev.
4. Compile GD2
Now successivly execute following three lines to configure, compile and
finally install your gd2-library with gif-support.
./configure --prefix=/usr (NO tailing slash at the end!!) make make install
5. Compile php4-gd2
Make a new directory, e.g. called php4gd2
mkdir php4gd2
Change into it:
cd php4gd2
Get the source of the package and compile it:
apt-get -b source php4-gd2 (hope you have all dependencies; if not,
install them with: apt-get install [name of the package] and the try
again)
Finally install your package, e.g. if it`s called
"php4-gd2_4.3.2+rc3-2_i386.deb":
dpkg -i php4-gd2_4.3.2+rc3-2_i386.deb
6. Cleanup and Re-Installation (don`t forget/ignore that please!)
Now clean up the system from the original but "broken" gd2 packages, because
they *might* cause strange problems (they did here..) and reinstall only
your compiled binaries
Uninstall original libgd2-xpm-dev and libgd2-xpm with
apt-get remove libgd2-xpm-dev libgd2-xpm
Change into your /gd-2.0.26gif directory again and execute again
make install
Change into your /php4gd2 directory again and execute again:
dpkg -i php4-gd2_4.3.2+rc3-2_i386.deb
7. Enjoy a full featured Typo3 with latest, as of 04.07.2004, GD2 (v.2.0.26)
on Debian Sarge or Debian Sid
:-)
Let me thank Arco once again for his great help (link to patched gd2, many
compilation hints..)!
Best Regards
Alexander Schories
Tuebingen, Germany
More information about the TYPO3-debian
mailing list