Error installing mysql2: Failed to build gem native extension

后端 未结 27 2729
清酒与你
清酒与你 2020-11-22 08:06

I am having some problems when trying to install mysql2 gem for Rails. When I try to install it by running bundle install or gem install mysq

27条回答
  •  盖世英雄少女心
    2020-11-22 08:54

    I had this issue on Windows 7. This is apparently an incompatibility issue and the solution is as follows:

    Download the libmySQL.dll file from an older InstantRails installer. It is available from the InstantRails GitHub repo.

    Next, copy that file into your Ruby/bin folder.

    Now, you are good to go ;)

提交回复
热议问题