An error occurred while installing mysql2 (0.4.8), and Bundler cannot continue

后端 未结 5 880
慢半拍i
慢半拍i 2020-12-30 23:08

How can I fix this error in ruby on rail.

source \'https://rubygems.org\'

git_source(:github) do |repo_name|
  repo_name = \"#{repo_name}/#{repo_name}\" unl         


        
5条回答
  •  一个人的身影
    2020-12-30 23:47

    I think you missing dev library of mysql:

    On ubuntu

    sudo apt-get install libmysqlclient-dev
    

    On Red Hat/CentOS and other distributions using yum:

    sudo yum install mysql-devel
    

    On Mac OS X with Homebrew:

    brew install mysql
    

提交回复
热议问题