Ruby on Rails를 처음 사용했습니다. 내 환경은 Windows 2008 R2이고, 나는 단지 RailsInstaller를 사용하여 설정합니다. 웹 사이트가 주어 졌으므로 C : \ Sites 아래에 배치했습니다. 코드에서 버전을 볼 수 있으므로 가이드를 따라 레일을 설치했습니다. 그런 다음 "rails server"를 실행하여 서비스를 시작하려고했지만 "therubyracer-heroku-0.8.1.pre3이 설치되어 있지 않음을 알리는 오류 메시지가 표시되었으므로 이후에 보석 설치 및 번들 설치를 수행했습니다. 그런 다음 therubyracer- heroku는 오류를 많이 던져 버렸습니다. 그래서 나는 그 파일을 그룹에서 랩핑해야한다고 말했고, 나는 그것을 젬 파일 내의 프로덕션 그룹에서 제거해야한다고했습니다. 이제 "번들 설치"를 할 때 모든 것이 잘됩니다. 나는 "레일 서버"를 진행하고 나는 아래로 아래의 오류 메시지. 어떤 도움을 있어요?하시기 바랍니다해당 파일을로드 할 수 없습니다. -pty (LoadError)
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.13'
gem 'pg'
gem 'hashie'
gem 'figaro' # handles app configurations
gem 'airbrake' # exception/error tracking service
gem 'haml'
gem 'validates_existence', '>= 0.4'
gem 'useragent'
gem 'heroku'
group :development do
gem 'zeus' # speeds up loading of console and server
gem 'better_errors' # nicely-formatted UI of errors
gem 'binding_of_caller' # allows real-time debugging on error breakpoints
gem 'therubyracer', :platforms => :ruby, :require => 'v8'
end
group :production do
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
end
gem 'sass-rails', '~> 3.2.5'
gem 'coffee-rails', '~> 3.2.2'
gem 'uglifier'
gem 'jquery-rails'
gem 'prototype-rails'
gem 'coffee-filter'
년 - 오류 출력
Rails 3.2.13
ruby 1.9.3p429 (2013-05-15) [i386-mingw32]
$ rails server
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/ac
tive_support/dependencies.rb:251:in `require': cannot load such file -- pty (LoadError)
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/zeus-0.13.3/lib/zeus.rb:4:in `<top (required)>'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from c:/Sites/rct/config/application.rb:7:in `<top (required)>'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
을 제거 재 시도를 참조해야합니다. 그러나 activesupport 또는 bundler 또는 railties는 어떨까요?이 문제는 창과 관련된 문제입니까? – user2635977
아니요,이 보석 세 개 모두 괜찮습니다. –