2013-08-09 1 views
1

내 질문이 매우 기본적인 것일 수 있도록 레일즈에서 루비를 배우고 있습니다. 루비 2.0.0를 사용하고 8 첫째, 나는 레일에 루비를 설치하기 위해 노력하고있어 윈도우 4.0 레일,하지만 난처럼 많은 오류를 가지고있어 :ascii-8bit에서 utf8로 변환 할 수 없습니다

unable to convert from ascii-8bit to utf8 logo remix.gif, skipping 

할부가 성공적으로 완료,하지만 난 그것을 생각 일부 이미지가 누락되었습니다. 내가 웹을 검색했고, 많은 MAC 기계에 대해 말했다, 그것은의 내용을 사용자에게 \하는 .bash_profile에 \ 사용자 이름을 추가하여 고정 할 수 있습니다

export LC_CTYPE=en_US.UTF-8 
export LANG=en_US.UTF-8 
unset LC_ALL 

하지만 어떻게 윈도우 8 머신이 문제를 해결합니까?

둘째, Windows 8에서 Webrick 서버를 시작하는 방법 은요?

Usage: 
    rails new APP_PATH [options] 

Options: 
    -r, [--ruby=PATH]    # Path to the Ruby binary of your choice 
           # Default: C:/Ruby200-x64/bin/ruby.exe 
    -m, [--template=TEMPLATE]  # Path to some application template (can be a filesystem path or URL) 
     [--skip-gemfile]   # Don't create a Gemfile 
    -B, [--skip-bundle]   # Don't run bundle install 
    -G, [--skip-git]    # Skip .gitignore file 
     [--skip-keeps]    # Skip source control .keep files 
    -O, [--skip-active-record]  # Skip Active Record files 
    -S, [--skip-sprockets]   # Skip Sprockets files 
    -d, [--database=DATABASE]  # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc) 
           # Default: sqlite3 
    -j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library 
           # Default: jquery 
    -J, [--skip-javascript]  # Skip JavaScript files 
     [--dev]     # Setup the application with Gemfile pointing to your Rails checkout 
     [--edge]     # Setup the application with Gemfile pointing to Rails repository 
    -T, [--skip-test-unit]   # Skip Test::Unit files 
     [--rc=RC]     # Path to file containing extra configuration options for rails command 
     [--no-rc]     # Skip loading of extra configuration options from .railsrc file 

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

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

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

    You can specify extra command-line arguments to be used every time 
    'rails new' runs in the .railsrc configuration file in your home directory. 

    Note that the arguments specified in the .railsrc file don't affect the 
    defaults values shown above in this help message. 

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. 

내가 놓친 일부 분할이 있습니까 : 나는 "레일 서버"를 입력하면

actionmailer (4.0.0) 
actionpack (4.0.0) 
activemodel (4.0.0) 
activerecord (4.0.0) 
activerecord-deprecated_finders (1.0.3) 
activesupport (4.0.0) 
arel (4.0.0) 
atomic (1.1.12) 
backports (3.3.3) 
bigdecimal (1.2.1, 1.2.0) 
builder (3.2.2, 3.1.4) 
bundler (1.3.5) 
coderay (1.0.9) 
coffee-rails (4.0.0) 
coffee-script (2.2.0) 
coffee-script-source (1.6.3) 
erubis (2.7.0) 
execjs (1.4.0) 
ffi (1.9.0) 
formatador (0.2.4) 
guard (1.8.2) 
guard-sass (1.3.2) 
hike (1.2.3) 
i18n (0.6.4) 
io-console (0.4.2) 
jbuilder (1.5.0) 
jquery-rails (3.0.4) 
json (1.8.0, 1.7.7) 
listen (1.2.2) 
lumberjack (1.0.4) 
mail (2.5.4) 
method_source (0.8.2) 
mime-types (1.23) 
minitest (5.0.6, 4.7.5, 4.3.2) 
multi_json (1.7.8) 
polyglot (0.3.3) 
pry (0.9.12.2) 
psych (2.0.0) 
rack (1.5.2) 
rack-test (0.6.2) 
rails (4.0.0) 
railties (4.0.0) 
rake (10.1.0, 0.9.6) 
rb-fsevent (0.9.3) 
rb-inotify (0.9.0) 
rb-kqueue (0.2.0) 
rdoc (4.0.1, 4.0.0, 3.12.2) 
rubygems-update (2.0.6) 
sass (3.2.10) 
sass-rails (4.0.0) 
sdoc (0.3.20) 
slop (3.4.6) 
specific_install (0.2.3) 
sprockets (2.10.0) 
sprockets-rails (2.0.0) 
test-unit (2.5.5, 2.0.0.0) 
thor (0.18.1) 
thread_safe (0.1.2) 
tilt (1.4.1) 
treetop (1.4.14) 
turbolinks (1.3.0) 
tzinfo (1.0.1, 0.3.37) 
uglifier (2.1.2) 
webrick (1.3.1) 
win32console (1.3.2) 

, 나는이 메시지를 가지고 : 참고로 , 여기에 보석의 내 목록은? 도와주세요.

답변

0

글쎄, 마침내 두 번째 문제를 해결하고 Webrick을 실행시켜야합니다. "레일스 새로운 myblog"와 같은 응용 프로그램을 먼저 만들어야하고 "cd myblog"디렉토리로 들어가서 "번들 설치"를 실행 한 후에 서버를 시작하기 위해 "rails s"를 입력 할 수 있습니다. 아파치 서버와는 조금 다릅니다. 앱을 만들지 않고도 언제든지 아파치 서버를 시작할 수 있습니다. 그러므로 내 혼란.

누구든지 내 첫 번째 문제에 도움을 주시면 감사하겠습니다.

0

Windows에서 환경 변수와 동일한 변수를 설정할 수 있어야합니다. 명령 줄에서 setx를 사용할 수 있습니다 (예 : setx LC_CTYPE "en_US.UTF-8"... here 참조). 위의 내용과 동일한 효과가 있어야합니다.

그런데 실제로 테스트 할 Windows 8이 없으므로 직접 시도해야합니다.하지만 Windows 8 이상을 Mac에서 사용하는 것과 같습니다.

0

Windows 8에서 레일을 개발하는 것은 고통입니다. 리눅스 기반이 아닙니다. 우분투는 ascii-8bit to utf8 오류와 같이

을 설치해야합니다. 나는 비슷한 문제를 가지고이 내게 도움이 포스트이었다 문서

gem rdoc --all --overwrite 

를 다시 생성

gem install rdoc 그런

으로 고정 : 멀리 창으로 8 개발이 시도 Ruby on Rails - unable to convert "\x89" from ASCII-8BIT to UTF-8 for xxx/xxxx/xxxx

을 우분투 시스템 용 가상 박스 사용하기

http://nitrous.io/은 멋진 프로젝트입니다. 이미 개발 환경으로 클라우드에서 작업 할 수 있습니다.

관련 문제