1

嗨,我正在尝试设置我的 Mac 以运行 Ruby on Rails,但我坚持尝试安装 Homebrew 和 RVM。

当我输入终端时:

 ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

它返回它返回通常的文本块,并在它显示的末尾:

 WARNING: Improper use of the sudo command could lead to data loss
 or the deletion of important system files. Please double-check your
  typing when using sudo. Type "man sudo" for more information.

 To proceed, enter your password, or type Ctrl-C to abort.

Password:

当我尝试输入我的根密码时,没有任何反应,唯一返回某些内容的输入是按下回车键,该键返回消息“对不起,再试一次”。

当我尝试为 RVM 运行安装时,也会发生同样的事情:

  Searching for binary rubies, this might take some time.
  Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.0.0-p247.tar.bz2
  Checking requirements for osx.
  Installing  macports.................................................................................................................
 ..............................................................
     connorashton password required for 'make install': .......

它再次不会让我输入任何内容。还可能需要注意的是,它没有显示文本光标,而是只有一个灰色的小矩形。

非常感谢任何帮助!

<------- 编辑------->

感谢您的评论我终于让事情发生了变化,现在已经通过了密码提示。然而,RVM 现在又出现了另一个错误:

  Downloaded archive checksum did not match, archive was removed!
  If you wish to continue with not matching download add '--verify-downloads 2' after 
   the          command.

  Downloading https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.0.0-p247.tar.bz2 failed.
   Mounting remote ruby failed, trying to compile.
    connorashton password required for 'softwareupdate -l': 

所以我重新输入了我的密码,它又开始运行了,但又回来了:

   Retrieving rubygems-2.1.11
   There is no checksum for 'http://production.cf.rubygems.org/rubygems/rubygems-     
     2.1.11.tgz' 
     or 'rubygems-2.1.11.tgz', it's not possible to validate it.
    This could be because your RVM install's list of versions is out of date. 
      You may want    to
     update your list of rubies by running 'rvm get stable' and try again.
    If that does not resolve the issue and you wish to continue with unverified download
     add '--verify-downloads 1' after the command.

     There has been an error while trying to fetch rubygems. 
      Halting the installation.

对不起,我只想让这个东西启动并运行!

4

2 回答 2

2

sudo将隐藏您键入的字符。因此,在您键入密码时,控制台中没有显示任何内容是正常的。只需输入您当前帐户的密码,然后点击Enter

还要确保您的帐户具有以下管理员权限:

System Preferences > Users & Groups > [Your Name] > Allow user to administer this computer
于 2013-11-13T15:16:51.480 回答
1

对于其他可能仍有问题的人,我启用root了用户,将我的用户设为管理员,给了我的用户 sudo 权限,但仍然无法通过密码提示。Sudo 特权按预期工作(例如,sudo ls)。

给自己无密码的 sudo 权限终于让我通过了安装脚本。

于 2017-03-07T21:17:30.557 回答