{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/3645","repository_url":"https://api.github.com/repos/rvm/rvm","labels_url":"https://api.github.com/repos/rvm/rvm/issues/3645/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/3645/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/3645/events","html_url":"https://github.com/rvm/rvm/issues/3645","id":140364936,"number":3645,"title":"pg.rb:4:in `require': incompatible library version","user":{"login":"pejuko","id":185630,"avatar_url":"https://avatars.githubusercontent.com/u/185630?v=3","gravatar_id":"","url":"https://api.github.com/users/pejuko","html_url":"https://github.com/pejuko","followers_url":"https://api.github.com/users/pejuko/followers","following_url":"https://api.github.com/users/pejuko/following{/other_user}","gists_url":"https://api.github.com/users/pejuko/gists{/gist_id}","starred_url":"https://api.github.com/users/pejuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pejuko/subscriptions","organizations_url":"https://api.github.com/users/pejuko/orgs","repos_url":"https://api.github.com/users/pejuko/repos","events_url":"https://api.github.com/users/pejuko/events{/privacy}","received_events_url":"https://api.github.com/users/pejuko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rvm/rvm/labels/feedback%20needed","name":"feedback needed","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-12T08:54:37Z","updated_at":"2016-04-10T18:56:52Z","closed_at":null,"body":"I have system wide installation of ruby 2.3 and if I install pg gem under ruby-2.2.4 with rvm I'm getting this error. ldd says:\r\n\r\n    ldd ~/.rvm/gems/ruby-2.2.4/gems/pg-0.18.4/ext/pg_ext.so   \r\n            linux-vdso.so.1 (0x00007fff1cbad000)\r\n            libruby.so.2.3 => /usr/lib/libruby.so.2.3 (0x00007fb9da57b000)\r\n\r\nso, as you can see, the pg extension is linked with system wide ruby 2.3 and not with ruby-2.2.4.\r\n\r\nI'm using rvm head (rvm 1.26.11 (master))"},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/208044748","html_url":"https://github.com/rvm/rvm/issues/3645#issuecomment-208044748","issue_url":"https://api.github.com/repos/rvm/rvm/issues/3645","id":208044748,"user":{"login":"pebra","id":820917,"avatar_url":"https://avatars.githubusercontent.com/u/820917?v=3","gravatar_id":"","url":"https://api.github.com/users/pebra","html_url":"https://github.com/pebra","followers_url":"https://api.github.com/users/pebra/followers","following_url":"https://api.github.com/users/pebra/following{/other_user}","gists_url":"https://api.github.com/users/pebra/gists{/gist_id}","starred_url":"https://api.github.com/users/pebra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pebra/subscriptions","organizations_url":"https://api.github.com/users/pebra/orgs","repos_url":"https://api.github.com/users/pebra/repos","events_url":"https://api.github.com/users/pebra/events{/privacy}","received_events_url":"https://api.github.com/users/pebra/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T18:56:51Z","updated_at":"2016-04-10T18:56:51Z","body":"Not working for me as well, this is my PATH. Did also run ```rvm gemset empty``` after checking my paths.\r\n```\r\necho $GEM_PATH\r\n/home/pebra/.rvm/gems/ruby-2.2.4:/home/pebra/.rvm/gems/ruby-2.2.4@global\r\n\r\necho $PATH\r\n/home/pebra/.rvm/bin:/home/pebra/.rvm/gems/ruby-2.2.4/bin:/home/pebra/.rvm/gems/ruby-2.2.4@global/bin:/home/pebra/.rvm/rubies/ruby-2.2.4/bin:[...\r\n]\r\n```"}}