I’ve just installed the latest gem version and also rails. Everything
went ok. I am using Ubuntu 11.10 with ruby 1.9.3-p194.
However, when I try to create a new application, I get:
/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:into_spec’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1231:in `gem’
from /usr/local/bin/rails:18
when I want to get the rails version I also get this:
/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:into_spec’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1231:in `gem’
from /usr/local/bin/rails:18
/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:into_spec’
from /usr/local/lib/site_ruby/1.8/rubygems.rb:1231:in `gem’
from /usr/local/bin/rails:18
sebah@sebah-laptop:~/rails/blog$
I’ve checked my ubuntu program centre and there I have something called
a transitional package for ruby 1.8 (I am backtranslating from my
language). If I try to uninstall it I’d have to uninstall some
dependencies and I am not sure if I may.
No need to do that, your are using rvm so it should be using the
version installed under rvm.
Can you post the complete output from trying to create a new rails app.
Try again without the asterisks, they were for formatting in the mail
you
copied from…
Am 23.07.2012 15:29 schrieb “Sebastjan H.” [email protected]:
Did you mean:
sebah@sebah-laptop:~$ which ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
I’ve checked my ubuntu program centre and there I have something called
a transitional package for ruby 1.8 (I am backtranslating from my
language). If I try to uninstall it I’d have to uninstall some
dependencies and I am not sure if I may.
I’ve checked my ubuntu program centre and there I have something called
a transitional package for ruby 1.8 (I am backtranslating from my
language). If I try to uninstall it I’d have to uninstall some
dependencies and I am not sure if I may.
No need to do that, your are using rvm so it should be using the
version installed under rvm.
Can you post the complete output from trying to create a new rails app.
Colin
I’ve uninstalled the transitional package anyways and it didn’t help. It
still tries to access the location below.
The entire output:
sebah@sebah-laptop:~/rails$ rails new test
/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
version installed under rvm.
/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)