{"action":"created","issue":{"url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/68","repository_url":"https://api.github.com/repos/ibmdb/ruby-ibmdb","labels_url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/68/comments","events_url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/68/events","html_url":"https://github.com/ibmdb/ruby-ibmdb/issues/68","id":181079745,"node_id":"MDU6SXNzdWUxODEwNzk3NDU=","number":68,"title":"version 3.0.4 is not working in Mac (Library not loaded: libdb2.dylib)","user":{"login":"tsathishkumar","id":1477860,"node_id":"MDQ6VXNlcjE0Nzc4NjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1477860?v=4","gravatar_id":"","url":"https://api.github.com/users/tsathishkumar","html_url":"https://github.com/tsathishkumar","followers_url":"https://api.github.com/users/tsathishkumar/followers","following_url":"https://api.github.com/users/tsathishkumar/following{/other_user}","gists_url":"https://api.github.com/users/tsathishkumar/gists{/gist_id}","starred_url":"https://api.github.com/users/tsathishkumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsathishkumar/subscriptions","organizations_url":"https://api.github.com/users/tsathishkumar/orgs","repos_url":"https://api.github.com/users/tsathishkumar/repos","events_url":"https://api.github.com/users/tsathishkumar/events{/privacy}","received_events_url":"https://api.github.com/users/tsathishkumar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T07:08:47Z","updated_at":"2018-08-20T09:17:59Z","closed_at":"2018-08-20T09:17:59Z","author_association":"NONE","body":"Hi,\nFirst of all the libraries are not being shipped with the gem when I installed the gem(I was expecting them to be present under `$GEM_HOME/ibm_db-*/lib/clidriver`). \n\nSo, I followed the steps below\n1. Downloaded the libraries from [http://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/macos64_odbc_cli.tar.gz](url)  \n2. Set the environment variable `$export DYLD_LIBRARY_PATH=/Users/tsathish/Downloads/clidriver/lib`\n3. Tried to load ibm_db in irb\n\n```\n$ irb \n2.2.3 :001 > require 'ibm_db'\nLoadError: dlopen(/Users/tsathish/.rvm/gems/ruby-2.2.3@backoffice-adapter/gems/ibm_db-3.0.4/lib/ibm_db.bundle, 9): Library not loaded: libdb2.dylib\n  Referenced from: /Users/tsathish/.rvm/gems/ruby-2.2.3@backoffice-adapter/gems/ibm_db-3.0.4/lib/ibm_db.bundle\n  Reason: unsafe use of relative rpath libdb2.dylib in /Users/tsathish/.rvm/gems/ruby-2.2.3@backoffice-adapter/gems/ibm_db-3.0.4/lib/ibm_db.bundle with restricted binary - /Users/tsathish/.rvm/gems/ruby-2.2.3@backoffice-adapter/gems/ibm_db-3.0.4/lib/ibm_db.bundle\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'\n    from /Users/tsathish/.rvm/gems/ruby-2.2.3@backoffice-adapter/gems/ibm_db-3.0.4/lib/ibm_db.rb:18:in `<top (required)>'\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'\n    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'\n    from (irb):1\n    from /usr/bin/irb:12:in `<main>'\n```\n\nPlease let me know if I'm missing something here.\n\nThanks in advance.\n"},"comment":{"url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/comments/414252018","html_url":"https://github.com/ibmdb/ruby-ibmdb/issues/68#issuecomment-414252018","issue_url":"https://api.github.com/repos/ibmdb/ruby-ibmdb/issues/68","id":414252018,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDI1MjAxOA==","user":{"login":"arvindgu","id":10601295,"node_id":"MDQ6VXNlcjEwNjAxMjk1","avatar_url":"https://avatars3.githubusercontent.com/u/10601295?v=4","gravatar_id":"","url":"https://api.github.com/users/arvindgu","html_url":"https://github.com/arvindgu","followers_url":"https://api.github.com/users/arvindgu/followers","following_url":"https://api.github.com/users/arvindgu/following{/other_user}","gists_url":"https://api.github.com/users/arvindgu/gists{/gist_id}","starred_url":"https://api.github.com/users/arvindgu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arvindgu/subscriptions","organizations_url":"https://api.github.com/users/arvindgu/orgs","repos_url":"https://api.github.com/users/arvindgu/repos","events_url":"https://api.github.com/users/arvindgu/events{/privacy}","received_events_url":"https://api.github.com/users/arvindgu/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T09:17:59Z","updated_at":"2018-08-20T09:17:59Z","author_association":"COLLABORATOR","body":"The ibm_db gem auto downloads the macos64_odbc_cli.tar.gz and configure the libraries. \r\n\r\nI recommend to delete the by uninstall ibm_db gem command and ensure that all the files and folder of ibm_db gem are deleted in the file system. Then try installing it with \"sudo\". if the problem still persists, reopen this.\r\n\r\n"}}
{"actor":{"display_login":"arvindgu"}}