'설치'에 해당되는 글 2

  1. 2013.07.17 Ruby, Rails 설치
  2. 2012.12.19 Grails - Installation

Ruby, Rails 설치

- Linux

- Windows
http://rubyinstaller.org/downloads/에서 RubyInstaller를 다운로드해서 설치
2013-07-16 ruby 2.0, rails 4.0

> ruby -v
ruby 1.9.3p448 (2013-06-27) [i386-mingw32]

> gem update --system
> gem -v
2.0.5

> gem install rails
Fetching: i18n-0.6.4.gem (100%)
Successfully installed i18n-0.6.4
Fetching: multi_json-1.7.7.gem (100%)
Successfully installed multi_json-1.7.7
Fetching: tzinfo-0.3.37.gem (100%)
Successfully installed tzinfo-0.3.37
Fetching: minitest-4.7.5.gem (100%)
Successfully installed minitest-4.7.5
Fetching: atomic-1.1.10.gem (100%)
ERROR:  Error installing rails:
        The 'atomic' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'


//DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe

devkit> ruby dk.rb init

devkit> ruby dk.rb review
devkit> ruby dk.rb install

> gem install rails
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile

make "DESTDIR="
generating atomic_reference-i386-mingw32.def
compiling atomic_reference.c
linking shared-object atomic_reference.so
d:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: can
not find -lmsvcrt-ruby191
collect2: ld returned 1 exit status
make: *** [atomic_reference.so] Error 1

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/atomic-1.
1.10 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/atomic-1.1.10/ext/gem_make
.out


//DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
//위와 동일한 에러, devkit 컴파일도 안됨.

//Ruby 1.9.2-p290로 다시 설치함.

> ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

> gem update --system
> gem -v
2.0.5

> gem install rails
//위와 동일한 에러, devkit 컴파일도 안됨.

//Ruby 2.0.0-p247
//DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe


> ruby -v
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]

> gem -v
2.0.3
> gem update --system
> gem -v
2.0.5

> gem install rails
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed atomic-1.1.10
Fetching: thread_safe-0.1.0.gem (100%)
Successfully installed thread_safe-0.1.0
Fetching: activesupport-4.0.0.gem (100%)
Successfully installed activesupport-4.0.0
...
Installing ri documentation for rails-4.0.0
25 gems installed


> rails -v
Rails 4.0.0




Grails - Installation

  1. Download, extract the archive
  2. Set GRAILS_HOME, JAVA_HOME environment variables
  3. Add $GRAILS_HOME/bin/ to PATH
  4. Type grails -version to check installation