我正在尝试在 centos 6 上手动安装 foreman
数据库.yml
production:
adapter: mysql
database: foreman
username: foreman1
password: foreman
host: localhost
socket: "/var/lib/mysql/mysql.sock"
encoding: utf8
但是在填充表格时显示此错误,有什么想法吗?
[root@server extras]# su - foreman -s /bin/bash -c /usr/share/foreman/extras/dbmigrate
rake aborted!
undefined method `active_record' for #<Rails::Application::Configuration:0x000000039b62b8>
1更新:
[root@server foreman]# gem list --local | grep active
activemodel (4.0.0, 3.2.8)
activerecord (4.0.0, 3.2.8)
activerecord-deprecated_finders (1.0.3)
activerecord-mysql-adapter (0.0.1)
activeresource (3.2.8)
activesupport (4.0.0, 3.2.8)
audited-activerecord (3.0.0)
答案1
您能发布该gem list --local | grep active
命令的其余结果吗?
如果 gem 丢失那么就运行bundle update
,否则你需要检查你的$GEMHOME
环境变量是否有正确的路径。