2013-06-03 7 views
0

저는 RailsInstaller에서 Windows 7 x64, Ruby on Rails 3.2.13을 실행하고 있습니다. 내 얇은 서버를 실행하고 로컬 호스트를 다시로드 할 때ExecJS :: RuntimeError 때문에 지정된 경로를 찾을 수 없습니다.

나는이로 실행

ExecJS::RuntimeError at/

["ok","(function() {\n\n\n}).call(this);\n"] 
(in C:/Users/..../assets/javascripts/info.js.coffee) 

info.js.coffee 빈 파일 및 최근의 I되는 :

$ thin start 
>> Using rack adapter 
>> ...... 
>> Listening on 0.0.0.0:3000, CTRL+C to stop 
The system cannot find the path specified. 

이 오류로 인해입니다 rails g controller info에서 생성되었습니다.

6 <%= javascript_include_tag "application" %> 

나는이 문제를 해결하기 위해 노력했습니다이 question의 또 없음에서 수행 한 모든 것을 한 다음 better_errors 보석 내 브라우저에서, 나는이 라인에서 응용 프로그램 레이아웃에 오류가 참조 그것은 효과가 있었다. Node.js를 완전히 제거하지만 자바 스크립트 런타임 스크립트가 필요하고 기본 Windows가 작동하지 않는다고 알려주기 때문에 서버를 실행할 수 없습니다.

그냥 지금은이 오류에 gem install coffee-rails을하지만 실행하려고 :

gem install coffee-rails 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
The system cannot find the path specified. 
ERROR: Error installing coffee-rails: 
     ERROR: Failed to build gem native extension. 

     c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb 
creating Makefile 

내가 뭔가에 생각 해요. 누구든지 이것을 설치하는 방법을 알고 있습니까?

보석 파일 편집 : 당신은 자바 스크립트에 대한 추가 보석을 설치 단지 Gemfile을 편집하고 추가해야

source 'https://rubygems.org' 

gem 'rails', '3.2.13' 
gem 'jquery-rails' 
gem 'devise' 
gem 'execjs' 

group :assets do 
    gem 'sass-rails', '~> 3.2.3' 
    gem 'coffee-rails', '~> 3.2.1' 
    gem 'uglifier', '>= 1.0.3' 
end 

group :development do 
    gem 'sqlite3' 
    gem 'better_errors' 
    gem 'thin' 
    gem 'eventmachine', '1.0.3' 
end 

group :test do 
    gem 'factory_girl_rails' 
    gem 'capybara' 
    gem 'shoulda-matchers' 
end 

group :test, :development do 
    gem 'rspec-rails' 
end 
+0

gemfile에서'gem 'coffee-script''을 했습니까? –

+0

@anonymousxxx 정상적인 레일 응용 프로그램과 같이 '자산'그룹에 '보석류'커피 레일이 있습니다. – LearningRoR

+0

Gemfile을 게시 할 수 있습니까? – tommasop

답변

1

gem 'therubyracer'

또는 Windows

에 대한

gem 'therubyracer', :platform => :ruby

관련 문제