Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 安装rvm时出现grep错误_Ruby_Git_Rvm - Fatal编程技术网

Ruby 安装rvm时出现grep错误

Ruby 安装rvm时出现grep错误,ruby,git,rvm,Ruby,Git,Rvm,我使用的是OS Lion 10.7.1,从应用商店安装了最新的XCode。我已经从dmg安装了Git1.7.4 我正在尝试安装rvm。我在他们的主页上使用了这个命令 bash < <(curl -sk https://rvm.beginrescueend.com/install/rvm) 神圣的烟。这让我毛骨悚然。删除了.bashrc中有问题的行 导出GREP_选项='–颜色=自动' 像符咒一样安装。神圣的烟雾。这让我毛骨悚然。删除了.bashrc中有问题的行 导出GREP_选项=

我使用的是OS Lion 10.7.1,从应用商店安装了最新的XCode。我已经从dmg安装了Git1.7.4

我正在尝试安装rvm。我在他们的主页上使用了这个命令

bash < <(curl -sk https://rvm.beginrescueend.com/install/rvm)

神圣的烟。这让我毛骨悚然。删除了.bashrc中有问题的行

导出GREP_选项='–颜色=自动'


像符咒一样安装。

神圣的烟雾。这让我毛骨悚然。删除了.bashrc中有问题的行

导出GREP_选项='–颜色=自动'


像一个魔咒一样安装。

您是否真的使用curl下载字符串并将该字符串直接传送到bash中?如果说这是一个巨大的安全漏洞,那未免太轻描淡写了。我刚刚从官方rvm网站复制并粘贴了该命令。你真的在使用curl下载字符串并将该字符串直接导入bash吗?如果说这是一个巨大的安全漏洞,那未免太轻描淡写了。我刚刚从官方rvm网站复制并粘贴了该命令。谢谢,这就是修复方法!(注释掉所有GREP_选项)对Ubuntu 12.04也有帮助。谢谢,这就是修复!(注释掉所有GREP_选项)对Ubuntu 12.04也有帮助
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Cloning into rvm...
remote: Counting objects: 5542, done.
remote: Compressing objects: 100% (2699/2699), done.
remote: Total 5542 (delta 3620), reused 3898 (delta 2115)
Receiving objects: 100% (5542/5542), 1.87 MiB | 411 KiB/s, done.
Resolving deltas: 100% (3620/3620), done.

  RVM:  Shell scripts enabling management of multiple ruby environments.
  RTFM: 
  HELP: 

Installing RVM to /Users/kl/.rvm/grep: ^hooks/[[:alpha:]]+_[[:alpha:]]+$: No such file or directory
**grep: ^hooks/[[:alpha:]]+_[[:alpha:]]+$: No such file or directory
grep: ^hooks/[[:alpha:]]+_[[:alpha:]]+$: No such file or directory
grep: ^_: No such file or directory**

Correct permissions for base binaries in /Users/kl/.rvm/bin...
Copying manpages into place.

  Notes for Darwin ( Mac OS X )
    For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
    You should download the latest Xcode tools from developer.apple.com.
      (This is since the dvd install for Snow Leopard contained bugs).

If you intend on installing MacRuby you must install LLVM first.
If you intend on installing JRuby you must install the JDK.
If you intend on installing IronRuby you must install Mono
  (version 2.6 or greater is recommended).

To use an RVM installed Ruby as default instead of the system ruby:
rvm install 1.8.7 # installs patch 352: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
rvm --default 1.8.7


NOTE:
As of 1.8.0 RVM once again loads .rvmrc files, by default, after asking your
permission to trust it of course.  If you do not wish to be enabled, simply set:
    export rvm_project_rvmrc=0
Within either your /etc/rvmrc or $HOME/.rvmrc file. This will turn off the
cd/pushd hooks when sourcing the rvm() function into your shell.


 Example: echo 'export rvm_project_rvmrc=0' >> $HOME/.rvmrc;
 (Then close the current shell and open a new one.)


Installation of RVM to /Users/kl/.rvm/ is complete.