【发布时间】:2013-10-03 00:35:44
【问题描述】:
我不知道自己要做什么,我对编程很陌生,并且试图自学。我正在尝试使用ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go) 安装自制软件,结果是 "-bash: curl: command not found"
我一直在搜索 Google,但似乎找不到任何可以帮助我的东西。当我输入 which curl 时,它会转到终端的下一行,就像我刚刚打开终端一样...
我安装了 xcode 并安装了命令行工具,甚至下载了重新安装它以防万一它出现问题。
这并不重要,但我尝试安装自制软件的原因是它是 dnscrypt 所需的 libsodium 所必需的。
当我输入 curl-config 时,它会为我提供 OPTION 的可用值,包括:
--built-shared says 'yes' if libcurl was built shared
--ca ca bundle install path
--cc compiler
--cflags pre-processor and compiler flags
--checkfor [version] check for (lib)curl of the specified version
--configure the arguments given to configure when building curl
--features newline separated list of enabled features
--help display this help and exit
--libs library linking information
--prefix curl install prefix
--protocols newline separated list of enabled protocols
--static-libs static libcurl library linking information
--version output version information
--vernum output the version information as a number (hexadecimal)
然后我尝试任何类似 curl --version 的方法,它执行的 curl 命令未找到
【问题讨论】:
-
听起来你没有安装
curl。您使用什么操作系统?编辑:你提到了 Xcode,所以我猜你在 Mac 上。恐怕我在那里没有什么特别的帮助,但这就是“找不到命令”的意思。