{"action":"created","issue":{"url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3158","labels_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3158/labels{/name}","comments_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3158/comments","events_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3158/events","html_url":"https://github.com/wayneeseguin/rvm/issues/3158","id":49988119,"number":3158,"title":"RVM install, read Ruby version from config file","user":{"login":"Zyphrax","id":966500,"avatar_url":"https://avatars.githubusercontent.com/u/966500?v=3","gravatar_id":"","url":"https://api.github.com/users/Zyphrax","html_url":"https://github.com/Zyphrax","followers_url":"https://api.github.com/users/Zyphrax/followers","following_url":"https://api.github.com/users/Zyphrax/following{/other_user}","gists_url":"https://api.github.com/users/Zyphrax/gists{/gist_id}","starred_url":"https://api.github.com/users/Zyphrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zyphrax/subscriptions","organizations_url":"https://api.github.com/users/Zyphrax/orgs","repos_url":"https://api.github.com/users/Zyphrax/repos","events_url":"https://api.github.com/users/Zyphrax/events{/privacy}","received_events_url":"https://api.github.com/users/Zyphrax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wayneeseguin/rvm/labels/feedback%20needed","name":"feedback needed","color":"eb6420"},{"url":"https://api.github.com/repos/wayneeseguin/rvm/labels/hard%20to%20reproduce","name":"hard to reproduce","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2014-11-25T08:20:10Z","updated_at":"2015-01-29T13:56:37Z","closed_at":null,"body":"I'm trying to get RVM to install the Ruby version in the `.ruby-version` or `Gemfile` files.\r\n\r\nWhen I do `rvm install` I get:\r\n```\r\nruby-1.8.7-head is not installed.\r\nTo install do: 'rvm install ruby-1.8.7-head'\r\nCan not use or install 'all' rubies.\r\n```\r\n\r\nWhen I do `rvm install .` I get:\r\n```\r\nruby-1.8.7-head is not installed.\r\nTo install do: 'rvm install ruby-1.8.7-head'\r\nruby-1.8.7-head is not installed.\r\nCould not determine which Ruby to use; . should contain .rvmrc or .versions.conf or .ruby-version or .rbfu-version or .rbenv-version, or an appro\r\npriate line in Gemfile. ( see: 'rvm usage' )\r\n```\r\n\r\nThat last option looks like a step in the right direction, but the Ruby version is defined in my Gemfile (that is the reason why RVM knows ruby-1.8.7 is not installed).\r\n\r\nI don't want to use the automatic-install-on-cd-option.\r\nWhat am I doing wrong or is this a bug?"},"comment":{"url":"https://api.github.com/repos/wayneeseguin/rvm/issues/comments/72027729","html_url":"https://github.com/wayneeseguin/rvm/issues/3158#issuecomment-72027729","issue_url":"https://api.github.com/repos/wayneeseguin/rvm/issues/3158","id":72027729,"user":{"login":"grossadamm","id":3268669,"avatar_url":"https://avatars.githubusercontent.com/u/3268669?v=3","gravatar_id":"","url":"https://api.github.com/users/grossadamm","html_url":"https://github.com/grossadamm","followers_url":"https://api.github.com/users/grossadamm/followers","following_url":"https://api.github.com/users/grossadamm/following{/other_user}","gists_url":"https://api.github.com/users/grossadamm/gists{/gist_id}","starred_url":"https://api.github.com/users/grossadamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossadamm/subscriptions","organizations_url":"https://api.github.com/users/grossadamm/orgs","repos_url":"https://api.github.com/users/grossadamm/repos","events_url":"https://api.github.com/users/grossadamm/events{/privacy}","received_events_url":"https://api.github.com/users/grossadamm/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T13:56:37Z","updated_at":"2015-01-29T13:56:37Z","body":"Same issue. `rvm install .` and `rvm install` with no other parameters do not install the ruby version listed in either `.ruby-version` or in the `Gemfile`. \r\n\r\nThat being said, I do not see that listed as a possibility in the documentation anywhere. \r\n\r\nA workaround locally is `rvm install \"$(< .ruby-version)\"`. Unfortunately, that does not work on teamcity for an unknown reason (unrelated to rvm itself I'm sure)."}}