简体   繁体   English

Ruby on Rails-Bundler MySQL错误

[英]Ruby on Rails - Bundler MySQL error

I was trying to create a new Rails project. 我试图创建一个新的Rails项目。 When I ran bundle install , I got an error for some reason. 运行bundle install ,由于某种原因出现错误。 Can anyone tell me why this error is occurred and how to fix it? 谁能告诉我为什么会发生此错误以及如何解决?

Rails log (Pastebin): Pastebin Log Rails日志(Pastebin): Pastebin日志

Don't mark as duplicate, just send the link of the question and tell me to delete this post. 不要将其标记为重复,只需发送问题的链接并告诉我删除此帖子即可。 My operating system is Ubuntu. 我的操作系统是Ubuntu。

It sounds like you don't have the libmysqlclient-dev package installed: 听起来您没有安装libmysqlclient-dev软件包:

sudo apt-get install libmysqlclient-dev
gem install mysql2

Then try: 然后尝试:

bundle install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM