1

I've successfully installed the gem mysql2 with ruby under windows in the past, but now it's showing a weird error

checking for main() in -llibmysql... no

There is no typo, my console really shows -llibmysql and not -libmysql (and I think it should even be just libmysql without any dash)

I have followed all the instructions from this link, and my command looks like

gem install mysql2 -- '--with-mysql-lib="c:\Dev\MySQL_Connector\lib" --with-mysql-include="c:\Dev\MySQL_Connector\include"'
...

ERROR:  Error installing mysql2:
        ERROR: Failed to build gem native extension.

    C:/Bibliotheques/Dev/Ruby200-x64/bin/ruby.exe extconf.rb --with-mysql-lib=c:\Dev\MySQL_Connector\lib --with-mysql-in
clude=c:\Dev\MySQL_Connector\include
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using --with-mysql-dir=c:\Dev\MySQL_Connector
-----
checking for main() in -llibmysql... no
Community
  • 1
  • 1
Cyril Duchon-Doris
  • 12,964
  • 9
  • 77
  • 164

0 Answers0