Error installing mysql2: Failed to build gem native extension

后端 未结 27 2815
清酒与你
清酒与你 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条回答
  •  -上瘾入骨i
    2020-11-22 09:11

    After you get the mysql-dev issues corrected, you may need to remove the bad mysql2 install. Look carefully at the messages after $ bundle install. You may need to

    rm -rf vendor/cache/
    rm -rf ./Zentest
    

    This will clear out the bad mysql2 installation so that a final $ bundle install can create a good one.

提交回复
热议问题