{"action":"created","issue":{"url":"https://api.github.com/repos/kubo/ruby-oci8/issues/128","repository_url":"https://api.github.com/repos/kubo/ruby-oci8","labels_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/128/comments","events_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/128/events","html_url":"https://github.com/kubo/ruby-oci8/issues/128","id":145935575,"number":128,"title":"There was an error while trying to load the gem 'ruby-oci8'","user":{"login":"RameshKrishnamoorthy","id":18282534,"avatar_url":"https://avatars.githubusercontent.com/u/18282534?v=3","gravatar_id":"","url":"https://api.github.com/users/RameshKrishnamoorthy","html_url":"https://github.com/RameshKrishnamoorthy","followers_url":"https://api.github.com/users/RameshKrishnamoorthy/followers","following_url":"https://api.github.com/users/RameshKrishnamoorthy/following{/other_user}","gists_url":"https://api.github.com/users/RameshKrishnamoorthy/gists{/gist_id}","starred_url":"https://api.github.com/users/RameshKrishnamoorthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RameshKrishnamoorthy/subscriptions","organizations_url":"https://api.github.com/users/RameshKrishnamoorthy/orgs","repos_url":"https://api.github.com/users/RameshKrishnamoorthy/repos","events_url":"https://api.github.com/users/RameshKrishnamoorthy/events{/privacy}","received_events_url":"https://api.github.com/users/RameshKrishnamoorthy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T09:34:09Z","updated_at":"2016-04-05T12:42:27Z","closed_at":"2016-04-05T12:42:27Z","body":"I have the following:\r\n\r\n- ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]\r\n- Rails 3.2.0\r\n- El Capitan (10.11)\r\n- Oracle instant client 11.2.0.4.0\r\n- rubi-oci8 2.2.1\r\n\r\n I have the following environment variables set:\r\n\r\nexport ORACLE_BASE=/usr/local/oracle\r\nexport ORACLE_HOME=$ORACLE_BASE/product/instantclient_64/11.2.0.4.0\r\nexport PATH=$ORACLE_HOME/bin:/Users/rameshkrishnamoorthy/pear/bin:$PATH\r\nexport DYLD_LIBRARY_PATH=$ORACLE_HOME\r\nexport OCI_DIR=$ORACLE_HOME\r\n\r\n- when I try to start my rails application, I get the above error.\r\n- When I try require 'oci8' in IRB, I get OCIError: OCI Library Initialization Error - /usr/local/oracle/product\r\n/instantclient_64/11.2.0.4.0/libclntsh.dylib.11.1\r\n\r\nAnd interestingly, when I run IRB from the ORACLE_HOME folder (/usr/local/oracle/product/instantclient_64/11.2.0.4.0), it works fine! \r\n\r\nI am not sure what else is missing in my setup to make it work from any folder and with my rails application."},"comment":{"url":"https://api.github.com/repos/kubo/ruby-oci8/issues/comments/205782589","html_url":"https://github.com/kubo/ruby-oci8/issues/128#issuecomment-205782589","issue_url":"https://api.github.com/repos/kubo/ruby-oci8/issues/128","id":205782589,"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":"2016-04-05T12:42:27Z","updated_at":"2016-04-05T12:42:27Z","body":"> What gave you the clue that I had to run fix_oralib.rb again?\r\n\r\nIf libclntsh.dylib.11.1 is fixed by fix_oralib.rb, `otool -l libclntsh.dylib.11.1 | grep -E '(DYLIB|RPATH)' -A2` should print `LC_RPATH`. However `LC_PRATH` was not found.\r\nI guessed that it was fixed by fix_oralib.sh because it doesn't fix `LC_RPATH`.\r\nI noticed that the time stamp of fix_oralib.rb is older than that of fix_oralib.sh. So I guessed that you used broken fix_oralib.rb and then used fix_oralib.sh.\r\n"}}