{"action":"created","issue":{"url":"https://api.github.com/repos/rbenv/rbenv/issues/951","repository_url":"https://api.github.com/repos/rbenv/rbenv","labels_url":"https://api.github.com/repos/rbenv/rbenv/issues/951/labels{/name}","comments_url":"https://api.github.com/repos/rbenv/rbenv/issues/951/comments","events_url":"https://api.github.com/repos/rbenv/rbenv/issues/951/events","html_url":"https://github.com/rbenv/rbenv/issues/951","id":190999069,"number":951,"title":"Getting bundler issue with rbenv chef-client","user":{"login":"Princetambar","id":801980,"avatar_url":"https://avatars.githubusercontent.com/u/801980?v=3","gravatar_id":"","url":"https://api.github.com/users/Princetambar","html_url":"https://github.com/Princetambar","followers_url":"https://api.github.com/users/Princetambar/followers","following_url":"https://api.github.com/users/Princetambar/following{/other_user}","gists_url":"https://api.github.com/users/Princetambar/gists{/gist_id}","starred_url":"https://api.github.com/users/Princetambar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Princetambar/subscriptions","organizations_url":"https://api.github.com/users/Princetambar/orgs","repos_url":"https://api.github.com/users/Princetambar/repos","events_url":"https://api.github.com/users/Princetambar/events{/privacy}","received_events_url":"https://api.github.com/users/Princetambar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-22T13:13:29Z","updated_at":"2016-11-23T10:18:46Z","closed_at":null,"body":"I am running chef-client with sudo and getting below error \r\n\r\nThe `bundle' command exists in these Ruby versions:\r\n  2.1.0\r\n\r\ni had 2.1.0 ruby installed ,now i am migrating to 2.3.1 , for that i installed 2.3.1 also using rbenv. when i run chef-client after sudo su - then i am getting above mentioned error . i dont know why its not picking bundler from 2.3.1. \r\n\r\ncan anyone help me how i can install bundler for 2.3.1 also?? quick help will be appreciated\r\n"},"comment":{"url":"https://api.github.com/repos/rbenv/rbenv/issues/comments/262476727","html_url":"https://github.com/rbenv/rbenv/issues/951#issuecomment-262476727","issue_url":"https://api.github.com/repos/rbenv/rbenv/issues/951","id":262476727,"user":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"created_at":"2016-11-23T10:18:46Z","updated_at":"2016-11-23T10:18:46Z","body":"Note that when you use `sudo`, the command executes in a different environment than one where you called `sudo` from. You'll need to configure both environments properly for rbenv. Unfortunately, I can't help you with that, because I can't see what's going on on your system.\r\n\r\nFor starters, it seems like you changed your RBENV_ROOT to `/usr/local/rbenv` in your main environment. You have to ensure that RBENV_ROOT it set to the same location for the root user as well."}}
{"actor":{"display_login":"mislav"}}