豚吐露@wiki
install
最終更新:
Bot(ページ名リンク)
-
view
PHP install
PHP 5.3.25
CentOS 6.4
CentOS 6.4
phpenv, php-build
phpモジュール切り替えをやってくれるツール。
phpモジュール切り替えをやってくれるツール。
大事なのは、PHPはbuild時にoptionを指定しないと使えない機能が多々有ることを覚えておく。
最初にどのoptionを有効にするか見極めて、必要なoptionを設定してやる必要がある。
PHPのdocumentに載ってるのに、いざ使ってみたら『Call to undefined method HOGE』って出るのはその典型。
最初にどのoptionを有効にするか見極めて、必要なoptionを設定してやる必要がある。
PHPのdocumentに載ってるのに、いざ使ってみたら『Call to undefined method HOGE』って出るのはその典型。
現在稼働中のPHPのbuild optionはphpinfo()で確認できる。


- ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-libdir=lib64 --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --with-pic --disable-rpath --without-pear --with-bz2 --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --enable-gd-native-ttf --with-t1lib=/usr --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pcre-regex --with-zlib --with-layout=GNU --enable-exif --enable-ftp --enable-sockets --with-kerberos --enable-shmop --enable-calendar --with-libxml-dir=/usr --enable-xml --with-mhash --libdir=/usr/lib64/php --enable-pcntl --enable-mbstring=shared --enable-mbregex --with-gd=shared --enable-bcmath=shared --enable-dba=shared --with-db4=/usr --with-xmlrpc=shared --with-ldap=shared --with-ldap-sasl --enable-mysqlnd=shared --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --enable-dom=shared --with-pgsql=shared --enable-wddx=shared --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr --enable-xmlreader=shared --enable-xmlwriter=shared --with-curl=shared,/usr --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr --with-pdo-mysql=shared,mysqlnd --with-pdo-pgsql=shared,/usr --with-pdo-sqlite=shared,/usr --with-pdo-dblib=shared,/usr --without-sqlite3 --enable-json=shared --enable-zip=shared --without-readline --with-libedit --with-pspell=shared --enable-phar=shared --with-mcrypt=shared,/usr --with-tidy=shared,/usr --with-mssql=shared,/usr --enable-sysvmsg=shared --enable-sysvshm=shared --enable-sysvsem=shared --enable-posix=shared --with-unixODBC=shared,/usr --enable-fileinfo=shared --enable-intl=shared --with-icu-dir=/usr --with-enchant=shared,/usr --with-recode=shared,/usr
-
- ./configure
- --build=x86_64-redhat-linux-gnu
- --host=x86_64-redhat-linux-gnu
- --target=x86_64-redhat-linux-gnu
- --program-prefix=
- --prefix=/usr
- --exec-prefix=/usr
- --bindir=/usr/bin
- --sbindir=/usr/sbin
- --sysconfdir=/etc
- --datadir=/usr/share
- --includedir=/usr/include
- --libdir=/usr/lib64
- --libexecdir=/usr/libexec
- --localstatedir=/var
- --sharedstatedir=/var/lib
- --mandir=/usr/share/man
- --infodir=/usr/share/info
- --cache-file=../config.cache
- --with-libdir=lib64
- --with-config-file-path=/etc
- --with-config-file-scan-dir=/etc/php.d
- --disable-debug
- --with-pic
- --disable-rpath
- --without-pear
- --with-bz2
- --with-exec-dir=/usr/bin
- --with-freetype-dir=/usr
- --with-png-dir=/usr
- --with-xpm-dir=/usr
- --enable-gd-native-ttf
- --without-gdbm
- --with-gettext
- --with-gmp
- --with-iconv
- --with-jpeg-dir=/usr
- --with-openssl
- --with-pcre-regex=/usr
- --with-zlib
- --with-layout=GNU
- --enable-exif
- --enable-ftp
- --enable-magic-quotes
- --enable-sockets
- --enable-sysvsem
- --enable-sysvshm
- --enable-sysvmsg
- --with-kerberos
- --enable-ucd-snmp-hack
- --enable-shmop
- --enable-calendar
- --without-sqlite
- --with-libxml-dir=/usr
- --enable-xml
- --with-system-tzdata
- --enable-force-cgi-redirect
- --enable-pcntl
- --with-imap=shared
- --with-imap-ssl
- --enable-mbstring=shared
- --enable-mbregex
- --with-gd=shared
- --enable-bcmath=shared
- --enable-dba=shared
- --with-db4=/usr
- --with-xmlrpc=shared
- --with-ldap=shared
- --with-ldap-sasl
- --with-mysql=shared,/usr
- --with-mysqli=shared,/usr/lib64/mysql/mysql_config
- --enable-dom=shared
- --with-pgsql=shared
- --enable-wddx=shared
- --with-snmp=shared,/usr
- --enable-soap=shared
- --with-xsl=shared,/usr
- --enable-xmlreader=shared
- --enable-xmlwriter=shared
- --with-curl=shared,/usr
- --enable-fastcgi
- --enable-pdo=shared
- --with-pdo-odbc=shared,unixODBC,/usr
- --with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config
- --with-pdo-pgsql=shared,/usr
- --with-pdo-sqlite=shared,/usr
- --with-sqlite3=shared,/usr
- --enable-json=shared
- --enable-zip=shared
- --without-readline
- --with-libedit
- --with-pspell=shared
- --enable-phar=shared
- --with-tidy=shared,/usr
- --enable-sysvmsg=shared
- --enable-sysvshm=shared
- --enable-sysvsem=shared
- --enable-posix=shared
- --with-unixODBC=shared,/usr
- --enable-fileinfo=shared
- --enable-intl=shared
- --with-icu-dir=/usr
- --with-enchant=shared,/usr
- --with-recode=shared,/usr
-
- ./configure
- --build=x86_64-redhat-linux-gnu
- --host=x86_64-redhat-linux-gnu
- --target=x86_64-redhat-linux-gnu
- --program-prefix=
- --prefix=/usr
- --exec-prefix=/usr
- --bindir=/usr/bin
- --sbindir=/usr/sbin
- --sysconfdir=/etc
- --datadir=/usr/share
- --includedir=/usr/include
- --libdir=/usr/lib64
- --libexecdir=/usr/libexec
- --localstatedir=/var
- --sharedstatedir=/usr/com
- --mandir=/usr/share/man
- --infodir=/usr/share/info
- --cache-file=../config.cache
- --with-libdir=lib64
- --with-config-file-path=/etc
- --with-config-file-scan-dir=/etc/php.d
- --disable-debug
- --with-pic
- --disable-rpath
- --without-pear
- --with-bz2
- --with-exec-dir=/usr/bin
- --with-freetype-dir=/usr
- --with-png-dir=/usr
- --with-xpm-dir=/usr
- --enable-gd-native-ttf
- --with-t1lib=/usr
- --without-gdbm
- --with-gettext
- --with-gmp
- --with-iconv
- --with-jpeg-dir=/usr
- --with-openssl
- --with-pcre-regex
- --with-zlib
- --with-layout=GNU
- --enable-exif
- --enable-ftp
- --enable-magic-quotes
- --enable-sockets
- --with-kerberos
- --enable-ucd-snmp-hack
- --enable-shmop
- --enable-calendar
- --with-libxml-dir=/usr
- --enable-xml
- --with-system-tzdata
- --with-mhash
- --enable-force-cgi-redirect
- --libdir=/usr/lib64/php
- --enable-pcntl
- --with-imap=shared
- --with-imap-ssl
- --enable-mbstring=shared
- --enable-mbregex
- --with-gd=shared
- --enable-bcmath=shared
- --enable-dba=shared
- --with-db4=/usr
- --with-xmlrpc=shared
- --with-ldap=shared
- --with-ldap-sasl
- --enable-mysqlnd=shared
- --with-mysql=shared,mysqlnd
- --with-mysqli=shared,mysqlnd
- --enable-dom=shared
- --with-pgsql=shared
- --enable-wddx=shared
- --with-snmp=shared,/usr
- --enable-soap=shared
- --with-xsl=shared,/usr
- --enable-xmlreader=shared
- --enable-xmlwriter=shared
- --with-curl=shared,/usr
- --enable-fastcgi
- --enable-pdo=shared
- --with-pdo-odbc=shared,unixODBC,/usr
- --with-pdo-mysql=shared,mysqlnd
- --with-pdo-pgsql=shared,/usr
- --with-pdo-sqlite=shared,/usr
- --with-pdo-dblib=shared,/usr
- --without-sqlite3
- --with-sqlite=shared,/usr
- --enable-json=shared
- --enable-zip=shared
- --without-readline
- --with-libedit
- --with-pspell=shared
- --enable-phar=shared
- --with-mcrypt=shared,/usr
- --with-tidy=shared,/usr
- --with-mssql=shared,/usr
- --enable-sysvmsg=shared
- --enable-sysvshm=shared
- --enable-sysvsem=shared
- --enable-posix=shared
- --with-unixODBC=shared,/usr
- --enable-fileinfo=shared
- --enable-intl=shared
- --with-icu-dir=/usr
- --with-enchant=shared,/usr
- --with-recode=shared,/usr
-
更新日: 2013年09月11日 (水) 12時15分09秒
添付ファイル