安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/sca_sdo.
Note:
Earlier versions of the SDO extension required a separate shared library for the XML DAS. This is now obsolete and any references to php_sdo_das_xml.dll or sdo_das_xml.so should be removed from your php.ini.
The three SDO components - the SDO core, the XML DAS and the Relational DAS - are packaged together with Service Component Architecture (SCA) into one PECL project, SCA_SDO, so you can download SCA and all three parts of SDO with the command:
pecl install SCA_SDO
This command will build the SDO shared library as well as installing the PHP files that make up SCA and the SDO Relational DAS.
If you want to use the latest beta version, then instead run:
pecl install SCA_SDO-beta
The pecl command automatically installs the SDO module into your PHP extensions directory. To enable the SDO extension you must add the following line to php.ini:
extension=sdo.so
For more information about building PECL packages, consult the PECL installation section of the manual.
This section describes how to build the SDO core and XML DAS on Linux. You would only need to know how to do this if you wish to build a recent version that you have checked out of SVN.
Change to the main extension directory: cd < wherever your sdo code is >
Run phpize, which will set up the environment to compile SDO.
Next, run ./configure; make; make install. Please note, you may need to login as root to install the extension.
Make sure that the module is loaded by PHP, by adding extension=sdo.so to your php.ini file.
Trouble with sdo (2012-09-19 10:46:31)
It is a shame they haven't upgraded this package. However, there is a update on github so that it will compile on php 5.3. Unfortunately it still doesn't compile on a Mac, because is uses a preprocessor macro (__WORDSIZE) which is not defined. I just assumed it to be 32b, and edited the code accordingly (using CloCkWeRX's branch).
arvenil at klecza dot pl (2012-09-04 07:34:23)
This extension doesn't compile anymore https://bugs.php.net/bug.php?id=58951