Error when trying to install app with mysql2 gem

前端 未结 11 1982
鱼传尺愫
鱼传尺愫 2020-12-02 06:52

Im trying to install an open source rails 3.2.21 application that uses the mysql2 gem, but when i try and run the bundle commant I get the followin

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 07:46

    Seems that you miss the main files needed to build mysql2 gem

    sudo apt-get install libsqlite3-dev libmysqlclient-dev -y
    

    libsqlite3-dev is not mandatory but install it since it's the default rails DB.

提交回复
热议问题