mysql - 在安装redmine过程中执行命令报错
本文介绍了mysql - 在安装redmine过程中执行命令报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
1、教程地址https://www.redmine.org/proje...
2、执行命令RAILS_ENV=production bundle exec rake db:migrate时报错,请帮忙看看具体错误是什么意思。
root@p:/home/wwwroot/pm# RAILS_ENV=production bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
解决方案
有无装mysql,mysql-devel
查看Gemfile 里有无
gem 'mysql2'
如果在ubuntu下
sudo apt-get install libmysqlclient-dev
bundle install执行?
这篇关于mysql - 在安装redmine过程中执行命令报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文