Skip to content

Instantly share code, notes, and snippets.

/error.log Secret

Created January 5, 2016 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a456813d1f5147aae68f to your computer and use it in GitHub Desktop.
Save anonymous/a456813d1f5147aae68f to your computer and use it in GitHub Desktop.
Installing ruby-oci8 2.2.1 with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for load library path...
DYLD_LIBRARY_PATH...
checking /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib... yes
/usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib/libclntsh.dylib.11.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
--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=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
--with-instant-client
--without-instant-client
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1149:in `block in initialize': RuntimeError (RuntimeError)
from /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1117:in `open'
from /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1117:in `initialize'
from /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:318:in `new'
from /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:318:in `get'
from extconf.rb:22:in `<main>'
---------------------------------------------------
Error Message:
Could not compile with Oracle instant client.
You may need to set the environment variable RC_ARCHS or ARCHFLAGS as follows:
RC_ARCHS=x86_64
export RC_ARCHS
or
ARCHFLAGS='-arch x86_64'
export RC_ARCHS
If it does not fix the problem, delete all '-arch i386'
in '/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb'.
Backtrace:
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1149:in `block in initialize'
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1117:in `open'
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:1117:in `initialize'
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:318:in `new'
/Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/oraconf.rb:318:in `get'
extconf.rb:22:in `<main>'
---------------------------------------------------
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.
Gem files will remain installed in /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1 for inspection.
Results logged to /Users/Victor/.gem/ruby/2.3.0/gems/ruby-oci8-2.2.1/ext/oci8/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment