2013-11-03 1 views
0

Ruby 튜토리얼 (Michael Hartl)을 따르려고합니다. 나는 Gemfile에이 오류를 얻을 : 41 (35 몇 가지 단계 전에 그것은 Gemfile에 있었다) :Ruby/Rails/Aptana에 번들을 설치할 때이 오류가 무엇입니까?

Franciscos-MacBook-Pro:first_app franciscomello$ bundle install --without production 
Undefined local variable or method `rb' for Gemfile 
     from /Users/franciscomello/Desktop/Aptana Studio 3 Workspace/First_app/Gemfile:41 

나는 많은 팁을 시도했다. 예를 들어, 내가 샌드 박스 올바른 출력이 : 이미 내 Gemfile을 디버깅

Franciscos-MacBook-Pro:first_app franciscomello$ which ruby irb gem rake 
/usr/bin/ruby 
/usr/bin/irb 
/usr/bin/gem 
/usr/bin/rake 

를, 그것은 다음과 같습니다

source 'https://rubygems.org' 

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', '4.0.0' 

# Use sqlite3 as the database for Active Record 
gem 'sqlite3', '1.3.8' 


# Use SCSS for stylesheets 
gem 'sass-rails', '4.0.0' 

# Use Uglifier as compressor for JavaScript assets 
gem 'uglifier', '2.1.1' 

# Use CoffeeScript for .js.coffee assets and views 
gem 'coffee-rails', '4.0.1' 

# See https://github.com/sstephenson/execjs#readme for more supported runtimes 
# gem 'therubyracer', platforms: :ruby 

# Use jquery as the JavaScript library 
gem 'jquery-rails', '3.0.4' 

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 
gem 'turbolinks', '1.1.1' 

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 
gem 'jbuilder', '1.0.2' 

group :doc do 
    # bundle exec rake doc:rails generates the API under doc/api. 
    gem 'sdoc','0.3.20', require: false 
end 

group :production do 
    gem 'pg', '0.15.1' 
    gem 'rails_12factor', '0.0.2' 
end 
#sugestao do Tutorial 
gem rb-readline 
+1

덧붙여 말하자면 ... 유용한 팁 ... Gemfile의 오류 : 41 문제가 Gemfile의 41 번째 줄에 있음을 알려주고 ... 그래서 문제의 원인으로 "gem rb-readline"을 지적했을 것입니다. – SteveTurczyn

+0

대단히 감사합니다 스티브! – kikomello

답변

5

그것은해야 따옴표없이

gem 'rb-readline' 

, 그것은 변수로 해석하려고 시도합니다 ... 특히 rb에서 readline을 뺀다

관련 문제