Created
February 13, 2012 20:32
-
-
Save flaudisio/1819978 to your computer and use it in GitHub Desktop.
config-PHP52 v2.0 (rev. 3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
######################################## | |
# | |
# config-PHP52 v2.0rev3 | |
# Configuração para compilação do PHP 5.2.x | |
# | |
# por Flaudisio Tolentino - flaudisio at flaudisio.com | |
# Livre para alterações. | |
# | |
######################################## | |
# | |
# Dependências *conhecidas*: | |
# | |
# libbz2-dev | |
# libcurl4-openssl-dev | |
# libc-client-dev OU libc-client2007e-dev (--with-imap-ssl também implica em --with-kerberos) | |
# libmcrypt-dev | |
# libsasl2-dev | |
# libsnmp-dev | |
# libt1-dev | |
# libxml2-dev | |
# | |
######################################## | |
[ ! -e config.guess ] && echo "Erro fatal: diretório errado?" && exit 1 | |
SISTEMA=`sh config.guess` | |
./configure \ | |
--host=$SISTEMA --build=$SISTEMA --target=$SISTEMA \ | |
--prefix=/usr/local/php --exec-prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc/conf.d \ | |
--enable-cli --enable-fastcgi --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --enable-mbstring=shared \ | |
--enable-pdo=shared --enable-soap=shared --enable-sockets --enable-wddx=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip \ | |
--with-bz2=shared --with-curl=shared --with-gd=shared --with-gettext --with-iconv --with-imap=shared --with-imap-ssl --with-kerberos \ | |
--with-jpeg-dir=/usr/lib/libjpeg.a --with-png-dir=/usr/lib/libpng.a --with-freetype-dir=/usr/lib/libfreetype.a \ | |
--with-ldap=shared --with-ldap-sasl --with-mcrypt=shared --with-openssl=shared --with-pic --with-snmp=shared \ | |
--with-mysql=shared --with-mysqli=shared --with-pgsql=shared --with-sqlite=shared \ | |
--with-pdo-mysql=shared --with-pdo-pgsql=shared --with-pdo-sqlite=shared \ | |
--with-t1lib --with-xmlrpc=shared --with-xsl=shared --with-zlib \ | |
--disable-debug --disable-debug --disable-rpath | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment