LinuxSir.Org  
| 网站首页 | 注册账号 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
 
主题工具
旧 06-06-27, 10:32 第 1 帖
bigboar
 
bigboar 的头像
 
 
注册会员  
  注册日期: May 2006
  帖子: 10
  精华: 0
 

标题: fc5,tora-1.3.18 for oracle 10g,simpile OCI app错误


我在root用户下用这个命令configure tora-1.3.18的时候:
./configure --with-qt-dir=/usr/lib/qt-3.3 --with-oracle=/opt/oracle/dbhome/product/10.2.0 --with-oracle-libraries=/opt/oracle/dbhome/product/10.2.0/lib --with-oci-version=10G --with-instant-client

系统在下面出现错误:
checking if STL implementation is SGI like... yes
checking for oracle... checking oci works... configure: error: Couldn't compile and run a simpile OCI app.
Try setting ORACLE_HOME or check config.log.
Otherwise, make sure ORACLE_HOME/lib is in /etc/ld.so.conf or LD_LIBRARY_PATH
[root@bigboar tora-1.3.18]#

而我的root环境,已经配置了和oracle用户一样的环境,即有$ORACLE_HOME,也有LD_LIBRARY_PATH参数设置。

我换oracle用户来执行上面的configure,也是同样在这个地方报告错误。


环境变量:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_BASE=/opt/oracle/dbhome; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0; export ORACLE_HOME
ORACLE_SID=boar10g; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH


LD_LIBRARY_PATH=$ORACLE_HOME/client/lib:$ORACLE_HOME/lib:/usr/X11R6/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN

CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH


#for qt
QTDIR=/usr/lib/qt-3.3
PATH=$QTDIR/bin:$PATH
MANPATH=/usr/share/doc/qt-3.3.5/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH





有知道怎么处理这个错误的朋友,麻烦说一下,谢谢。。。







__________________
生也如梦,死也如梦,人生只是一场数十载的梦,
每个人都在醉生梦死,浮沉于苦海之中,
难以自拔.

我们一起勇敢的站在巨人的肩上进步!


我的猪窝 http://bigboar.itpub.net]
  bigboar 当前离线   回复时引用此帖
旧 06-08-24, 14:33 第 2 帖
kissingwolf 帅哥
 
kissingwolf 的头像
 
 
资深版主  
  注册日期: Jul 2003
  我的住址: 上海
  帖子: 1,302
  精华: 15
 

直接./configure 就没有这个问题,可以直接生成Makefile文件,但是到make的时候回报错!
代码:
if g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/kde -I/usr/lib/qt-3.3/include -DDEFAULT_PLUGIN_DIR=\"/usr/local/tora/lib\" -DTOVERSION=\"1.3.21\" -I/u01/app/oracle/product/10.2.0/db_1/rdbms/demo -I/u01/app/oracle/product/10.2.0/db_1/plsql/public -I/u01/app/oracle/product/10.2.0/db_1/rdbms/public -DOTL_ORA10G -DOTL_ORA_TIMESTAMP -DOTL_ANSI_CPP -DOTL_FUNC_THROW_SPEC_ON -DOTL_EXCEPTION_ENABLE_ERROR_OFFSET -DQT_THREAD_SUPPORT -g -O2 -D_REENTRANT -MT tora-tothread.o -MD -MP -MF ".deps/tora-tothread.Tpo" -c -o tora-tothread.o `test -f 'tothread.cpp' || echo './'`tothread.cpp; \ then mv -f ".deps/tora-tothread.Tpo" ".deps/tora-tothread.Po"; else rm -f ".deps/tora-tothread.Tpo"; exit 1; fi tothread.cpp: In member function ‘void toThread::start()’: tothread.cpp:190: 错误:‘toThreadStartWrapper’ 在此作用域中尚未声明 tothread.cpp: In member function ‘void toThread::startAsync()’: tothread.cpp:199: 错误:‘toThreadStartWrapper’ 在此作用域中尚未声明 make[1]: *** [tora-tothread.o] 错误 1 make[1]: Leaving directory `/media/disk/tools/TOra/tora-1.3.21' make: *** [all] 错误 2
比较郁闷!







__________________
那些作恶的和协助作恶的都将在审判日被钉在耻辱柱上
不论他今天站的多高,不论他今天如何叫嚣
到那一天,G00g1e会回来的

++++++++++++KevinZou++++++++++++++
Keep Everything Simple , Palpable
kissingwolf
++++++++++++++++++++++++++++++++
在培训版发贴前请先在置顶的贴子里找找!
拒绝回答愚蠢的问题!愚蠢的问题表现为:
不告知发行版及版本类型
不告知尝试操作和相关环境配置
不告知问题解决目的
  kissingwolf 当前离线   回复时引用此帖
旧 06-11-13, 15:40 第 3 帖
tony2u
 
tony2u 的头像
 
 
注册会员  
  注册日期: Oct 2002
  帖子: 103
  精华: 0
 

