/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs':
Could not find railties (>= 0) amongst (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:256:in
`to_spec'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1231:in `gem'
from /usr/local/bin/rails:18
Have you installed rails inside rvm? Try
gem install rails
Note, no sudo.
After several attempts I get:
sebah@sebah-laptop:~/rails$ gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many bad responses (http://rubygems.org/latest_specs.4.8.gz)
sebah@sebah-laptop:~/rails$ gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many connection resets (http://rubygems.org/latest_specs.4.8.gz)
sebah@sebah-laptop:~/rails$ gem install rails
ERROR: Could not find a valid gem 'rails' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many connection resets (http://rubygems.org/latest_specs.4.8.gz)
So where did those astericks come from?
You have a problem with your rvm ruby installation.
Here’s what I see when I type $(which ruby) --version
bash-3.2$ __rvm list
rvm rubies
=* ruby-1.9.3-p194 [ x86_64 ]
=> - current
=* - current && default
* - default__bash-3.2$ **which ruby
/Users/richardlloyd/.rvm/rubies/ruby-1.9.3-p194/bin/ruby**bash-3.2$ **$(which ruby) --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]**bash-3.2$ My suggestion is to uninstall your ruby-1.9.3-p194 and install a clean copy.
I say trouble, because when I've installed with RVM I couldn't use them.
The system kept saying unknown command for ruby and rails and it
suggested to install via apt-get install. So I did. Still nothing. Then
I ran the RVM installs again and now everything appears to be in order.
However (there's always however with me lately), when I run
"rails new tasks" rails actually generates "new" as the application
folder. And after "cd new" + "rails server" rails generates another
application called "server".
I say trouble, because when I've installed with RVM I couldn't use them.
The system kept saying unknown command for ruby and rails and it
suggested to install via apt-get install. So I did. Still nothing. Then
I ran the RVM installs again and now everything appears to be in order.
You should not have used apt-get if you are using rvm. But since you
have now got it working with rvm that is ok.
However (there's always however with me lately), when I run
"rails new tasks" rails actually generates "new" as the application
folder. And after "cd new" + "rails server" rails generates another
application called "server".
What can I do?
You can use rails 3. The rails command has changed since version 2.
The current version of rails is 3.2.8. If you really want to use
rails 2 then the guides can be found at
http://guides.rubyonrails.org/v2.3.11/
I say trouble, because when I've installed with RVM I couldn't use them.
The system kept saying unknown command for ruby and rails and it
suggested to install via apt-get install. So I did. Still nothing. Then
I ran the RVM installs again and now everything appears to be in order.
You should not have used apt-get if you are using rvm. But since you
have now got it working with rvm that is ok.
This was the only way at the time I could get it working.
However (there's always however with me lately), when I run
"rails new tasks" rails actually generates "new" as the application
folder. And after "cd new" + "rails server" rails generates another
application called "server".
What can I do?
You can use rails 3. The rails command has changed since version 2.
The current version of rails is 3.2.8. If you really want to use
rails 2 then the guides can be found at
Ruby on Rails guides
I don't want to use rails 2, this was all installed by default as I
described above. Are these issues related to Ubuntu? Are other
distributions more aproppriate for RoR?
And finally now what? Should I try and change to rials 3 via RVM?
I say trouble, because when I've installed with RVM I couldn't use them.
The system kept saying unknown command for ruby and rails and it
suggested to install via apt-get install. So I did. Still nothing. Then
I ran the RVM installs again and now everything appears to be in order.
You should not have used apt-get if you are using rvm. But since you
have now got it working with rvm that is ok.
This was the only way at the time I could get it working.
However (there's always however with me lately), when I run
"rails new tasks" rails actually generates "new" as the application
folder. And after "cd new" + "rails server" rails generates another
application called "server".
What can I do?
You can use rails 3. The rails command has changed since version 2.
The current version of rails is 3.2.8. If you really want to use
rails 2 then the guides can be found at
Ruby on Rails guides
I don't want to use rails 2, this was all installed by default as I
described above. Are these issues related to Ubuntu? Are other
distributions more aproppriate for RoR?
Ubuntu is excellent for rails.
And finally now what? Should I try and change to rials 3 via RVM?
gem install rails
will install the latest version of rails in rvm. Note /no/ sudo,
because you are using rvm.
gem install rails --version a.b.c
will install version a.b.c
the one you posted from sudobits.
If this is regarding my last post which I have already deleted, the bad
interpreter error occurs every time I start my computer. If I load the
RVM via
source ~/.rvm/scripts/rvm
then it works. Why doesn't it load automatically?
regards,
seba
You can't delete a post on a mailing list (which this is), we have all
already received it.
Have you followed this instruction from the command rvm notes
* If you wish to use RVM in an interactive fashion in other shells
then place the following line at the end of your shell's loading files
(.bashrc or .bash_profile for bash and .zshenv for zsh),
after all PATH/variable settings:
[[ -s "/home/colinl/.rvm/scripts/rvm" ]] && source
"/home/colinl/.rvm/scripts/rvm" # This loads RVM into a shell
session.