http://www.mongodb.org/display/DOCS/Ruby+Language+Center
를 보고 몽고DB를 연계하려고 작업중, 아래와 같은 오류가 나버렸다.
주로 윈도우에서나타나는 현상인데....

잘 읽어보면 development-kit 를 사용하라는 말이다.
http://github.com/oneclick/rubyinstaller/wiki/development-kit

C:\>gem update --system
Latest version currently installed. Aborting.

C:\>gem install bson_ext
Building native extensions.  This could take a while...
ERROR:  Error installing bson_ext:
        ERROR: Failed to build gem native extension.

        C:/Ruby191/bin/ruby.exe extconf.rb
checking for asprintf()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:


첨엔 뭔소린가 해서 다운로드 받고 생쇼했는데....
압축을 풀고나면 이런 파일이 있는데...msys.bat를 실행하면 유닉스 쉘같은 환경이 뜬다.



커멘드창에서 실패했던 "gem install bson_ext" 명령어를 여기서 치면 OK


+ Recent posts