uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)

前端 未结 25 2272
抹茶落季
抹茶落季 2020-12-02 23:48

moved a rails app of mine onto a new server and had to install a few gem dependencies. However, after installing the mysql gem I get the error, uninitialized constant Mysql

25条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 00:12

    With mysql gem (2.8.1) I was getting

    uninitialized constant MysqlCompat::MysqlRes

    Using -v 2.7 make it work perfectly and for those who used Homebrew to install mysql

    sudo gem install mysql -v 2.7 -- --with-mysql-config=/usr/local/Cellar/mysql/5.1.48/bin/mysql_config

    Note that you can change mysql version if needed.

提交回复
热议问题