LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 950|回复: 3

编译Tora 1.3.22 出错求助!

[复制链接]
发表于 2007-11-26 16:54:28 | 显示全部楼层 |阅读模式
系统FC8 安装 oracle 10g client 安装tora-1.3.22
./configure --prefix=/usr/local/tora  
--without-kde  
--with-qt-dir=/usr/lib/qt-3.3  
--with-extra-libs=/usr/X11R6/lib --with-oracle=/usr/local/oracle10g/client/ --with-oracle-libraries=/usr/local/oracle10g/client/lib  --with-oracle-includes=/usr/local/oracle10g/client/jdk/include   --with-oci-version=10G  
--with-instant-client
出错如下错误
checking for oracle... configure: WARNING: Your ORACLE_HOME environment variable ends with a
slash (i.e. /). Oracle 10g Instant Client is known to have a problem
with this. If you get the message "otl_initialize failed!" at the
console when running TOra, this is probably why.
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
///////
我在/etc/ld.conf.d/中 建立 oracle.conf
加入 /usr/local/oracle10g/client/lib 后
执行 ldconfig 报错如下:
ldconfig: /usr/local/oracle10g/client/lib/libexpat.so.0 is not a symbolic link
这是怎么回事,请大家帮帮我呀!
 楼主| 发表于 2007-11-26 16:57:57 | 显示全部楼层
lash (i.e. /). Oracle 10g Instant Client is known to have a problem
这个好像说我在以上的变量中多加了一个 / 线,提示改为 --with-oracle=/usr/local/oracle10g/client后从新./configure .....
提示错误:
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

环境变量
export ORACLE_HOME=/usr/local/oracle10g/client
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=/usr/local/oracle10g/client/network/admin
export PATH=$PATHORACLE_HOME/bin
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-26 18:02:14 | 显示全部楼层
终于 configure 成功了!编译成功后,运行成了!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-26 18:28:19 | 显示全部楼层
整个过程: OS FC8
在/etc/
加入:
export ORACLE_HOME=/usr/local/oracle10g/client
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export TNS_ADMIN=/usr/local/oracle10g/client/network/admin
export PATH=$PATHORACLE_HOME/bin
也可以在configure 之前执行一下!
touch /etc/ld.so.conf.d/oracle.conf
vi /etc/ld.so.conf.d/oracle.conf
加入 “/usr/local/oracle10g/client/lib” ,这一行的最后不能有 “/”,否则安装时报错!
运行 ldconfig  提示:ldconfig: /usr/local/oracle10g/client/lib/libexpat.so.0 is not a symbolic link ,这个不知道知样解决,好像没有什么影响。
tar jxvf tora-1.3.22.tar.bz2
cd tora-1.3.22
./configure --prefix=/usr/local/tora  --without-kde  --with-qt-dir=/usr/lib/qt-3.3  --with-extra-libs=/usr/X11R6/lib --with-oracle=/usr/local/oracle10g/client --with-oracle-libraries=/usr/local/oracle10g/client/lib  --with-oracle-includes=/usr/local/oracle10g/client/rdbms/public   --with-oci-version=10G  --with-instant-client
由于安装的是ORACLE 10G的客户端,oci.h 文件在“/usr/local/oracle10g/client/rdbms/public”中,选择此目录。
之后提示还要qscintilla 的 include 文件, 直接点吧 yum install qscintilla*,安装完成后,在重新./configure ....(上面那些)通过!
make
make install
这样就OK了!
在这个过程中如出错了,真的要看config.log ,文件里提示有错误XX文件没有,修改目录OK!

之后还有一点小问题,中文字体那个难看,这个好像是QT3的程序,运行qtconfig 后,都选择文泉译字体,在运行tora,好看多了!
终于可以不在WINDOWS下运行ORACLE 的工具了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表