Sunday, August 4, 2013

brew: command not found

If HomeBrew is not installed, Please follow the instruction mentioned here

1. Install XCode, check whether command line tools are installed or not.

2. $ gcc --version

3. It will display "i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

4. Then you can execute the following command to install the home brew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

5. It will display "You should run `brew doctor' *before* you install anything." as last sentence after installing the home brew

6. Now type "$ brew doctor" .

7. Before implementing the recommendation, make sure whether it correct or not.

8. Finally, $brew update. That's it.

Reference : http://ricardianambivalence.com/2012/10/02/install-homebrew-on-your-mac-a-tutorial/

14 comments:

  1. I am getting this error!!
    Whoops, the Homebrew installer has moved! Please instead run:

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

    Also, please ask wherever you got this link from to update it to the above.
    Thanks!

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Hi Amit,

      Did you try to run this command after you got the error? It looks like Homebrew has changed the path.
      Please check here: http://brew.sh/

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

      Thanks for letting me know, i'll update the blog.

      Delete
  2. Thank you so much for this! it worked for me. great job man.

    ReplyDelete
    Replies
    1. I'm glad to help. Please let me know if you have any other technical issues...I'll try my best to solve the issue.

      Delete
  3. Thank you very much! I have the same problem, I hope it will work.

    ReplyDelete
  4. I am getting an error-
    curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
    Not getting how to tackle it , any suggestions are welcomed!

    ReplyDelete
  5. I am getting an error-
    curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
    Not getting how to tackle it , any suggestions are welcomed!

    ReplyDelete
    Replies
    1. please check here : http://stackoverflow.com/questions/29910217/homebrew-installationmac-failed-to-connect-to-raw-githubusercontent-com-port

      Delete
  6. This comment has been removed by a blog administrator.

    ReplyDelete
  7. This comment has been removed by a blog administrator.

    ReplyDelete
  8. Best content & valuable as well. Thanks for sharing this content.
    Approved Auditor in DAFZA
    Approved Auditor in RAKEZ
    Approved Auditor in JAFZA


    i heard about this blog & get actually whatever i was finding. Nice post love to read this blog
    Approved Auditor in DMCC
    Virgin Linseed Oil BP

    ReplyDelete

Please include your thoughts/suggestion to make it as a better blog. If you find it useful, Please update with your valuable comments, so that others can use it.