2012-07-25 3 views
0

에 설치 나는 다음과 같은 순서로 단계지만,이 문제에 WEBrick 레일 3.2.6 Centos6

를 실행 않았다 나는에 CentOS 6 설치가

1 단계 : http://blog.jeffcosta.com/2011/07/22/install-ruby-version-manager-rvm-on-centos-6/

2 단계 : server-world.info/en/note?os=CentOS_6 & p = MySQL의

3 단계 : sudo는 MySQL을 설치 - --with-MySQL을 구성 =/usr/지방/MySQL은/​​빈/mysql_로를 config gem install -y mysql --with-mysql-config =/usr/bin/mysql_config

모든 젬을 문제없이 설치했습니다. 나는 새로운 simple_cms에게 -d mysql을을
레일을 사용하여 생성 된 응용 프로그램에 WEBrick을로드 할 때

그러나

이 결과 : 이
생성 README.rdoc에게
을 만들 만들 Rakefile
config.ru를 만들
만들기 .gitignore
만들기 Gemfile
create app
앱/자산/자바 스크립트를 만들 rails.png 0,453,210 응용 프로그램/자산/이미지를 만들 수는//
만들고 응용 프로그램/자산/스타일/application.css을 만들
application.js 응용 프로그램/컨트롤러/application_controller.rb
응용 프로그램을 만들 /helpers/application_helper.rb
만들 응용 프로그램/우편물
만들 응용 프로그램/모델
만들 응용 프로그램/뷰/레이아웃/application.html.erb
응용 프로그램/우편물/.gitkeep
만들 응용 프로그램/모델/.gitkeep를 만들
/environment.rb에
가 설정/환경을 만들 5,만들 구성
생성 설정/routes.rb
생성 설정/application.rb
만들 구성
생성 설정/환경/development.rb
생성 설정/환경/production.rb
만들 설정/환경/test.rb
만들 설정/초기화
만들 설정/초기화/backtrace_silencers.rb
만들 설정/초기화/inflections.rb
생성 설정/초기화/mime_types.rb
생성 설정/초기화/secret_token.rb
생성 설정/초기화/session_store.rb
생성 설정/초기화/설정 wrap_parameters.rb
생성/로케일
구성을 만들 /locales/en.yml
config/boot를 만듭니다.RB
이 설정을 생성/database.yml을
는 는 dB/seeds.rb

문서/README_FOR_APP
만들 lib 디렉토리를 생성
는 lib 디렉토리/작업
를 만들 문서 만들기 dB
을 만들 lib 디렉토리/작업/.gitkeep를 만들
만들 lib 디렉토리/자산
만들 lib 디렉토리/자산/.gitkeep

로그/.gitkeep
0을 만들 로그 만들공공



공공/favicon.ico의
가/index.html을
가/로봇을 공개 만들 대중 만들 만들 공공/500.html을 만들 공공/422.html을 생성/공용으로 404.html을 만듭니다. TXT
생성 스크립트
생성 스크립트/레일

만들 시험/비품/.gitkeep
테스트/기능만들 시험/비품을 만들 960,453,210 작성 시험/기능/.gitkeep
만들고 테스트/통합 생성
시험/적분/.gitkeep
작성 시험/부
작성 시험/유닛/.gitkeep
작성 시험/성능/browsing_test.rb
테스트/test_helper.rb 만들
의 tmp/캐시 생성
만들 TMP/캐시/자산
만들 공급 업체/자산/자바 스크립트
만들 공급 업체/자산/자바 스크립트/.gitkeep 012,380,073,162,755,231, 만들 공급 업체/자산/스타일
공급 업체/자산/스타일/.gitkeep
는 공급 업체/플러그인을 만들 만들
공급 업체/플러그인/.gitkeep
실행 번들 [HTTPS에서
가져 오기 보석 메타 데이터를 설치 만들 : // rubygems.org/].
OpenSSL을로드 할 수 없습니다. OpenSSL 지원으로 Ruby를 다시 컴파일하거나 Gemfile의 소스를 'https'에서 'http'로 변경해야합니다. RVM을 사용하여 OpenSSL 으로 컴파일하는 방법은 rvm.io/packages/openssl에서 확인할 수 있습니다.

/usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs : 레일 서버를 실행할 때

는 나는 다음과 같은 오류가 발생합니다 /runtimes.rb:51:in autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs.rb:5:in '
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/execjs-1.4.0/lib/execjs.rb:4:in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in에서'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in '
/usr/local/rvm/gem s/ruby-1.9.3-p194/gems/coffee-script-2.2.0/lib/coffee-script가 있습니다.rb : 1 : <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in에서 '
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in <top (required)>' <br> from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.5/lib/bundler/runtime.rb:68:in이 필요합니다. '012/usr/local/rvm/gems/[email protected]/bundler-1.1.5/lib/bundler/runtime.rb : 66 : block in require' <br> from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.5/lib/bundler/runtime.rb:55:in 각 '
/usr/local/rvm/gems/[email protected]/gems/bundler-1.1.5/lib/bundler/runtime.rb : 55 : require' <br> from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.5/lib/bundler.rb:119:in에서 '
from /root/railsdev/simple_cms/config/application.rb가 필요합니다. 7 : <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in 필요 '
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:53:in block in <top (required)>' <br> from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands.rb:50:in '
/usr/local/RVM/보석/루비 1.9.3-p194/보석/railties-3.2.6/lib 디렉토리/레일/commands.rb : 50 :에 <top (required)>' <br> from script/rails:6:in이 필요

': 6
스크립트/레일에서 '에서 '

어떻게 해결할 수 있습니까?
RVM 정보는 다음과 같은 결과를

루비 1.9.3-p194을 제공합니다

시스템 : UNAME : "리눅스 localhost.localdomain 2.6.32-220.el6.i686 # 1 SMP (화) 12월 6일 GMT 2011 16시 15분 40초는 i686 i686과 i386을 GNU/리눅스 " bash는 :"/ 빈/bash는 => GNU bash는 버전 4.1.2 (1) -release (I386-레드햇 리눅스 GNU) " zsh을 : "=> 설치되지 않음"

rvm : 버전 : "rvm 1.14.7 (stable) by Wayne E. Seguin, Micha L Papis는 [https://rvm.io/] " 업데이트 :"1시간 29초 전에 22분 "

루비 : 통역 :"루비 " 버전 :"1.9.3p194 " 날짜 :"2012 -04-20 " 플랫폼"리눅스는 i686 " 패치 레벨"2012-04-20 수요일 수정 35410 " full_version"루비 1.9.3p194 (2012-04-20 수요일 수정 35410)는 i686 리눅스] "

가정 : 보석 "/usr/local/rvm/gems/ruby-1.9.3-p194" 루비 : "/usr/local/rvm/rubies/ruby-1.9.3-p194"

바이너리 : 루비 : "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" irb : "/usr/local/rvm/rubies/ruby-1.9.3-p194/ 빈/IRB " 보석"/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/gem " 레이크 :"/usr/local/rvm/gems/ruby-1.9.3-p194/ 빈/레이크 "

환경 : 경로 :"/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/[email protected] 글로벌/빈 : /usr/local/rvm/rubies/ruby-1.9.3-p194/bin :/usr/지방/RVM/빈 :/usr/지방/sbin에 :는/usr/sbin에 : ​​경우/sbin :/USR/지방/빈 :는/usr/빈/빈/루트/빈 " GEM_HOME"/usr/local/rvm/gems/ruby-1.9.3-p194 " GEM_PATH :"/ usr/지방/RVM/보석 /ruby-1.9.3-p194:/usr/local/rvm/gems/[email protected] 글로벌 " MY_RUBY_HOME"/usr/local/rvm/rubies/ruby-1.9.3-p194 " IRBRC :"/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc " RUBYOPT" " gemset :.." "

+0

이 정보가 도움이 될만한가요? http://stackoverflow.com/questions/6282307/execjs-and-could-not-find-a-javascript-runtime – mask8

+0

rvm info 다음 결과를 제공합니다. – NewRailsGuy

답변

0

NodeJS를 설치하고 Gemfile에 보석을 추가 이것은 런타임 문제를 해결해야

0

를 레일 3.1 있기 때문에, 자바 스크립트 런타임에 개발에 필요한되었습니다 . 리눅스 우분투 그것은 맥 OS X 또는 Windows 필요하지 않습니다

리눅스 우분투 개발을위한

이는 Node.js를 서버 측 자바 스크립트 환경 설치하는 것이 가장 좋습니다 :.

는 sudo apt-get을 설치 nodejs를

그리고 $ PATH에 설정하십시오. 당신은 Node.js를 설치하지 않은 경우

, 당신은 당신이 구축 각 레일 응용 프로그램의 Gemfile에이를 추가해야합니다 :

보석 'therubyracer' '> = 0.9.9'

source

관련 문제