加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 19:05:22 所属栏目:安全 来源:网络整理
导读:我不知道自己是在做什么,我对编程非常陌生并且想要自己学习。我正在尝试用ruby -e“$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)安装自制软件,结果是”-bash:curl:command not found“ 我一直在搜索谷歌,但似乎无法找到任何帮助我的东西。当
我不知道自己是在做什么,我对编程非常陌生并且想要自己学习。我正在尝试用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')"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读