我尝试创建一个简单的RoR 3.2.3应用程序,但我无法完成。看来我安装了错误的东西。
这里是Ubuntu的控制台代码无法在RoR中创建简单的应用程序
~$ rails test
/usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1208:in `gem'
from /usr/local/bin/rails:18
~$ rails -v
Rails 3.2.3
~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
~$ gem -v
1.8.15
我应该怎么做来解决它?
您是否使用RVM安装并安装了所有必需的依赖项? –
'rails new test_app'? – Mischa
@Mischa:它给出了相同的结果。 – Alexandre