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

Make sure that gem install mysql2 -v '0.5.2' succeeds before bundling.

# debian/ubuntu
sudo apt-get install libmysqlclient-dev

# mac os
brew install mysql-connector-c
bundle config --local build.mysql2 "--with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include"

An error occurred while installing pg (1.1.2), and Bundler cannot continue.

Make sure that gem install pg -v '1.1.2' succeeds before bundling.

# debian/ubuntu
sudo apt-get install libpq-dev

#mac os
brew install postgresql
0条评论 顺序楼层
请先登录再回复