2011-08-28 2 views
2

MySQL 5.5 (mysql-installer-5.5.15.0.msi)와 mysql gem ("gem install mysql"명령 사용)을 설치했습니다. 이제 간단한 프로그램을 작성하고 루비를 실행할 때 다음 메시지를 보내주세요.루비와 함께 MySQL을 사용하는 LoadError (mysql_api.so 찾을 수 없음)

C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 126: The specified module could not be found. - C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so (LoadError) 

누군가이 문제를 해결하는 데 도움을 줄 수 있습니까? 로 : '\ 프로그램 파일 \ MySQL은 \ MySQL 서버 5.1 \ 빈 C' 감사


나는에서 "libmySQL.dll 파일"파일 복사 'C를 : \ Ruby192 빈 \'하지만 지금은 프로그램 루비를 실행할 때 날이 오류를 줄 :

C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 193: %1 is not a valid Win32 application. - C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so (LoadError) 
+2

참조 http://stackoverflow.com/questions/5164818/loaderror-trying-to-use-mysql-with-ruby-on-rails-in-windows-rubymine-ide 또는 http://stackoverflow.com/questions/4241068/rubymine-3-0-setup-on-windows-7 – knut

답변

관련 문제