Mic*_*ant 3 ruby ruby-on-rails activesupport ruby-on-rails-3
我做了sudo apt-get install rails,一切都很好.
Reading package lists... Done
Building dependency tree
Reading state information...
...
Setting up ruby-actionmailer-2.3 (2.3.14-2) ...
Setting up ruby-activeresource-2.3 (2.3.14-1) ...
Setting up ruby-rails-2.3 (2.3.14-2) ...
Setting up rails (2.3.14.1) ...
Setting up ruby1.8-dev (1.8.7.352-2ubuntu0.1) ...
Run Code Online (Sandbox Code Playgroud)
但是现在当我尝试做的时候
铁路新测试
我明白了 cannot load such file -- active_support (LoadError)
And*_*rew 12
我不建议尝试通过aptitude加载rails,我会使用RubyGems.然后运行gem install rails,并根据需要传递特定版本.
例如,当Rails目前使用的是3.2版时,aptitude正试图为你提供Rails 2.3.您运行的命令rails new test是rails 3版本.在Rails 2中它会是script/rails ...某种东西.
具体来说,您可以尝试:
$ sudo apt-get remove rails # remove the previous install attempt of 2.3
$ gem install rails # Install rails version 3+ (3.2 in this case).
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3656 次 |
| 最近记录: |