2012-07-03 58 views
0

這些天來,我嘗試在centOS上安裝Redmine(一個基於Ruby on Rails的Web應用程序)。
我也跟着上的紅寶石官方指南website.However我遇到了一個問題:
在終止:
在centOS上的軌道上安裝紅寶石

[[email protected] aaa]# cd blog 
[[email protected] blog]# rails -v 
Rails 3.2.6 

    [[email protected] blog]# rails server 
    => Booting WEBrick 
    => Rails 3.2.6 application starting in development on http://0.0.0.0:3000 
    => Call with -d to detach 
    => Ctrl-C to shutdown server 
    [2012-07-03 07:01:32] INFO WEBrick 1.3.1 
    [2012-07-03 07:01:32] INFO ruby 1.8.7 (2012-06-29) [i686-linux] 
    [2012-07-03 07:01:32] INFO WEBrick::HTTPServer#start: pid=20517 port=3000 
    ... 

它工作得很好。 但是,當我啓動另一個應用程序Redmine。

[[email protected] aaa]# cd redmine 
[[email protected] redmine]# rails -v 
script/rails:6:in `require': no such file to load -- rails/commands (LoadError) 
     from script/rails:6 
[[email protected] redmine]# rails server 
script/rails:6:in `require': no such file to load -- rails/commands (LoadError) 
     from script/rails:6 
... 

結果讓我困惑。任何人都可以幫助我。

+0

嘗試「捆綁安裝」 –

+0

您是否運行捆綁軟件? –

+0

l已經運行'捆綁安裝',但它似乎不起作用。 – LiveJin

回答

0

聽起來像redmine是rails 2.x和博客是rails 3.x.我已使用RVM & gemsets解決了此問題。您可以搜索其他方式來運行多個版本的導軌。