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/
which sets up via rvm. I followed the instructions therein, but when I
am
in my ~ directory, i get:
[email protected] ~ $ 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:
[email protected] ~ $ 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:
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
[[ -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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.