Re: libxslt/sablotron --- machten nich was se sollen glaub ich
Thomas Ziegler <[email protected]> Tue, 17 Dec 2002 16:57:14 +0100
| Newsgroups | gmane.comp.cms.bitflux.general.german |
|---|---|
| Message-ID | <[email protected]> |
Hi Johannes
in der sitemap.xml hab ich nichts geändert,
aber die Aktualisierung von PHP hat chregu in seinem Buch
PHP de Luxe (kaufen!) sehr gut beschrieben.
Das Durchbeißen hat bei mir allerdings etwas gedauert.
Da meine Notizen ja ganz gut angekommen sind,
schick ich noch mal ein paar nach.
Die Fragezeichen laß ich einfach mal drin.
Ist vielleicht auch überflüssiges dabei,
aber bevor Du jetzt drauflos kompilierst ...
Würde mich freuen, wenn's Dir wieder hilft.
Thomas
p.s. Habe vorher php 4.1.0 komplett runtergeschmissen
Installation/Aktualisierung von PHP auf SuSE-Linux 8.0
======================================================
PHP de Luxe S. 683 ff
PHP als DSO-Modul installieren
Tools (installieren mit YaST)
-----------------------------
autoconf, automake, bison, flex, gcc, gzip, make, m4, perl, tar
evtl. auch (www.baach.de/lamp-tutorial.html):
xdevel, libpng, xdevel (? nicht installiert)
Ausserdem braucht man verschiedene devel-Pakete, z.B.
ok apache-devel
ok libpng-devel
ok curl-devel aktualisieren ?
? db-devel
ok gd-devel Version 2 ?!
ok gdbm-devel Version 2 ?!
? gdgk-pixbuf-devel
ok glib-devel
ok glibc-devel
ok freetype2-devel
ok libiodbc-devel
ok libmcrypt-devel
ok libmng-devel
ok libpng-devel
ok libxml-devel
? mysql-devel
ok opendap2-devel
ok openssl-devel
ok postgresql-devel
ok sablot-devel
ok t1lib-devel
XML-bezogene Extensions
-----------------------
PHP de Luxe S. 704 ff
Mit kpackage überprüfen, ob folgende Bibliotheken installiert sind:
ok libxml (Version 2.4.12-98) => aktualisiert einschl. devel (auf
2.4.24-1)
ok libxslt (Version 1.0.8-143) => aktualisiert einschl. devel (auf
1.0.20-2)
ok expat (Version 1.95.2-126) => aktualisiert ohne devel (auf
1.95.5-1)
ok sablot (Version 0.82-29)
ok sablotron 0.96-1
ok sablotron-devel 0.96-1
? Sablot-0.96.1.patch ?
ok --with-expat-dir nicht notwendig, da mit rpm -U aktualisiert (s.u.)
ok --with-dom=/usr/include/libxml2 (war schon drin)
ok --with-dom-xslt
ok --with-dom-exslt
ok --with-xmlrpc
Dynamische Bilder mittels GD
----------------------------
GD-Bibliothek: aktuelle Version 2 bei http://www.boutell.com/gd/
gd-2.0.1.tar.gz (beta)
FreeType: aktuelle Version 2 bei http://www.freetype.org
freetype-2.1.2.tar.gz
ft2demos-2.1.2.tar.gz
ftdocs-2.1.2.tar.gz
entpackt in /usr/local/src
Reihenfolge der Installation
----------------------------
ok zunächst die zusätzlichen Bibliotheken,
ok anchließend FreeType,
ok dann GD,
ok zuletzt PHP
Installation von FreeType Version 2
-----------------------------------
ACHTUNG:
vorher /usr/lib/libttf.so.2 sichern und später zurückkopieren,
sonst macht die Installation von TrueType-Fonts Schwierigkeiten !
2mal make eingeben (Eigenheit, kann sich ändern)
gilt nicht mehr, ganz normal
./configure
make
checkinstall
freetype2 und freetype2-devel (Version 2.0.8-30)
waren von SuSE schon drauf
freetype (Version 1.3.1-497 von SuSE)
sollte nicht verwendet werden
wurde jetzt überschrieben
und wird in Zukunft verwendet
!=> ist aber Version 2.1.2
--with-ttf-dir=/usr/local
--with-ttf stand schon drin, dann wird aber vermutlich
die SuSE-Version verwendet
--with-freetype-dir=yes stand auch schon drin
war aber die Angabe für FreeType1
sinnvollerweise nur eins von beiden verwenden
Installation von GD Version 2
-----------------------------
tar zxvf gd-2.0.1.tar.gz
/usr/local/src
Makefile anpassen (Pfade zu den Grafikbibliotheken):
pay special attention to the INCLUDEDIRS and LIBDIRS settings
? INCLUDEDIRS -I/usr/include/X11 rausgeschmissen,
da nicht vorhanden
INSTALL_LIB=/usr/local/lib
statt INSTALL_LIB=/usr/lib
INSTALL_INCLUDE=/usr/local/include
statt INSTALL_LIB=/usr/include
/usr/local/sbin/checkinstall
anschließend ldconfig ausführen,
sonst Bibliothek für das System nicht sichtbar
(vgl. Kofler S. 377)
--with-gd-dir=/usr/local statt --with-gd=yes
--enable-gd-native-ttf war schon drin
Aktualisierungen
================
ok rpm -U libxml2-2.4.24-1.i386.rpm
ok rpm -i libxml2-devel-2.4.24-1.i386.rpm
ok rpm -U libxslt-1.0.20-2.i386.rpm
ok rpm -i libxslt-devel-1.0.20-2.i386.rpm
ok rpm -U expat-1.95.5-1.i386.rpm
Vor Sablotron:
ok rpm -i js-1.5rc4-2.i386.rpm
ok rpm -i js-devel-1.5rc4-2.i386.rpm
ok rpm -U --replacefiles sablotron-0.96-1.i386.rpm
ok rpm -i --replacefiles sablotron-devel-0.96-1.i386.rpm
Konflikt mit sablot-0.82-29, deshalb --replacefiles
ok FreeType Version 2 (s.o.)
ok GD Version 2 (s.o.)
Kompilieren
===========
Entpacken von php-4.2.3.tar.gz z.B. nach
/usr/local/src
tar zxvf php-4.2.3.tar.gz
chmod -R root:root php-4.2.3 (wegen checkinstall)
cd /usr/local/src/php-4.2.3
./configure mit den alten UND den neuen Optionen
ggfs. devel-Pakete mit YaST nachinstallieren.
make
Fehlermeldungen bei make:
make clean
ggfs. YaST-Pakete nachinstallieren
/usr/local/sbin/checkinstall
statt make install
httpd.conf
==========
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
php.ini kontrollieren
=====================
ggfs. neu nach /etc kopieren
PHP 4.1.0 Original (SuSE 8.0)
=============================
./configure --prefix=/usr/share \
--datadir=/usr/share/php \
--bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include \
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin \
--disable-debug --enable-bcmath --enable-calendar --enable-ctype \
--enable-dbase --enable-discard-path --enable-exif --enable-filepro \
--enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf \
--enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes \
--enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit \
--enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem \
--enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning \
--enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 \
--with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes \
--with-iodbc --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr \
--with-mcrypt --with-mysql=/usr --with-ndbm --with-pgsql=/usr \
--with-png-dir=/usr --with-qtdom=/usr/lib/qt2 --with-snmp \
--with-t1lib --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes \
--with-xml --with-xpm-dir=/usr/X11R6 \
--with-zlib=yes --with-openssl --with-curl --with-swf=./dist/ \
--with-imap-ssl --with-gd=yes --enable-xslt --with-xslt-sablot \
--with-mm --with-apxs=/usr/sbin/apxs \
i386-suse-linux
Erweiterungen
-------------
J --with-sablot-js macht evtl. Schwierigkeiten
J --with-dom-xslt
J --with-dom-exslt
J --with-xmlrpc
Änderungen
----------
? --with-xpm statt --with-xpm-dir=/usr/X11R6
brachte irgend eine Fehlermeldung bei configure
J --with-mysql statt --with-mysql=/usr
beseitigt den Fehler
configure: error: Cannot find header files under /usr
J --with-swf=./dist/ rausgeschmissen
Flash mittels der SWF-Extension ist veraltet
Statdessen Ming verwenden
ok --with-ttf-dir=/usr/local
(für Version 2)
ok --with-freetype-dir=yes rausgeschmissen (Version 1 ist ja
nicht mehr da)
ok --with-gd-dir=/usr/local statt --with-gd=yes (für Version 2)
PHP 4.2.3 mit XML- und GD-Extensions (ohne XPM) php-4.2.3-1.rpm
===============================================
./configure --prefix=/usr/share \
--datadir=/usr/share/php \
--bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include \
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin \
--disable-debug --enable-bcmath --enable-calendar --enable-ctype \
--enable-dbase --enable-discard-path --enable-exif --enable-filepro \
--enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf \
--enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes \
--enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit \
--enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem \
--enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning \
--enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 \
--with-dom-xslt --with-dom-exslt --with-xmlrpc \
--with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes \
--with-iodbc --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr \
--with-mcrypt --with-mysql --with-ndbm --with-pgsql=/usr \
--with-png-dir=/usr --with-qtdom=/usr/lib/qt2 --with-snmp \
--with-t1lib --with-tiff-dir=/usr --with-ttf-dir=/usr/local \
--with-xml --with-xpm \
--with-zlib=yes --with-openssl --with-curl \
--with-imap-ssl --with-gd-dir=/usr/local --enable-xslt --with-xslt-sablot
--with-sablot-js \
--with-mm --with-apxs=/usr/sbin/apxs \
i386-suse-linux
PHP 4.2.3 mit XML-Extensions (so läufts erstmal) php-4.2.3-1.rpm
------------------------------------------------
./configure --prefix=/usr/share \
--datadir=/usr/share/php \
--bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include \
--with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin \
--disable-debug --enable-bcmath --enable-calendar --enable-ctype \
--enable-dbase --enable-discard-path --enable-exif --enable-filepro \
--enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf \
--enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes \
--enable-mbstr-enc-trans --enable-mbstring --enable-memory-limit \
--enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem \
--enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning \
--enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 \
--with-dom-xslt --with-dom-exslt --with-xmlrpc \
--with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes \
--with-iodbc --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr \
--with-mcrypt --with-mysql --with-ndbm --with-pgsql=/usr \
--with-png-dir=/usr --with-qtdom=/usr/lib/qt2 --with-snmp \
--with-t1lib --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes \
--with-xml --with-xpm \
--with-zlib=yes --with-openssl --with-curl \
--with-imap-ssl --with-gd=yes --enable-xslt --with-xslt-sablot
--with-sablot-js \
--with-mm --with-apxs=/usr/sbin/apxs \
i386-suse-linux
At 17.12.2002 15:06 +0100, you wrote:
>Hallo - ich schon wieder
>(es bleibt mir nicht viel, außer auf diesem weg zu insistieren oder?)
>
>jetzt dieses:
>zuerst hab ich die seite (bei mir http://127.0.0.1:4000/) aufrufen wollen
>- da kam
> Fatal error: Call to undefined function:
> domxml_xslt_stylesheet_file() in
> /home/joe/bitflux/bitlib/php/popoon/components/transformers/libxslt.php
> on line 45
>
>hab mich gewundert (weil ich dachte ./cofig...
>--with-dom=/usr/include/libxml2 würde reichen)
>
>hab dann in sitemap.xml die zeile
><map:transform type="libxslt" src="globals://xslt"
>xslparams="globals://XslParams" />
>in
><map:transform type="xslt" src="globals://xslt"
>xslparams="globals://XslParams" />
>geändert
>
>um, laut empfehlung sablotron zu verwenden
>da kam dann:
>
> Warning: Sablotron error on line 10: cannot open file
> '/home/joe/bitflux/xsl/docbook/paraAndBelow.xsl'
> in
> /home/joe/bitflux/bitlib/php/popoon/components/transformers/xslt.php on line 62
>
>(wo müsste ich das einstellen?)
>
>--->
>/home/joe/bitflux/demo/xsl nach /home/joe/bitflux/xsl kopiert
>
>jetzt erscheint eine seite --- die sieht wirr aus (auch die quelle -- es
>scheint also wat falsch zu laufen)
>
>
>(werds noch mit neu kompiliertem php --with-dom-xslt[=DIR]
>--with-dom-exslt[=DIR] versuchen )
>
>mfg
>johannes
>
>_________________________________________________________________
>Tired of spam? Get advanced junk mail protection with MSN 8.
>http://join.msn.com/?page=features/junkmail
>
>_______________________________________________
>bitflux-cms-de mailing list
>[email protected]
>http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms-de