Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3343353
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: 系统运维

2009-05-24 02:17:24

/bin/sh /usr/local/src/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/pdo/ -I/usr/local/src/php-5.2.9/ext/pdo/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.9/include -I/usr/local/src/php-5.2.9/main -I/usr/local/src/php-5.2.9 -I/usr/include/libxml2 -I/usr/local/src/php-5.2.9/ext/date/lib -I/usr/local/src/php-5.2.9/TSRM -I/usr/local/src/php-5.2.9/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /usr/local/src/php-5.2.9/ext/pdo/pdo_sqlstate.c -o ext/pdo/pdo_sqlstate.lo
/bin/sh /usr/local/src/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/src/php-5.2.9/ext -Iext/pdo_oci/ -I/usr/local/src/php-5.2.9/ext/pdo_oci/ -DPHP_ATOM_INC -I/usr/local/src/php-5.2.9/include -I/usr/local/src/php-5.2.9/main -I/usr/local/src/php-5.2.9 -I/usr/include/libxml2 -I/usr/local/src/php-5.2.9/ext/date/lib -I/usr/local/src/php-5.2.9/TSRM -I/usr/local/src/php-5.2.9/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c -o ext/pdo_oci/pdo_oci.lo
In file included from /usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:31:
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:21:17: error: oci.h: No such file or directory
In file included from /usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:31:
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:26: error: expected specifier-qualifier-list before 'sb4'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:32: error: expected specifier-qualifier-list before 'OCIServer'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:48: error: expected specifier-qualifier-list before 'OCIDefine'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:62: error: expected specifier-qualifier-list before 'OCIStmt'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:73: error: expected specifier-qualifier-list before 'OCIBind'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:85: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PDO_OCI_INIT_MODE'
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/src/php-5.2.9/ext/pdo_oci/php_pdo_oci_int.h:89: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_oci_error'
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:71: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PDO_OCI_INIT_MODE'
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:87: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c: In function 'zm_startup_pdo_oci':
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:96: error: 'pdo_oci_Env' undeclared (first use in this function)
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:96: error: (Each undeclared identifier is reported only once
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:96: error: for each function it appears in.)
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:96: error: 'PDO_OCI_INIT_MODE' undeclared (first use in this function)
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c: In function 'zm_shutdown_pdo_oci':
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:111: error: 'dvoid' undeclared (first use in this function)
/usr/local/src/php-5.2.9/ext/pdo_oci/pdo_oci.c:111: error: expected expression before ')' token
make: *** [ext/pdo_oci/pdo_oci.lo] 错误 1
[oracle@oracle01 php-5.2.9]$
处理方法:
export ORACLE_HOME=/opt/oracle/product/10.2.0/

+--------------------------------------------------------------------+
| Notice:                                                            |
| If you encounter processes when using a local Oracle-DB   |
| please recompile PHP and specify --enable-sigchild when configuring|
| (This problem has been reported under Linux using Oracle >= 8.1.5) |
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.
[root@oracle01 php-5.2.9]# make
[root@oracle01 php-5.2.9]# make install
Installing PHP SAPI module:       apache2handler
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/libtool' libphp5.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp libphp5.la /usr/lib/httpd/modules/
cp .libs/libphp5.so /usr/lib/httpd/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib/httpd/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-5.2.9/libs'
chmod 755 /usr/lib/httpd/modules/libphp5.so
[activating module `php5' in /etc/httpd/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/php/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php/lib/php/
[PEAR] Console_Getopt - installed: 1.2.3
[PEAR] Archive_Tar    - installed: 1.3.2
[PEAR] Structures_Graph- installed: 1.0.2
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
[PEAR] PEAR           - installed: 1.7.2
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
Installing PDO headers:          /usr/local/php/include/php/ext/pdo/
[root@oracle01 php-5.2.9]# /etc/init.d/httpd restart
停止 httpd:                                               [确定]
启动 httpd:                                               [确定]
[root@oracle01 php-5.2.9]#



阅读(2206) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~