How to install MySQL gem on Mac OS X

前端 未结 10 1225
情歌与酒
情歌与酒 2020-12-29 12:30

What do I need to install mysql gem on Mac OS X ? I\'m getting error \"failed to build native extensions\".

10条回答
  •  一整个雨季
    2020-12-29 13:04

    I came across this issue while setting up MySQL gem on MacOs Mojave .This worked for me

    1 Ensure Xcode command line tools are installed. xcode-select --install

    1. For me the build was still failing with some header files missing which you have to install open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

    This link pointed to right direction. Can't compile C program on a Mac after upgrade to Mojave

提交回复
热议问题