Installing Homebrew for Mac 中未定义的局部变量或方法是什么?
What is the undefined local variable or method in Installing Homebrew for Mac?
我的最终目标是将 Pygame 安装到我的个人 mac 中,所以我按照本网站提供的说明进行操作:http://brysonpayne.com/2015/01/10/setting-up-pygame-on-a-mac/
.我复制并粘贴了网站上第 4 步提供的下载 Homebrew 所需的命令:
- Install Homebrew: At the Terminal command line prompt, type the following as a single full line (you may want to expand your Terminal window wider to allow it to fit, but it’s okay if it wraps around):
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
then, hit return.
但是我的终端显示命令未定义。接下来我应该尝试做什么来实现我的最终目标?
我按照提示安装了xcode和xquartz软件,尝试复制粘贴命令。
$ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
-e:1:in `<main>': undefined local variable or method `“' for main:Object (NameError)
作者将 "
错误地输入为 “
。两个引号不同。
使用 Homebrew official website 中的安装脚本。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
我的最终目标是将 Pygame 安装到我的个人 mac 中,所以我按照本网站提供的说明进行操作:http://brysonpayne.com/2015/01/10/setting-up-pygame-on-a-mac/ .我复制并粘贴了网站上第 4 步提供的下载 Homebrew 所需的命令:
- Install Homebrew: At the Terminal command line prompt, type the following as a single full line (you may want to expand your Terminal window wider to allow it to fit, but it’s okay if it wraps around): ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” then, hit return.
但是我的终端显示命令未定义。接下来我应该尝试做什么来实现我的最终目标?
我按照提示安装了xcode和xquartz软件,尝试复制粘贴命令。
$ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
-e:1:in `<main>': undefined local variable or method `“' for main:Object (NameError)
作者将 "
错误地输入为 “
。两个引号不同。
使用 Homebrew official website 中的安装脚本。
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"