Mailinglisten-Archive |
Dominic Paschke wrote:
> Bei dem Versuch das ganze selber zu kompilieren bin ich dann leider gescheitert.
> Das ./configure von freetype(ttf) läuft fehlerlos, aber das "make" meldet
> mehrere Errors.Die Readme's und INSTALL haben mich leider auch nicht
> weitergbracht. Gibt es dazu irgendwo eine gute Lamp Anleitung, für Suse (mit GD
> und TTF) wo etwas mehr drin steht als ./configure,make,make install (im Archiv
> habe ich leider auch nichts gefunden ). Falls mir jemand weiterhelfen kann,
> wäre ich echt dankbar.
Es gibt selbstverständlich keinen Grund, Hausbesetzer-Linux zu
installieren. Auf Suse geht alles ganz normal und fällt 1:1 aus
der Tüte.
Kristian
kk_(at)_land:~/Source/php3 > rpm -q apache mod_php gdlib freetype
apache-1.3.6-17
mod_php-3.0.11-17
gdlib-1.3-5
freetype-1.2-5
kk_(at)_land:~/Source/php3 > cvs -z9 update -dAP
cvs server: Updating .
cvs server: Updating benchmarks
cvs server: Updating convertor
...
cvs server: Updating tests/functions
cvs server: Updating tests/switch
cvs server: Updating win32
kk_(at)_land:~/Source/php3 > cat do-conf
cp $0 $0.kris
# cvs update -d -P
autoconf
./configure --with-apxs=/usr/sbin/apxs \
--with-mysql=/usr\
--with-dbase=yes \
--with-config-file-path=/opt/GNUphp3/lib \
--with-exec-dir=/opt/bin \
--disable-dba \
--enable-sysvshm \
--enable-sysvsem \
--enable-debug=no \
--enable-safe-mode=no \
--enable-url-fopen-wrapper=yes \
--with-gd=/usr \
--with-ttf=/usr \
--enable-track-vars=yes \
--prefix=/opt/GNUphp3 \
--enable-force-cgi-redirect
# --with-ldap=/opt/ldap \
# --with-zlib=/opt \
# --with-oracle=/opt/oracle/oracle/8.0.3 \
# --with-imap=/work/opt/src/imap-4.1.BETA/c-client \
make
kk_(at)_land:~/Source/php3 > sh do-conf
... blablabla
kk_(at)_land:~/Source/php3 > ls -l *so
-rwxr-xr-x 1 kk users 1708039 Nov 30 11:30 libphp3.so
kk_(at)_land:~/Source/php3 > su -
Password:
land:~ # /sbin/init.d/apache stop
Shutting down service httpd: done
land:~ # mv /usr/lib/apache/libphp3.so /usr/lib/apache/libphp3.so.orig
land:~ # cp ~kk/Source/php3/libphp3.so /usr/lib/apache/libphp3.so
land:~ # ls -l /usr/lib/apache/libphp*
-rwxr-xr-x 1 root root 1708039 Nov 30 11:30 /usr/lib/apache/libphp3.so
-rwxr-xr-x 1 root root 3162374 Jul 23 15:23 /usr/lib/apache/libphp3.so.orig
land:~ # /sbin/init.d/apache start
Starting service httpd: done
land:~ # exit
kk_(at)_land:~/Source/php3 > cat ~/public_html/gif.php3
<?php
$im = imagecreate(100, 100);
$black = imagecolorallocate($im, 0, 0, 0);
$white = imagecolorallocate($im, 255, 255,255);
imagefilledrectangle($im, 0,0,100,100, $white);
imagettftext($im, 24, 27, 20, 99, $black, "/usr/ttfonts/arialbd.ttf", "Test");
header("content-type: image/gif");
imagegif($im);
?>
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)
php::bar PHP Wiki - Listenarchive