2010-12-30 7 views
0

IronRuby에서 MS SQL 서버에 연결하려고합니다. "activerecord-sqlserver-adapter (2.3.4)", "dbd-odbc (0.2. 4) ","dbi (0.4.2) "그리고"ruby-odbc "를 설치해야하는 것 같지만 왜 그것을 설치할 수 있는지 모르겠습니다.IronRuby에 "ruby-odbc"를 설치할 수 없습니다.

Building native extensions. This could take a while... 
ERROR: Error installing ruby-odbc: 
ERROR: Failed to build gem native extension. 

E:/ironruby-1.0v4/bin/ir.exe extconf.rb 
can't find header files for ruby. 

Gem files will remain installed in E:/ironruby-1.0v4/lib/ironruby/gems/1.8/gems/ruby-odbc-0.99993 for inspection. 
Results logged to E:/ironruby-1.0v4/lib/ironruby/gems/1.8/gems/ruby-odbc-0.99993/ext/gem_make.out 

답변

0

Sam, 나는 Windows 7에서 ruby-odbc을 사용할 수있었습니다. 레일즈 3을 어떻게 설치하고 Windows 7에서 실행했는지에 대한 블로그 게시물을 작성했습니다. 루비 -dbc를 얻는 데 도움이되는 몇 가지 단계가 포함되어 있습니다 창문에서 일하는 중. 링크는 다음과 같습니다. Getting Rails 3 Up on Windows Connecting to SQL Server

관련 문제