Gå till innehållet

Bygga php

Parametrar för att bygga php

4.2.2

./configure --with-apxs=/opt/IBMHTTPD/bin/apxs --enable-discard-path --with-openssl --with-zlib-dir=/usr/local --with-zlib --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local --enable-exif --enable-ftp --with-gd=/usr/local --with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/local --with-t1lib=/usr/local --with-gettext --with-java=/usr/java --with-mysql=/usr/local/mysql --enable-sockets --enable-sysvsem --enable-sysvshm --with-dom --with-dom-xslt --with-dom-exslt --enable-yp

4.3.4

CC=cc ./configure --with-apxs=/opt/IBMHTTPD/bin/apxs --enable-force-cgi-redirect --enable-discard-path --with-fastcgi --with-zlib --enable-calendar --with-dom --with-dom-xslt --with-dom-exslt --enable-ftp --with-gettext --with-iconv --with-java=/usr/j2se --with-ldap --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-ncurses --with-oci8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql=/usr/local/mysql --enable-yp --with-tiff-dir=/usr/local --enable-exif --with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dri=/usr/local --with-t1lib=/usr/local

Sen måste OCI8_DIR/lib ändras till OCI8_DIR/lib32 i configure för att Oracles 32-bits libbar ska användas. Annars används 64-bits och det går inte när man kompilerar 32-bits.

4.3.5

Skillnaden mot 4.3.4 är att stöd för GD är inkompilerat, dvs man kan nu mecka med bilder i php (t.ex skala om för att göra thumbnails, mycket häftigt).

CC=cc ./configure --with-apxs=/opt/IBMHTTPD/bin/apxs --enable-force-cgi-redirect \ --enable-discard-path --with-fastcgi --with-zlib --enable-calendar --with-dom  --with-dom-xslt \ --with-dom-exslt --enable-ftp --with-gettext --with-iconv --with-java=/usr/j2se --with-ldap \ --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-ncurses --with-oci8 \ --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql=/usr/local/mysql \ --enable-yp --with-tiff-dir=/usr/local --enable-exif --with-png-dir=/usr/local \ --with-xpm-dir=/usr/local --with-freetype-dri=/usr/local --with-t1lib=/usr/local \ --with-gd=/usr/local --with-jpeg --with-jpeg-dir=/opt/sfw

Sen måste OCI8_DIR/lib ändras till OCI8_DIR/lib32 i configure för att Oracles 32-bits libbar ska användas. Annars används 64-bits och det går inte när man kompilerar 32-bits.