{"action":"created","issue":{"url":"https://api.github.com/repos/kubo/ruby-oci8/issues/99","labels_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/99/comments","events_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/99/events","html_url":"https://github.com/kubo/ruby-oci8/issues/99","id":110491878,"number":99,"title":"Deadlock situation, 2.1.8 can't compile on OS X ELCapitan, 2.2.0 don't support Oracle9i, Any solution?","user":{"login":"gabrieletassoni","id":11076471,"avatar_url":"https://avatars.githubusercontent.com/u/11076471?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrieletassoni","html_url":"https://github.com/gabrieletassoni","followers_url":"https://api.github.com/users/gabrieletassoni/followers","following_url":"https://api.github.com/users/gabrieletassoni/following{/other_user}","gists_url":"https://api.github.com/users/gabrieletassoni/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrieletassoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrieletassoni/subscriptions","organizations_url":"https://api.github.com/users/gabrieletassoni/orgs","repos_url":"https://api.github.com/users/gabrieletassoni/repos","events_url":"https://api.github.com/users/gabrieletassoni/events{/privacy}","received_events_url":"https://api.github.com/users/gabrieletassoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-08T16:34:32Z","updated_at":"2015-10-10T06:56:02Z","closed_at":null,"body":"Hi,\r\nI recently upgraded to OS X EL Capitan, but now I'm in a odd situation which I cannot understand how to get out, I need to work on an old Oracle 9i database, but on OS X El Capitan ruby-oci8 won't compile due to DYLD_ issue, the 2.2.0 version, which compiles well having set OCI_DIR, dropped support for Oracle 9i, how could overcome this deadlock?\r\nIs there a way you can release a 2.1.9 version which reads OCI_DIR and allow for compilation under OS X El Capitan?\r\n\r\nThank you for the answer, best regards,\r\nGabriele"},"comment":{"url":"https://api.github.com/repos/kubo/ruby-oci8/issues/comments/147047229","html_url":"https://github.com/kubo/ruby-oci8/issues/99#issuecomment-147047229","issue_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/99","id":147047229,"user":{"login":"kubo","id":43904,"avatar_url":"https://avatars.githubusercontent.com/u/43904?v=3","gravatar_id":"","url":"https://api.github.com/users/kubo","html_url":"https://github.com/kubo","followers_url":"https://api.github.com/users/kubo/followers","following_url":"https://api.github.com/users/kubo/following{/other_user}","gists_url":"https://api.github.com/users/kubo/gists{/gist_id}","starred_url":"https://api.github.com/users/kubo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubo/subscriptions","organizations_url":"https://api.github.com/users/kubo/orgs","repos_url":"https://api.github.com/users/kubo/repos","events_url":"https://api.github.com/users/kubo/events{/privacy}","received_events_url":"https://api.github.com/users/kubo/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T06:56:02Z","updated_at":"2015-10-10T06:56:02Z","body":"@gabrieletassoni \r\nCould you enable SIP and check whether ruby-oci8 works or not?\r\nIf the Oracle 9i installer property fixed shared library identification and install names in\r\nOracle libraries, ruby-oci8 may work once it was installed successfully.\r\n(SIP must be disabled on ruby-oci8 2.1.8 installation.)\r\n\r\nIf sqlplus command in the Oracle 9i doesn't run when SIP is enabled, fix identification and install names\r\nby the following commands:\r\n```shell\r\ncd $ORACLE_HOME\r\ncp -rp lib lib.bak # backup\r\ncp -rp bin/sqlplus bin/sqlplub.bak  # ditto\r\n\r\ncd $ORACLE_HOME/lib\r\ncurl -O https://raw.githubusercontent.com/kubo/fix_oralib_osx/master/fix_oralib.rb\r\nruby fix_oralib.rb\r\n\r\ncd $ORACLE_HOME/bin\r\nruby ../lib/fix_oralib.rb sqlplus\r\n```\r\nYou need to get the latest fix_oralib.rb. I updated it to accept `libclntsh.dylib.9.0`.\r\nhttps://github.com/kubo/fix_oralib_osx/blob/4f654d093edce44599199dd739e591f602849dae/fix_oralib.rb#L35\r\n\r\nIf sqlplus doesn't work still, add dependent Oracle library names to `@@oralibs` in fix_oralib.rb and try again. You may need to add `libwtc9.dylib` to `@@oralibs` because `libclntsh.so.9.0` depends on `libwtc9.so` on Linux.\r\n\r\nIf sqlplus works, fix install names in oci8lib_*.dylib.\r\n\r\nFind the gem repository directory.\r\n```shell\r\ngem query -d ruby-oci8\r\n```\r\n\r\nFind oci8lib_*.dylib\r\n```shell\r\nfind /replace/here/with/gem/repository/directory -name \"oci8lib_*.dylib\"\r\n```\r\nFix install names in oci8lib_*.dylib\r\n```\r\nruby $ORACLE_HOME/lib/fix_oralib.rb /replace/here/with/full/path/of/oci8lib_*.dylib\r\n```\r\n"}}