自制密码提示

时间:2013-11-13 13:35:42

标签: ruby-on-rails ruby rvm homebrew

您好我正在尝试设置我的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:

当我尝试输入我的root密码没有任何反应时,唯一返回内容的输入是按回车键,回复消息'抱歉,再试一次。'

当我尝试运行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.

对不起,我只是想让这个东西运行起来!

2 个答案:

答案 0 :(得分:1)

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

另外,请确保您的帐户具有以下管理员权限:

System Preferences > Users & Groups > [Your Name] > Allow user to administer this computer

答案 1 :(得分:0)

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

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

相关问题