use*_*160 24 macos bash homebrew curl
我不知道自己要做什么,我是编程和尝试自学的新手.我正在尝试安装自制软件,ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)
结果是"-bash:curl:command not found"
我一直在搜索谷歌,但似乎无法找到任何帮助我的东西.当我输入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)
Run Code Online (Sandbox Code Playgroud)
然后我尝试任何类似的东西curl --version
,它没有找到相同的curl命令
作为替代方案,您可以使用wget
:
ruby -e "$(wget -qO - 'https://raw.github.com/mxcl/homebrew/go')"
Run Code Online (Sandbox Code Playgroud)