LoginSignup
6
6

More than 5 years have passed since last update.

El Capitanにしてruby-oci8が使えなくなった時の治し方

Posted at

遅ればせながらMacをEl Capitanにアップデートしたらruby-oci8をgem installするときにこけるようになった。

どうやらセキュリティ周りの関係で適切なlibを参照できなくなったらしい。

ので、公式のgithubを参照して以下を実行
https://github.com/kubo/ruby-oci8/issues/89

$ cd /opt/instantclient_11_2     # インスタンスクライアントのインストール先
$ curl -O https://raw.githubusercontent.com/kubo/fix_oralib_osx/master/fix_oralib.rb
$ ruby fix_oralib.rb
$ cd                             # changed to other directory
$ git clone --depth=1 https://github.com/kubo/ruby-oci8.git
$ cd ruby-oci8
$ gem build ruby-oci8.gemspec    # create a gem file
$ export OCI_DIR=/opt/instantclient_11_2 # set the instant client location
$ gem install ./ruby-oci8-2.2.0.gem

無事に直りました。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6