Closed sylvainsf closed 7 years ago
Similar system to you, and yesterday I didn't need to set DYLD_LIBRARY_PATH
, but I did set OCI_DIR
, which you don't say if you set.
@antislice I just tried setting OCI_DIR, same result.
@sylvainsf Could you use latest ruby-oci8? ruby-oci8 2.1.8 doesn't support OS X 10.11 or later.
If you need to use ruby-oci8 2.1.8, replace oraconf.rb with the latest.
$ tar xvfz ruby-oci8-2.1.8.tar.gz
$ tar xvfz ruby-oci8-2.2.3.tar.gz ruby-oci8-2.2.3/ext/oci8/oraconf.rb
$ cd ruby-oci8-2.1.8
$ cp ../ruby-oci8-2.2.3/ext/oci8/oraconf.rb ext/oci8 # replace oraconf.rb
$ gem build ruby-oci8.gemspec # create ruby-oci8-2.1.8.gem
$ export OCI_DIR=/opt/oracle/instantclient_12_1
$ gem install ./ruby-oci8-2.1.8.gem
@kubo Thanks that did the trick, I am able to just use the latest.
Just as an FYI the oracle_activerecord_enhanced documentation explicitly had 2.1.0 in it, my bad for not trying without the constraint.
I've followed the guides for both manually installing to /opt/oracle, and to install using homebrew, neither of which solved the issue. It appears that the compiler is not being passed the
DYLD_LIBRARY_PATH
as it's clearly set to /usr/local/lib on my system but make is reporting it unset. Debug info below:tail -100 mkmf.log:
file
which ruby
ruby --version ruby -r rbconfig -e "p RbConfig::CONFIG['host']" ruby -r rbconfig -e "p RbConfig::CONFIG['CC']" ruby -r rbconfig -e "p RbConfig::CONFIG['CFLAGS']" ruby -r rbconfig -e "p RbConfig::CONFIG['LDSHARED']" ruby -r rbconfig -e "p RbConfig::CONFIG['LDFLAGS']" ruby -r rbconfig -e "p RbConfig::CONFIG['DLDLAGS']" ruby -r rbconfig -e "p RbConfig::CONFIG['LIBS']" ruby -r rbconfig -e "p RbConfig::CONFIG['GNU_LD']"