본문 바로가기
MySql

MySQL Windows 7의 Rails 3 애플리케이션에서 "mysql2"gem을 사용하는 방법은 무엇입니까?

by 베이스 공부 2020. 10. 11.
반응형

Windows 7 32 비트에 mysql2 gem을 설치하려고합니다.

난 달린다:

gem install mysql2

다음과 같은 오류가 발생합니다.

ERROR:  Error installing mysql2:
        The 'mysql2' 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'

이 오류의 원인과 해결 방법에 대한 아이디어는 무엇입니까?

업데이트


gem install mysql2 -- 
     '--with-mysql-lib="c:\Program Files\MySQL\MySQL Server 5.1\lib\opt" 
      --with-mysql-include="c:\Program Files\MySQL\MySQL Server 5.1\include"'

내 시스템의 올바른 경로로 경로를 변경해야한다는 것을 알고 있지만 WAMP MySQL 설치에서 lib \ opt include 디렉토리를 찾을 수 없습니다. WAMP 2.1을 사용합니다.

조언하십시오.

 

해결 방법

 

apachefriends.org에서 XAMPP를 사용해보고 정식 버전을 다운로드하면 "lib", "bin", "include"및 기타 MySQL 디렉토리를 찾을 수 있습니다. 자세한 내용은-


 

참조 페이지 https://stackoverflow.com/questions/5775344

 

 

반응형

댓글