0

我创建了一个测试应用程序,安装了包和所有的 gem。当我 cd 进入应用程序并输入命令“rails s”或“rails server”时,这就是我得到的结果:

/Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:213: warning: Insecure world writable dir /Library/Ruby/Gems/1.8 in PATH, mode 040777
gem install minitest
/Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9:in `require': no such file to load -- minitest/unit (LoadError)
    from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn/minitest.rb:9
    from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13:in `require'
    from /Library/Ruby/Gems/1.8/gems/turn-0.9.6/lib/turn.rb:13
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:68:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:68:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:66:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:66:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:55:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler/runtime.rb:55:in `require'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.1.1/lib/bundler.rb:119:in `require'
    from /Applications/MAMP/htdocs/railsTestApp1/config/application.rb:7
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:53:in `require'
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:53
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:50:in `tap'
    from /Library/Ruby/Gems/1.8/gems/railties-3.2.2/lib/rails/commands.rb:50
    from script/rails:6:in `require'
    from script/rails:6

我试图弄清楚缺少什么。绝望地,我尝试将 gem minitest 安装到 /Ruby/Gems/ 以及 /Ruby/Gems/1.8/gems/ 中,但显然我不知道我在这里做什么。所以拜托,我做错了什么??

4

0 回答 0