我正在尝试在我的MacBook Pro上安装mxnet。他们网站的第一步是输入:
来安装Homebrew/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
终端中的。
这给了我下面的错误。
Conrados-MBP:~conrados $ / usr / bin / ruby -e“$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” curl:(1)libcurl中不支持或禁用协议“https”
我该如何解决这个问题?
答案 0 :(得分:1)
嘿@Montmons,一切都很成功,但只有一个错误。错误说
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
下面是我输入
时来自终端的输出ruby -e "$(/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
来自终端的输出:
Conrados-MBP:~ conrados$ ruby -e "$(/usr/bin/curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/sbin
==> The Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/sbin
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/sbin
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown conrados /usr/local/sbin
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/sbin
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown conrados /Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.3
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ High\ Sierra\ version\ 10.13)\ for\ Xcode-9.3
Software Update Tool
Downloading Command Line Tools (macOS High Sierra version 10.13) for Xcode
Downloaded Command Line Tools (macOS High Sierra version 10.13) for Xcode
Installing Command Line Tools (macOS High Sierra version 10.13) for Xcode
Done with Command Line Tools (macOS High Sierra version 10.13) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
HEAD is now at 50059990 Merge pull request #4053 from MikeMcQuaid/string-undent-fix
Updated 1 tap (homebrew/core).
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/conrados/Library/Caches/Homebre
==> Deleting /Library/Caches/Homebrew...
==> New Formulae
patchelf
==> Updated Formulae
sqlite ✔ fobis ncmpcpp sqlite-analyzer
afsctool gist nss wildfly-as
apibuilder-cli git-sizer php xrootd
cimg jenkins php@5.6 xtensor
coreos-ct jenkins-lts php@7.0 yaws
dbhash knot php@7.1
di libqalculate sops
fibjs maxwell sqldiff
Error: Could not link:
/usr/local/share/doc/homebrew
Please delete these paths and run `brew update`.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics.html
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
Conrados-MBP:~ conrados$
答案 1 :(得分:0)
从这里复制以下答案:Apple StackExchange
我在评论中总结了我的答案。
在你的情况下,似乎某些东西已经安装了一个curl版本而没有https支持到你的本地文件夹。也许您自己尝试编译(标准.configure && make && make install
过程将程序安装到/usr/local
中。
您可以强制命令使用系统卷曲,将curl
替换为/usr/bin/curl
,然后使用:
ruby -e "$(/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
成功安装Homebrew后,您可以使用以下命令在本地文件夹中重新安装curl:
brew install curl
可能还有一些额外的步骤,因为您必须覆盖已经存在的文件。您可能需要使用--overwrite
选项。