|
发表于 2009-7-28 23:48:00
|
显示全部楼层
【16楼】 atommann
多谢!上面的php与oracle手册,非常不错,收藏了。手册中有Linux下php的oracle安装连接使用教程。在FreeBSD下方法也差不多,不过操作系统平台的原因,出现软件版本不支持。补充一下:
CPU :Intel Xeon 5410 2.33G
内存:8G
OS :FreeBSD 7.2 AMD64
因内存大于4G,出于资源使用与性能,安装的是FreeBSD 7.2 AMD64版本,通常php连接oracle,只需要安装php5-oci与oracle instant client。
在FreeBSD 7.2 AMD64下尝试安装php5-oci与oracle instant client时,失败,都提示只支持i386。郁闷,费了很多周折,没有找到FreeBSD 7.2 AMD64版本下安装php连接oracle扩展的解决方法。顺便提一个,在*nix下,如何把软件i386版源码编译成amd64版源码?
说明
【AMD64】:又称“x86-64”或“x64”,是一种64位元的电脑处理器架构
下面是尝试的结果:
test# cd /usr/ports/databases/linux-oracle-instantclient-basic/
You have new mail.
test# make install clean
===> linux-oracle-instantclient-basic-10.2.0.3.20070103_2 is only for i386, while you are running amd64.*** Error code 1
Stop in /usr/ports/databases/linux-oracle-instantclient-basic.
test# cd /usr/ports/databases/php5-oci8/
test# make install clean
===> Vulnerability check disabled, database not found
=> php-5.2.9.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://ports.hshh.org//.
php-5.2.9.tar.bz2 100% of 9963 kB 183 kBps 00m00s
===> Extracting for php5-oci8-5.2.9
=> MD5 Checksum OK for php-5.2.9.tar.bz2.
=> SHA256 Checksum OK for php-5.2.9.tar.bz2.
===> Patching for php5-oci8-5.2.9
===> Applying FreeBSD patches for php5-oci8-5.2.9
===> php5-oci8-5.2.9 depends on file: /usr/local/oracle8-client/lib/libclntsh.a - not found
===> Verifying install for /usr/local/oracle8-client/lib/libclntsh.a in /usr/ports/databases/oracle8-client
===> oracle8-client-0.2.0_1 is only for i386, while you are running amd64.
*** Error code 1
Stop in /usr/ports/databases/oracle8-client. |
|