找到文件tothread.cpp,编辑里边的内容,找到
#define THREAD_ASSERT(x) if((x)!=0) { \
throw (qApp->translate("toThread","Thread function \"%1\" failed.").arg(QString::fromLatin1( #x ))); }

void toThread::initAttr()
{
//create the thread detached, so everything is cleaned up
//after it's finished.
修改成如下:
#define THREAD_ASSERT(x) if((x)!=0) { \
throw (qApp->translate("toThread","Thread function \"%1\" failed.").arg(QString::fromLatin1( #x ))); }

void *toThreadStartWrapper(void *t); //增加的代码

void toThread::initAttr()
{
//create the thread detached, so everything is cleaned up
//after it's finished.
保存。(不改在make是会出现如下错误:
tothread.cpp: In member function ‘void toThread::start()’:
tothread.cpp:190: error: ‘toThreadStartWrapper’ was not declared in this scope
tothread.cpp: In member function ‘void toThread::startAsync()’:
tothread.cpp:199: error: ‘toThreadStartWrapper’ was not declared in this scope
make[1]: *** [tora-tothread.o] Error 1
make[1]: Leaving directory `/home/yht/Downloads/tora-1.3.21'
make: *** [all] Error 2)
  tony2u 当前离线   回复时引用此帖
旧 06-11-16, 23:48 第 4 帖
Jolr
 
Jolr 的头像
 
 
注册会员  
  注册日期: Dec 2005
  帖子: 42
  精华: 0
 

我在Linux下安装PHP+Oracle环境(注Oracle server不是本机),我configure很正常,没报什么错
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/lib/mysql --with-mysqli --with-xml --with-gettext --with-gd --with-dom --with-zlib --enable-ftp --enable-inline-optimization --enable-track-vars --enable-trans-sid --enable-mbstring --with-mcrypt --with-jpeg --with-png --with-oci8=/opt/oracle/instantclient_10_2

但老是 make 不过去.老是出现这样的错误.请问是什么?
/tmp/php-5.1.4/ext/oci8/oci8.c:1716: error: 'php_oci_connection' has no member named 'descriptors'
/tmp/php-5.1.4/ext/oci8/oci8.c:1716: warning: passing argument 1 of 'zend_hash_destroy' from incompatible pointer type
/tmp/php-5.1.4/ext/oci8/oci8.c:1717: error: 'php_oci_connection' has no member named 'descriptors'
/tmp/php-5.1.4/ext/oci8/oci8.c:1718: error: 'php_oci_connection' has no member named 'descriptors'
/tmp/php-5.1.4/ext/oci8/oci8.c:1723: error: 'zend_oci_globals' has no member named 'persistent_timeout'
/tmp/php-5.1.4/ext/oci8/oci8.c:1724: error: 'php_oci_connection' has no member named 'idle_expiry'
/tmp/php-5.1.4/ext/oci8/oci8.c:1724: error: 'zend_oci_globals' has no member named 'persistent_timeout'
/tmp/php-5.1.4/ext/oci8/oci8.c:1727: error: 'zend_oci_globals' has no member named 'ping_interval'
/tmp/php-5.1.4/ext/oci8/oci8.c:1728: error: 'php_oci_connection' has no member named 'next_ping'
/tmp/php-5.1.4/ext/oci8/oci8.c:1728: error: 'zend_oci_globals' has no member named 'ping_interval'
/tmp/php-5.1.4/ext/oci8/oci8.c:1732: error: 'php_oci_connection' has no member named 'next_ping'
/tmp/php-5.1.4/ext/oci8/oci8.c:1735: error: 'php_oci_connection' has no member named 'used_this_request'
/tmp/php-5.1.4/ext/oci8/oci8.c:1737: error: 'zend_oci_globals' has no member named 'persistent_timeout'
/tmp/php-5.1.4/ext/oci8/oci8.c:1737: warning: comparison between pointer and integer
/tmp/php-5.1.4/ext/oci8/oci8.c:1738: error: 'php_oci_connection' has no member named 'idle_expiry'
/tmp/php-5.1.4/ext/oci8/oci8.c:1738: warning: comparison between pointer and integer
make: *** [ext/oci8/oci8.lo] Error 1







__________________
IBM ThinkPad T43p
CPU intel 2.13 + 内存 2G + 硬盘 80G + 显卡 ATI Mobility FireGL V3200 128M + 蓝牙 + 无线
那么,这种显卡可以装什么Linux 呢?
  Jolr 当前离线   回复时引用此帖
旧 07-08-05, 09:30 第 5 帖
compard
 
compard 的头像
 
 
注册会员  
  注册日期: Sep 2004
  我的住址: ShangHai
  帖子: 34
  精华: 0
 

按照别人的说法就是不可以,发现有如下问题:
Couldn't compile and run a simpile OCI app
checking for oracle... checking oci works... configure: error: Couldn't compile and run a simpile OCI app.
Try setting ORACLE_HOME or check config.log.
Otherwise, make sure ORACLE_HOME/lib is in /etc/ld.so.conf or LD_LIBRARY_PATH
经过检查config.log发现某些$oracle_home/lib找不到,然后把他们建立快捷方式到/usr/lib下面,就可以了,共两个。
sudo ln -s /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libclntsh.so.10.1 /usr/lib/
sudo ln -s /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib/libnnz10.so /usr/lib







__________________
岁月无声
  compard 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 22:07


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2010, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2009, LinuxSir.Org