How to install ruby-oci8?

后端 未结 11 1540
一生所求
一生所求 2020-12-24 08:24

I\'m trying to install ruby-oci8 on OS X.

I\'ve tried installing both with and without sudo.

Error Message without sudo:

         


        
11条回答
  •  -上瘾入骨i
    2020-12-24 09:02

    On OS X Sierra, I was unable to set DYLD_LIBRARY_PATH due to system integrity protection (https://forums.developer.apple.com/thread/13161), so I copied all oracle's instant client files to /users/.../lib, since it has a fallback to some directories including this one:

    ...
    checking the default value of DYLD_FALLBACK_LIBRARY_PATH...
    checking /Users//lib... no
    checking /usr/local/lib... no
    checking /lib... no
    checking /usr/lib... no
    ...
    

    And the gem installed successfully!

    cp -R /opt/oracle/instantclient_11_2/* /users/..username../lib
    gem install ruby-oci8
    
    Building native extensions.  This could take a while...
    Successfully installed ruby-oci8-2.2.2
    1 gem installed
    

提交回复
热议问题