方針/home/mysqlにインストールしたsharedライブラリをリンクさせる /home/apacheにインストールしたapxsを使用する コンパイルオプションCC="gcc -m64" ./configure \ --build=x86_64-centos5-linux-gnu \ --host=x86_64-centos5-linux-gnu \ --target=x86_64-centos5-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/lib \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/usr/com \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --cache-file=../config.cache \ --with-libdir=lib \ --with-config-file-path=/etc \ --with-config-file-scan-dir=/etc/php.d \ --enable-debug \ --with-pic \ --disable-rpath \ --with-pear=/usr/share/pear \ --with-bz2 \ --with-curl \ --with-exec-dir=/usr/bin \ --with-freetype-dir=/usr \ --with-png-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 \ --enable-wddx \ --with-kerberos \ --enable-ucd-snmp-hack \ --with-unixODBC=shared,/usr \ --enable-shmop \ --enable-calendar \ --without-mime-magic \ --without-sqlite \ --with-libxml-dir=/usr \ --enable-force-cgi-redirect \ --enable-pcntl \ --with-imap=shared \ --with-imap-ssl \ --enable-mbstring=shared \ --enable-mbregex \ --with-ncurses=shared \ --with-gd=shared \ --enable-bcmath=shared \ --enable-dba=shared \ --with-db4=/usr \ --with-xmlrpc=shared \ --with-ldap=shared \ --with-ldap-sasl \ --with-mysql=/home/mysql \ --with-mysql-sock=/tmp/mysql.sock \ --enable-dom=shared \ --with-snmp=shared,/usr \ --enable-soap=shared \ --with-xsl=shared,/usr \ --enable-xmlreader=shared \ --enable-xmlwriter=shared \ --enable-fastcgi \ --enable-pdo=shared \ --with-pdo-odbc=shared,unixODBC,/usr \ --with-pdo-mysql=shared,/home/mysql \ --with-pdo-sqlite=shared,/usr \ --enable-json=shared \ --enable-zip=shared \ --with-readline \ --enable-dbase=shared \ --with-pspell=shared \ --with-mcrypt=shared,/usr \ --with-mhash=shared,/usr \ --with-tidy=shared,/usr \ --with-apxs2=/home/apache/bin/apxs |