How to install Homebrew on OS X?

后端 未结 13 1245
花落未央
花落未央 2020-12-07 08:13

I\'m trying to install Homebrew on OS X.

According to the Homebrew site I should type

brew install wget

and all I get is

         


        
相关标签:
13条回答
  • 2020-12-07 08:22

    I might be late to the party, but there is a cool website where you can search for the packages and it will list the necessary command to install the stuff. BrewInstall is the website.

    However you can install wget with the following command:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew install wget
    

    Hope this helps :)

    0 讨论(0)
  • 2020-12-07 08:23

    On an out of the box MacOS High Sierra 10.13.6

    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Gives the following error:

    curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option.

    If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL).

    If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

    HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.

    Solution: Just add a k to your Curl Options

    $ ruby -e "$(curl -fsSLk https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    0 讨论(0)
  • 2020-12-07 08:26

    You can install brew using below command.

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    However, while using this you will get warning that it buy homebrew installer is now deprecated. Recommended to use Bash instead.

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    

    0 讨论(0)
  • 2020-12-07 08:27

    add the following in your terminal and click enter then follow the instruction in the terminal. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    0 讨论(0)
  • 2020-12-07 08:29

    It's on the top of the Homebrew homepage.

    From a Terminal prompt:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    The command brew install wget is an example of how to use Homebrew to install another application (in this case, wget) after brew is already installed.

    Edit:

    Above command to install the Brew is migrated to:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    
    0 讨论(0)
  • 2020-12-07 08:33

    If you still get error after running,

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    Then try to download and install command line tool from https://developer.apple.com/download/more/ for your particular Mac os and Xcode version.

    Then try to run,

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    and then

    brew install node
    
    0 讨论(0)
提交回复
热议问题