mysql.h is missing … (Ruby on Rails, OSX)

前端 未结 5 471
情深已故
情深已故 2020-12-24 15:07

I tried several ideas ... none of them worked ... I\'m just trying to install mysql2 as a gem. My mysql is working, but every time my system says, that mysql.h is missing .

5条回答
  •  离开以前
    2020-12-24 15:31

    Installing a gem sometimes involves compiling source. In this case the MySQL gem needs to create the ruby interface by compiling the C code -- you most likely need to install the MySQL development files.

    (missed the OSX reference earlier)

提交回复
热议问题