Rails error installing mysql2 (mysql2-0.3.20)

后端 未结 5 1354
无人共我
无人共我 2021-02-04 04:15

I am trying to get a rails project up and running on my local machine. When I do bundle install

Fetching mysql2 0.3.20
Installing mysql2 0.3.20 with native ext         


        
5条回答
  •  旧时难觅i
    2021-02-04 04:58

    This worked for me - macOS Catalina

    brew uninstall mysql
    gem uninstall mysql2
    
    brew install mysql@5.7
    brew link mysql@5.7 --force
    gem install mysql2 -v '0.3.21'
    
    # Gemfile
    gem 'mysql2', '0.3.21'
    
    bundle update mysql2
    

提交回复
热议问题