Created
March 29, 2012 08:09
-
-
Save andriesss/2234809 to your computer and use it in GitHub Desktop.
Compiling PHP from source on Ubuntu
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
sudo apt-get install make gcc bison re2c libxpm-dev libxml2-dev libpcre3-dev libsqlite3-dev libcurl4-dev | |
sudo apt-get install libpng-dev libjpeg-dev libmysqlclient-dev | |
./configure \ | |
--enable-embed \ | |
--with-regex=php \ | |
--with-xpm-dir=/usr \ | |
--disable-rpath \ | |
--disable-static \ | |
--with-pic \ | |
--enable-bcmath \ | |
--enable-ctype \ | |
--without-gdbm \ | |
--with-iconv \ | |
--enable-mbstring \ | |
--with-pcre-regex=/usr \ | |
--with-libxml-dir=/usr \ | |
--with-zlib \ | |
--enable-soap \ | |
--with-curl=shared,/usr \ | |
--with-zlib-dir=/usr \ | |
--with-gd=shared --enable-gd-native-ttf \ | |
--with-jpeg-dir=shared,/usr \ | |
--with-xpm-dir=shared,/usr/X11R6 \ | |
--with-png-dir=shared,/usr \ | |
--with-ldap=shared,/usr \ | |
--with-mysqli=shared,/usr/bin/mysql_config \ | |
--with-sqlite=shared \ | |
--enable-pdo=shared \ | |
--without-pdo-dblib \ | |
--with-pdo-mysql=shared,/usr \ | |
--with-pdo-sqlite=shared,/usr \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment