微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在OS X上找不到bash curl命令我在哪里可以找到它?

我不知道自己是在做什么,我对编程非常陌生并且想要自己学习。我正在尝试用ruby -e“$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)安装自制软件,结果是”-bash:curl:command not found“

我一直在搜索谷歌,但似乎无法找到任何帮助我的东西。当我键入哪个卷曲时,它只是进入下一行终端,好像我刚刚打开终端…
我安装了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命令

作为替代方案,您可以使用wget:
ruby -e "$(wget -qO - 'https://raw.github.com/mxcl/homebrew/go')"

原文地址:https://www.jb51.cc/bash/387277.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