简体   繁体   English

安装rvm时出现grep错误

[英]grep error on installing rvm

I'm on OS Lion 10.7.1, installed latest XCode from App Store. 我在OS Lion 10.7.1上,从App Store安装了最新的XCode。 I have installed git 1.7.4 from dmg 我已经从dmg安装了git 1.7.4

I'm trying to install rvm. 我正在尝试安装rvm。 I used this command from their homepage 我从他们的主页使用了此命令

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

I get some grep errors as shown below. 我收到一些grep错误,如下所示。 What went wrong? 什么地方出了错?

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.

holy smokes. 圣烟。 this had me pulling my hair out. 这让我把头发拔了。 removed offending line in .bashrc 删除了.bashrc中的违规行

export GREP_OPTIONS='–color=auto' 导出GREP_OPTIONS ='– color = auto'

installed like a charm. 安装像一个魅力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM