루비 버전 2.0.0.0p195 (2013-05-14) [x64-mingw32]와 루비 보석 버전 2.0.3이 설치되어 있습니다. 방금 MySQL Community Server 5.6.12 (32 비트) 설치 프로그램을 설치했습니다. mysql 또는 mysql2 gem을 작동시키고 Ruby on Rails에 대한 자세한 내용을 알기 위해 서버를 설치하려고합니다.mysql 또는 mysql2 gem 설치 관련 문제
아래의 오류가 발생하면 mysql2 gem을 설치할 때 누군가가 올바른 방향으로 나를 가리켜 서 mysql2 보석을 설치하면 ruby를 mysql과 함께 사용할 수 있고 결국 웹 검색자가 나타납니다.
네이티브 확장 기능. 이 ... 좀 걸릴 수
ERROR : Erorr intalling mysql2 : ERROR : 레일 설치 프로그램을 사용하고 내 옛날을 제거 할 내가 (나를 위해) 답을 발견
> C:/Ruby200-x64/bin/ruby.exe extconf.rb checking for
> rb_thread_blocking_region()... *** 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-x64/bin/ruby
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:431:in `try_do': The compiler
> failed to generate an executable file. (RuntimeError) You have to
> install development tools first. from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:516:in `try_link0' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:531:in `try_link' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:717:in `try_func' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1001:in `block in have_func'
> from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:892:in `block in
> checking_for' from C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:337:in
> `block (2 levels) in postpone' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:307:in `open' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:337:in `block in postpone' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:307:in `open' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:333:in `postpone' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:891:in `checking_for' from
> C:/Ruby200-x64/lib/ruby/2.0.0/mkmf.rb:1000:in `have_func' from
> extconf.rb:9:in `<main>'
나는이 문제로 정신없는 양의 문제를 겪었습니다. 사실 sqlite3을 사용하는 것이 좋을 것입니다. 특히 Windows 64 비트 시스템을 사용하는 경우에는 sqlite3을 사용하는 것이 좋습니다. 며칠 동안 MySql 일을 쉽게 처리 할 수 있습니다. 어쨌든 다음과 같은 리소스가 있습니다. http://www.gamecreatures.com/blog/2011/08/31/installing-ruby-on-rails-with-mysql-on-windows/ –
sqllite3과 (과) 충돌할까요? wamp 서버? 나는 다른 프로젝트를 위해 그 runnning을 가지고있다. Wamp와 RoR이 함께 통합되지 않는 한. – kmalik
저는 WAMP에 익숙하지 않습니다.하지만 다른 shcema 이름을 사용하는 한 문제는 없어야합니다. 또 다른 옵션은 MySQL보다 쉽게 찾을 수있는 postgresql입니다. –