未初始化的常量 AppGenerator::Config 错误 [英] uninitialized constant AppGenerator::Config Error
本文介绍了未初始化的常量 AppGenerator::Config 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我实际上是从 Ubuntu 13.10 升级到 Ubuntu 16.04
I actually upgraded from Ubuntu 13.10 to Ubuntu 16.04
我的 rails 在以前的版本中运行良好.我正在删除 rvm 并从头开始重新安装.然而,当我尝试调用服务器时,我总是收到此错误
My rails was working fine in the previous versions. I am removing rvm and reinstalling from scratch. Yet I get this error always when I try to invoke the server
uninitialized constant AppGenerator::Config
Did you mean? RbConfig
我必须定义导轨路径吗?
Do I have to define the rails path?
推荐答案
不知何故(我认为在安装 Redmine 之后)我的环境崩溃了.
Somehow (I think after installing Redmine) my enviroment collapsed.
按照以下步骤,我删除并重新安装了 Rails.现在错误消失了:
By following steps I removed and reinstalled Rails. Now the error had gone:
gem 卸载 rails
gem 卸载 railties
curl -sL https://deb.nodesource.com/setup_4.x |须藤 -E bash -
sudo apt-get install -y nodejs
gem install rails -v 5.1.0
(使用你自己的 rails 版本!)- 在你的项目根目录
bundle install
gem uninstall rails
gem uninstall railties
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
gem install rails -v 5.1.0
(Use your own rails version!)- At your project root
bundle install
干杯,
这篇关于未初始化的常量 AppGenerator::Config 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文