ruby-on-rails - 等/bash.bashrc : line 2: GREP_OPTIONS: command not found

标签 ruby-on-rails linux bash shell ubuntu

当我在我的 Ubuntu 12 服务器上运行命令时,我收到以下警告...

etc/bash.bashrc: line 2: GREP_OPTIONS: command not found

我可能因为卸载各种 Rails 部分而搞砸了一些事情。我怎样才能解决这个问题?这是针对 root 用户的。谢谢。

我的 bashrc 文件的开头有以下...

type rvm >/dev/null 2>/dev/null || echo ${PATH} | GREP_OPTIONS \grep "" > /dev/null || export PATH="${PATH}:"

最佳答案

您似乎已经从系统中卸载了 rvm,因为它找不到 $rvm_path_bin。我建议注释掉 /etc/bash.bashrc 中的行。

关于ruby-on-rails - 等/bash.bashrc : line 2: GREP_OPTIONS: command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13573251/

相关文章:

linux - 这可以在没有 "bc"的情况下重写吗? bc 未安装在环境中的大多数主机上

linux - 创建自定义 Vim 命令以在 bash 配置文件中运行函数

bash - 在 Mac 上使用 bash 脚本连接到网络共享?

linux - 如何在 Bash 中将进程的子进程输出为数字

java - 错误 “can' t 创建 Java VM”尝试使用 Ruby Java Bridge (RJB) gem

ruby-on-rails - 在 Rails 中保存后向属性添加了奇怪的字节

c++ - 同步程序与更新的输入文件

bash - git !alias 可以在 bash 和 Powershell 中使用

mysql - Ruby on Rails:未初始化的常量 MysqlCompat::MysqlRes

ruby-on-rails - Linux Mint 'rvm requirements' 故障