【发布时间】: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:inget_version'initialize'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:783:in
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:innew'get'
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:320:in
/ghostcache/nightly_build/components/ruby-oci8/akamai/ruby-oci8/ruby-oci8-2.2.1/ext/oci8/extconf.rb:22:in `'*
知道这里缺少什么吗?
【问题讨论】: