zhouu 发表于 2017-3-24 11:57:28

编译最新的PHP模块(Postgresql9.01)

  cd php-5.3.3
  cd ext/pgsql
  /usr/bin/phpize
  ./configure --prefix=/usr --with-pgsql=shared,/usr/pgsql-9.0 --with-php-config=/usr/bin/php-config
  make
  make install
  cd ..
  cd pdo_pgsql
  /usr/bin/phpize
  ./configure --prefix=/usr --with-pdo-pgsql=shared,/usr/pgsql-9.0 --with-php-config=/usr/bin/php-config
  make
  make install
  重启web服务器就可以看到psql9.01的连接器已经安装好了
  
页: [1]
查看完整版本: 编译最新的PHP模块(Postgresql9.01)