我遇到了Ruby On Rails的问题。每次我打开一个新的终端输入一个Rails命令我得到这个错误:为什么每次打开新终端时都必须安装Rails?
rails --version
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.2.3 final 0
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Exception information:
unsupported locale setting
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
callback()
File "/usr/lib/command-not-found", line 69, in main
enable_i18n()
File "/usr/lib/command-not-found", line 40, in enable_i18n
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.2/locale.py", line 541, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
我能避免这个问题的唯一方法是重新安装Ruby和Rails,我有点累了这样做的,因为每次我打开一个新的终端时都必须这样做。
我试图做一个完整的卸载使用下面的命令:
rvm implode
,但没有成功。
我也尝试了这些命令,但仍然没有成功:
rvm --default use 1.9.2 (or whatever you want your default ruby interpreter to be)
rvm gemset create rails-3.0.3
rvm use [email protected] --default
gem install rails
将'rvm info'的输出追加到您的问题中。 –
你如何安装导轨? –
你似乎有一个量子问题 – prusswan