|
|
第 1 帖 | |
|
|
标题: 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] |
|
|
|
|
|
|
|
第 2 帖 | |
|
|
直接./configure 就没有这个问题,可以直接生成Makefile文件,但是到make的时候回报错!
代码:
__________________
那些作恶的和协助作恶的都将在审判日被钉在耻辱柱上 不论他今天站的多高,不论他今天如何叫嚣 到那一天,G00g1e会回来的 ++++++++++++KevinZou++++++++++++++ Keep Everything Simple , Palpable kissingwolf ++++++++++++++++++++++++++++++++ 在培训版发贴前请先在置顶的贴子里找找! 拒绝回答愚蠢的问题!愚蠢的问题表现为: 不告知发行版及版本类型 不告知尝试操作和相关环境配置 不告知问题解决目的 |
|
|
|
|
|
|
|
第 3 帖 | |
|
|
找到文件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) |
|
|
|
|
|
|
|
第 4 帖 | |
|
|
我在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 呢? |
|
|
|
|
|
|
|
第 5 帖 | |
|
|
按照别人的说法就是不可以,发现有如下问题:
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
__________________
岁月无声 |
|
|
|
|
|