2011-07-29 5 views
2
1. Install Ruby on Rails 

sudo gem install rails 
2. Install the Juggernaut Gem 

sudo gem install juggernaut 
3. Download the demo app and unpack it. 

4. Start the Rails application 

ruby script/server 
5. Start the Juggernaut server 

juggernaut -c juggernaut.yml 
6. Open the browser and go to http://localhost:3000 

マック10.6上で絶対的な力/ルビーの問題を「必要」。私はルビーをインストールし、juggernautをインストールし、gitubからアプリケーションをクローンしました。それから私はディレクトリをcd'dし、rails sを試みました。私はその後、juggernaut -c juggernaut.ymlを試してみました「救助せずに、他には役に立たない」と私はこれらの非常に簡単な手順に従うことを、すべての朝を試みてきたが、私のコンピュータは非常にすべての単一の絶対的な力のアプリケーションに問題があるようだ

Usage: 
    rails new APP_PATH [options] 

Options: 
    -r, [--ruby=PATH]   # Path to the Ruby binary of your choice 
           # Default: /Users/fred/.rvm/rubies/ruby-1.9.2-p180/bin/ruby 
    -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) 
           # Default: sqlite3 
    -b, [--builder=BUILDER]  # Path to an application builder (can be a filesystem path or URL) 
    -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) 
     [--dev]     # Setup the application with Gemfile pointing to your Rails checkout 
     [--edge]    # Setup the application with Gemfile pointing to Rails repository 
     [--skip-gemfile]  # Don't create a Gemfile 
    -O, [--skip-active-record] # Skip Active Record files 
    -T, [--skip-test-unit]  # Skip Test::Unit files 
    -J, [--skip-prototype]  # Skip Prototype files 
    -G, [--skip-git]   # Skip Git ignores and keeps 

Runtime options: 
    -f, [--force] # Overwrite files that already exist 
    -p, [--pretend] # Run but do not make any changes 
    -q, [--quiet] # Supress status output 
    -s, [--skip]  # Skip files that already exist 

Rails options: 
    -v, [--version] # Show Rails version number and quit 
    -h, [--help]  # Show this help message and quit 

Description: 
    The 'rails new' command creates a new Rails application with a default 
    directory structure and configuration at the path you specify. 

Example: 
    rails new ~/Code/Ruby/weblog 

    This generates a skeletal Rails installation in ~/Code/Ruby/weblog. 
    See the README in the newly created application to get going. 

だと誰かが私を助けてくださいすることができ

/Users/fred/.rvm/gems/ruby-1.9.2-p180/gems/maccman-juggernaut-0.5.9/lib/juggernaut/server.rb:128: warning: else without rescue is useless 
/Users/fred/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require': /Users/fred/.rvm/gems/ruby-1.9.2-p180/gems/maccman-juggernaut-0.5.9/lib/juggernaut/server.rb:122: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) 
     when :broadcast: broadcast_command 
         ^
/Users/fred/.rvm/gems/ruby-1.9.2-p180/gems/maccman-juggernaut-0.5.9/lib/juggernaut/server.rb:363: syntax error, unexpected keyword_end, expecting $end 
    from /Users/fred/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require' 
    from /Users/fred/.rvm/gems/ruby-1.9.2-p180/gems/maccman-juggernaut-0.5.9/lib/juggernaut.rb:157:in `<top (required)>' 
    from /Users/fred/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require' 
    from /Users/fred/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require' 
    from /Users/fred/.rvm/gems/ruby-1.9.2-p180/gems/maccman-juggernaut-0.5.9/bin/juggernaut:3:in `<top (required)>' 
    from /Users/fred/.rvm/gems/ruby-1.9.2-p180/bin/juggernaut:19:in `load' 
    from /Users/fred/.rvm/gems/ruby-1.9.2-p180/bin/juggernaut:19:in `<main>' 

を得ました。すべての非juggernautレールアプリは、私のコンピュータ上でうまく動作します。

+3

私はあなたが動揺している知っている..しかし、多分あなたは、あなたの問題のためのより適切な何かにタイトルを変更する必要があり –

+0

申し訳ありませんが、私はタイトルを変更しましたが、あなたはこれらの問題を解決する方法を知っていますか? – user852974

+0

'救助なしでは役に立たない'?多分タイトルで別の刺しを取る? – diedthreetimes

答えて

0

私はCentOSの上で同様の問題がありました。宝石の設定が間違っている場合、これは

は、私は完全に違うもので、このエラー'warning: else without rescue is useless'を持っていたバンドラ bundle exec rails s

0

以内にそれを実行してみてください(何が、sudoのとは何かを知らない)発生する可能性があります。

その奇妙1が、私はあなたがエラーを発生させることができる方法を見たら、私は問題を発見し、それを修正しました。

http://nofail.de/2011/12/ruby-quirks/

基本的にはどこかの宝石や追加したコードでは、不正なif文を持っています。

不思議このエラーは、1つの開発者以外の問題を引き起こしていませんでした。この不正な形式のifは生産に持ち込まれ、機能しているようです。彼の開発ボックスでは、エラーにフラグを立てて不公平な指示をして死ぬでしょう。

関連する問題