【问题标题】:Error Message: cannot get Oracle version from sqlplus错误信息:无法从 sqlplus 获取 Oracle 版本
【发布时间】:2015-12-31 09:49:52
【问题描述】:

Ruby-oci8 gem 在 ubuntu linux 上构建时失败并显示以下错误消息,即使我将 LD_LIBRARY_PATH 和 ORACLE_HOME 设置为正确的路径。

*从 SQLPlus 获取 Oracle 版本... /ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/extconf.rb failed 由于某种原因无法创建 Makefile,可能缺少 必要的库和/或头文件。查看 mkmf.log 文件了解更多信息 细节。您可能需要配置选项。

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8
 --curdir
 --ruby=/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby2.1/export/bin/ruby
 --with-instant-client
 --without-instant-client
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:834:in `get_version': RuntimeError (RuntimeError)
 from /ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:783:in `initialize'
 from /ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:in `new'
 from /ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:in `get'
 from /ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/extconf.rb:22:in `<main>'

错误信息:

无法从 sqlplus Backtrace 获取 Oracle 版本:
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:834:in get_version'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:783:in
initialize'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:in new'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:in
get'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/extconf.rb:22:in `'*

知道这里缺少什么吗?

【问题讨论】:

    标签: ruby oracle ubuntu oci8


    【解决方案1】:

    在我的例子中,我只需要在 ORACLE_HOME 下创建一个“bin”子目录,然后在那里创建一个指向 sqlplus 二进制文件的链接。

    【讨论】:

      猜你喜欢
      • 2021-12-23
      • 2013-09-15
      • 2015-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-01
      • 1970-01-01
      相关资源
      最近更新 更多