getting error on rails new myapp
/home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 19 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/high-tech/.rvm/gems/ruby-2.2.3:/home/high-tech/.rvm/gems/ruby-2.2.3#global', execute `gem env` for more information
from /home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
from /home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /home/high-tech/.rbenv/versions/2.2.0/bin/rails:22:in `<main>'
Rails' dependencies might not be correctly installed.
Try the following:
bundle show railties
If it fails:
gem install railties
to install the gem.
Hope it helps.
Related
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems.rb:265:in find_spec_for_exe': can't find gem railties (>= 0.a) with executable rails (Gem::GemNotFoundException) from C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/rubygems.rb:245:in bin_path'
from C:/RailsInstaller/Ruby2.3.3/bin/rails:22:in `'
When I type
rails _4.2.0.rc2_ new hello_app
I get this error
/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (= 4.2.0.rc2) - did find: [railties-4.1.8] (Gem::LoadError)
Checked in 'GEM_PATH=/Users/a11/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0', execute `gem env` for more information
from /Library/Ruby/Site/2.0.0/rubygems/dependency.rb:324:in `to_spec'
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from /usr/bin/rails:22:in `<main>'
I tried installing railsties 4.2.0.rc2 using
gem install railties --pre
If you want try to use new rails version, you need execute
gem install rails --pre
instead of
gem install railties --pre
Railties its core of Rails framework but not in all. See official documentation for more information.
I re-installed rails completely
gem uninstall railties -v 4.2.0.rc2
sudo gem install rails -v 4.2.0.rc2
and that solved it.
I am using this command to create my rails app (version 3.2.16)
rails 3.2.16 new myapp
but I am getting following error
/home/hardik/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (= 3.2.16) - did find: [railties-4.0.0,railties-3.2.14,railties-3.2.13] (Gem::LoadError)
from /home/hardik/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/dependency.rb:307:in `to_spec'
from /home/hardik/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:47:in `gem'
from /home/hardik/.rvm/gems/ruby-2.0.0-p247/bin/rails:22:in `<main>'
from /home/hardik/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
from /home/hardik/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'
Thanx in advance
Look at the error message
Could not find 'railties' (= 3.2.16) - did find: [railties-4.0.0,railties-3.2.14,railties-3.2.13]
You have not installed rails 3.2.16, but you have 4.0.0, 3.2.14 and 3.2.13
rails new myapp
should do it
If you need to specify the rails version, you should use rvm or rbenv
I am trying to start a new project in Rails, but I keep getting the following error:
/Library/Ruby/Site/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems/dependency.rb:256:in `to_spec'
from /Library/Ruby/Site/1.8/rubygems.rb:1210:in `gem'
from /usr/bin/rails:18
What do I do to fix this???
Try this :
sudo gem install railties
I want to use the last version of rails, in my Gemfile: gem 'rails', '3.0.0.beta3'
When trying to start my server I get this error, do you know how I can fix this issue?
$rails s
/Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: activesupport(1.4.4 not = 3.0.0.beta) (Gem::LoadError)
from /Library/Ruby/Site/1.8/rubygems.rb:211:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:246:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:245:in `each'
from /Library/Ruby/Site/1.8/rubygems.rb:245:in `activate'
from /Library/Ruby/Site/1.8/rubygems.rb:1056:in `gem'
from /usr/bin/rails:18
bundle install return Your bundle is complete!
gem list give me
activesupport (3.0.0.beta3, 2.3.5, 2.2.2, 1.4.4)
ok so you have activesupport 3.0.0.beta3 while it requires activesupport 3.0.0.beta. Try this:
gem install activesupport -v 3.0.0.beta --pre