# Where on Ubuntu is Rails?

**URL:** <https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906>\
**Category:** rubyonrails-talk\
**Created:** [October 7, 2013, 1:40pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906 "2013-10-07T13:40:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ike](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@Ike](https://discuss.rubyonrails.org/u/Ike)\
**Post date:** [October 7, 2013, 1:40pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/1 "2013-10-07T13:40:11Z")

</div>

I followed the setup instructions for a fresh install of Mint15 according to this excellent tutorial : [http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/](http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/) which sets up via rvm. I followed the instructions therein, but when I am in my ~ directory, i get:

user@Mint15Mate64 ~ $ rails create test The program ‘rails’ can be found in the following packages:

- rails
- ruby-railties-3.2 Try: sudo apt-get install 

Oddly, if I also simply try:

user@Mint15Mate64 ~ $ rake -T rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /home/user/.rvm/gems/ruby-2.0.0-p247/bin/ruby\_executable\_hooks:15:in `eval' /home/user/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `’ (See full trace by running task with --trace)

Something is not appearing in my path – but I dont know what the entry shuld be in my path. My path appears as:

user@Mint15Mate64 ~ $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.rvm/bin

and if I do gem list I get: rails (4.0.0) railties (4.0.0) (among many other gems)

Can someone please point me in the right direction so that I can invoke

> rails create test

please?

Thanks, RVic

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [October 7, 2013, 2:14pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/2 "2013-10-07T14:14:44Z")

</div>

What is shown by rvm info

Colin

---

<div class="post-metadata">

**Author:** ![Ike](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@Ike](https://discuss.rubyonrails.org/u/Ike)\
**Post date:** [October 7, 2013, 2:19pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/3 "2013-10-07T14:19:28Z")

</div>

user@Mint15Mate64 ~ $ rvm info

ruby-2.0.0-p247:

system: uname: “Linux Mint15Mate64 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux” system: “mint/15/x86\_64” bash: “/bin/bash =\> GNU bash, version 4.2.45(1)-release (x86\_64-pc-linux-gnu)” zsh: " =\> not installed"

rvm: version: “rvm 1.22.17 (stable) by Wayne E. Seguin [wayneeseguin@gmail.com](mailto:wayneeseguin@gmail.com), Michal Papis [mpapis@gmail.com](mailto:mpapis@gmail.com) [[https://rvm.io/](https://rvm.io/)]” updated: “21 hours 28 minutes ago” path: “/home/user/.rvm”

ruby: interpreter: “ruby” version: “2.0.0p247” date: “2013-06-27” platform: “x86\_64-linux” patchlevel: “2013-06-27 revision 41674” full\_version: “ruby 2.0.0p247 (2013-06-27 revision 41674) [x86\_64-linux]”

homes: gem: “/home/user/.rvm/gems/ruby-2.0.0-p247” ruby: “/home/user/.rvm/rubies/ruby-2.0.0-p247”

binaries: ruby: “/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/ruby” irb: “/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/irb” gem: “/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/gem” rake: “/home/user/.rvm/gems/ruby-2.0.0-p247@global/bin/rake”

environment: PATH: “/home/user/.rvm/gems/ruby-2.0.0-p247/bin:/home/user/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/user/.rvm/rubies/ruby-2.0.0-p247/bin:/home/user/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games” GEM\_HOME: “/home/user/.rvm/gems/ruby-2.0.0-p247” GEM\_PATH: “/home/user/.rvm/gems/ruby-2.0.0-p247:/home/user/.rvm/gems/ruby-2.0.0-p247@global” MY\_RUBY\_HOME: “/home/user/.rvm/rubies/ruby-2.0.0-p247” IRBRC: “/home/user/.rvm/rubies/ruby-2.0.0-p247/.irbrc” RUBYOPT: “” gemset: “”

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [October 7, 2013, 2:29pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/4 "2013-10-07T14:29:17Z")

</div>

Please quote the previous message when replying as it makes it easier to follow the thread. Thanks.

> user@Mint15Mate64 ~ $ rvm info
> 
> ruby-2.0.0-p247:
> 
> &nbsp;&nbsp;system: &nbsp;&nbsp;&nbsp;&nbsp;uname: "Linux Mint15Mate64 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux" &nbsp;&nbsp;&nbsp;&nbsp;system: "mint/15/x86\_64" &nbsp;&nbsp;&nbsp;&nbsp;bash: "/bin/bash =\> GNU bash, version 4.2.45(1)-release (x86\_64-pc-linux-gnu)" &nbsp;&nbsp;&nbsp;&nbsp;zsh: " =\> not installed"
> 
> &nbsp;&nbsp;rvm: &nbsp;&nbsp;&nbsp;&nbsp;version: "rvm 1.22.17 (stable) by Wayne E. Seguin \<wayneeseguin@gmail.com\>, Michal Papis \<mpapis@gmail.com\> [[https://rvm.io/\](https://rvm.io/%5C)]" &nbsp;&nbsp;&nbsp;&nbsp;updated: "21 hours 28 minutes ago" &nbsp;&nbsp;&nbsp;&nbsp;path: "/home/user/.rvm"
> 
> &nbsp;&nbsp;ruby: &nbsp;&nbsp;&nbsp;&nbsp;interpreter: "ruby" &nbsp;&nbsp;&nbsp;&nbsp;version: "2.0.0p247" &nbsp;&nbsp;&nbsp;&nbsp;date: "2013-06-27" &nbsp;&nbsp;&nbsp;&nbsp;platform: "x86\_64-linux" &nbsp;&nbsp;&nbsp;&nbsp;patchlevel: "2013-06-27 revision 41674" &nbsp;&nbsp;&nbsp;&nbsp;full\_version: "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86\_64-linux]"
> 
> &nbsp;&nbsp;homes: &nbsp;&nbsp;&nbsp;&nbsp;gem: "/home/user/.rvm/gems/ruby-2.0.0-p247" &nbsp;&nbsp;&nbsp;&nbsp;ruby: "/home/user/.rvm/rubies/ruby-2.0.0-p247"
> 
> &nbsp;&nbsp;binaries: &nbsp;&nbsp;&nbsp;&nbsp;ruby: "/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/ruby" &nbsp;&nbsp;&nbsp;&nbsp;irb: "/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/irb" &nbsp;&nbsp;&nbsp;&nbsp;gem: "/home/user/.rvm/rubies/ruby-2.0.0-p247/bin/gem" &nbsp;&nbsp;&nbsp;&nbsp;rake: "/home/user/.rvm/gems/ruby-2.0.0-p247@global/bin/rake"
> 
> &nbsp;&nbsp;environment: &nbsp;&nbsp;&nbsp;&nbsp;PATH: "/home/user/.rvm/gems/ruby-2.0.0-p247/bin:/home/user/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/user/.rvm/rubies/ruby-2.0.0-p247/bin:/home/user/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

Note that this shows the correct path. Have you got a file in your home folder .bash\_profile. If so, what is in it? Also did you remember the step in the tutorial where it says to run ~/.bash\_profile

Colin

Colin

---

<div class="post-metadata">

**Author:** ![Ike](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@Ike](https://discuss.rubyonrails.org/u/Ike)\
**Post date:** [October 7, 2013, 2:52pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/5 "2013-10-07T14:52:58Z")

</div>

Colin,

~/bash\_profile has only the following line:

[[-s “$HOME/.rvm/scripts/rvm”]] && source “$HOME/.rvm/scripts/rvm” # Load RVM into a shell session _as a function_

when I reload bash profile: . ~/.bash\_profile

rails works – it’s recognized by the. I have since rebooted since installing everything (I reloaded .bash\_profile befoe the reboot). Must I reload .bash\_profile every time? I thoughtthis was loaded whenever I opened a terminal window?

Thanks so much for your help in getting this going! RVic

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [October 7, 2013, 3:07pm UTC](https://discuss.rubyonrails.org/t/where-on-ubuntu-is-rails/67906/6 "2013-10-07T15:07:23Z")

</div>

> Colin,
> 
> ~/bash\_profile has only the following line:
> 
> [[-s "$HOME/.rvm/scripts/rvm"]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session \*as a function\*
> 
> when I reload bash profile: . ~/.bash\_profile
> 
> rails works -- it's recognized by the. I have since rebooted since installing everything (I reloaded .bash\_profile befoe the reboot). Must I reload .bash\_profile every time? I thoughtthis was loaded whenever I opened a terminal window?

You should not have to do it each time. I am not sure why it might not be invoking it automatically. If you add the line in .bash\_profile to the file .bashrc then it should work ok. I don't think that it will matter that it is in .bash\_profile also, but if you get any error messages when logging in or opening a terminal then remove .bash\_profile (or rename it initially).

Colin
