AW: [Typo3-debian] Debian PHP4-GD2 without gif support, what can i do?

Alexander Schories alexander at schories.com
Tue Aug 10 20:42:44 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 tine 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* fine work for sid users as well, for sid users it is
much easier to "apt-get" just 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. 

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 gif-support-patched library

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