无标题文章

有关 ruby-oci8 一个问题: checking for OCIEnvCreate() in oci.h... no, 正在处理中 ……

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8
/home/aaron/.rvm/rubies/ruby-2.3.1/bin/ruby -r
./siteconf20161021-99779-5knkgw.rb extconf.rb
checking for load library path... 
  LD_LIBRARY_PATH... 
    checking /compat/linux/opt/oracle/instantclient_12_1... yes
/compat/linux/opt/oracle/instantclient_12_1/libclntsh.so.12.1 looks like an
instant client.
checking for cc... ok
checking for gcc... yes
checking for LP64... yes
checking for sys/types.h... yes
checking for ruby header... ok
checking for OCIEnvCreate() in oci.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-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=.
    --curdir
    --ruby=/home/aaron/.rvm/rubies/ruby-2.3.1/bin/$(RUBY_BASE_NAME)
    --with-instant-client
    --without-instant-client
/usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:1179:in
`initialize': RuntimeError (RuntimeError)
from
/usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:318:in
`new'
from
/usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:318:in
`get'
    from extconf.rb:22:in `
' --------------------------------------------------- Error Message: Could not compile with Oracle instant client. You may need to set a environment variable: LD_LIBRARY_PATH=/compat/linux/opt/oracle/instantclient_12_1 export LD_LIBRARY_PATH Backtrace: /usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:1179:in `initialize' /usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:318:in `new' /usr/home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2/ext/oci8/oraconf.rb:318:in `get' extconf.rb:22:in `
' --------------------------------------------------- See: * http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/install-full-client.md for Oracle full client * http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/install-instant-client.md for Oracle instant client * http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/install-on-osx.md for OS X * http://www.rubydoc.info/github/kubo/ruby-oci8/file/docs/report-installation-issue.md to report an issue. To see why this extension failed to compile, please check the mkmf.log which can be found here: /home/aaron/.rvm/gems/ruby-2.3.1@leads-api/extensions/x86_64-freebsd-11/2.3.0/ruby-oci8-2.2.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /home/aaron/.rvm/gems/ruby-2.3.1@leads-api/gems/ruby-oci8-2.2.2 for inspection. Results logged to /home/aaron/.rvm/gems/ruby-2.3.1@leads-api/extensions/x86_64-freebsd-11/2.3.0/ruby-oci8-2.2.2/gem_make.out An error occurred while installing ruby-oci8 (2.2.2), and Bundler cannot continue. Make sure that `gem install ruby-oci8 -v '2.2.2'` succeeds before bundling.

你可能感兴趣的:(无标题文章)