티스토리 뷰
On windows 7 (x64)
When you install rails like this,
gem install rails
if you see errors
...
http://rubyinstaller.org/downloads -> Download Devkit!
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit -> Manual
...
let's install Development-Kit.
Example Native RubyGem Installations using the DevKit
Once you’ve installed the DevKit you’ll discover there are but a few different types of native installation scenarios to deal with.
- The Typical Install Scenario – most of the native RubyGems you’re likely to encounter can be installed by running something similar to
gem install bson_ext --platform=ruby
. It’s crucial that you include the--platform=ruby
option to force RubyGems to build the native gem rather than potentially installing an incorrect binary gem.
- The Manual Install Scenario – sometimes a native RubyGem requires additional artifacts to already exist on your system and be usable. One such gem is curb which requires curl’s native header and library files in order be built and installed. In this scenario you need to tell RubyGems where to find those headers and library files by using a command similar to
gem install curb --platform=ruby -- --with-curl-lib="C:/curl/bin" --with-curl-include="C:/curl/include"
. In addition, the curl library found in the directory specified with--with-curl-lib
must be on yourPATH
for use at runtime by the curb gem.
- The Hacky Developer Scenario – a developer building native gems wants to be able to quickly test that their
extconf.rb
file used to create aMakefile
for the native library works correctly. To shorten the development cycle, the DevKit enables the developer to runruby -rdevkit extconf.rb
.
After install Devkit, try it again
gem install rails
but!!! you could see below... :(
Couldn't reserve space for cygwin's heap, Win32 error 0. ERROR: Error installing rdiscount: ERROR: Failed to build ...
It caused by msys-1.0.dll. You can change this from here.
http://support.code-red-tech.com/CodeRedWiki/VirtualAllocPointerNull
1. Download msys-1.0.zip
2. Unzip
3. Change the dll into <devkit directory>/bin/msys-1.0.dll
4. Done!!!
'Study > Ruby on Rails' 카테고리의 다른 글
Ruby on Rails Windows IDE 개발환경 구축 (0) | 2012.01.31 |
---|
- Total
- Today
- Yesterday
- redis-server
- .dess
- macdrive
- 바이올렛에버가든
- crackit
- jetbrains
- MCITP
- 시작버튼
- udacity
- 모두 거짓말을 한다
- startmenu
- 영랩
- AIMP3
- 호주
- redis
- 가상화폐
- 골드코스트
- palindrome
- CTP
- 비트코인
- windows 2008 server
- 암호화폐
- 구글트렌드
- Everybody lies
- Google App Engine
- MCTS
- my book live
- Windows Phone 7
- minidlna
- sparse matrix
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |