MySQL Install: ERROR: Failed to build gem native extension

前端 未结 14 1762
天涯浪人
天涯浪人 2020-11-28 19:23

I\'m trying to get MySQL installed to the latest version due to some installation going wrong somewhere along the line. I run the command gem install mysql and

14条回答
  •  离开以前
    2020-11-28 20:25

    Installing the mysql gem on OSX

    in a terminal.. First do a ‘locate mysql_config’ and then replace the path in the following command with where that file is.

    $ sudo gem install mysql -- —–with-mysql-config=/usr/local/mysql/bin/mysql_config
    Building native extensions. This could take a while…
    Successfully installed mysql-2.7
    1 gem installed
    

提交回复
热议问题