나는이 오류를 찾고 모든 것을 다시 시도하고 모든 것을 시도했습니다. 여기서 내가 발견 한 것은 오래된 게시물과 오래된 버전입니다. 예, MySQL C Connector를 다운로드하고 lib 디렉토리를 해당 ruby 디렉토리로 이동했습니다. 아직 아무것도. gem install을 설치할 수 없습니다. mysql2 Ruby WINx64
는 임은 PC WINx64 루비 버전 2.0.0-p195 DevKit**gem install mysql2**
**Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
C:/Ruby200/bin/ruby.exe extconf.rb
checking for main() in -llibmysql... no
*** 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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby200/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/
--with-libmysqllib
--without-libmysqllib
Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1/ext/mysql_api/gem_make.out**
B:\ROR\hcv>
윈도우 문제를 나에게 모든 시간을주고의 최신 버전을 실행. 하지만 이것이 제가 일하는 것입니다. 고마워.