33 responses to “Homebrew – Intro To The Mac OS X Package Installer”

  1. Sukima

    Out of curiosity why do you use sudo for all your commands. The docs specifically explain why that is a bad idea. A simple one time `sudo chown -R $USER /usr/local` fixes that issue. This makes life so much easier. sudo opens up a lot of opportunities to really blow things up. Your putting complete trust that there isn’t a bug or mistake in the hundreds of formula scripts. And entering in a password every time you use the brew command is a hassle.

  2. TechnoGrad » Blog Archive » MacOSX and homebrew

    [...] Wie bei allen Dingen, die stark ins System eingreifen, funktionierte bei mir der empfohlene Weg der Installation von ‘homebrew’ mal wieder nicht. Google sei Dank fand ich (kurz bevor ich alle Haare verlor) diesen wertvollen Link zur einfachen Installation des neuen ‘macports’ oder ‘fink’. Ein Befehl in der console und es wuppt! 2 thumbs up to heaven!!! Und hier ist der wertvolle Link. [...]

  3. Jasper

    Stumbled across your post and because of that I read about homebrew… Just wanted to say thanks a lot! I was struggling like hell to get postgis working… and it works flawlessly now :)

  4. texnic

    Upon doing the ruby command, I’m getting

    curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    Though you have -k in the keys already. Any idea of what I could try? I’ve Mac OS 10.5.8.

    1. Ulops

      Exactly the same issue. Also using 10.5.8

  5. Ramesh

    Hi,

    I have configured the brew in linux, How to make package for using brew ?

    Ramesh

  6. Ramesh

    Hi,

    I have installed brew in my linux (slackware13.1 linux)

    While run the command given below

    brew create http://ftp.acc.umu.se/pub/gnome/sources/libsoup/2.33/libsoup-2.33.90.tar.gz

    and typed the formula

    require ‘formula’

    class Libsoup Downloading http://ftp.acc.umu.se/pub/gnome/sources/libsoup/2.33/libsoup-2.33.90.tar.gz
    ######################################################################## 100.0%
    Warning: Cannot verify package integrity
    The formula did not provide a download checksum
    For your reference the MD5 is: f905e685f4e2fa6b414522e06d8db3c8
    /usr/bin/mktemp: cannot make temp dir /tmp/homebrew-libsoup-2.33.90-XXXX: Invalid argument
    Error: Couldn’t create build sandbox
    root@slack64:/tmp/brew/homebrew#

    I am getting above error. Please help me how to fix this error

    Ramesh

  7. Kyle

    Hello,

    I’ve just started using Homebrew and I love it. The only issue I am having is that it doesnt seem to be installing the man pages for any packages I install. I there something I need to alter somewhere or a flag I need to set?

    Thanks,
    Kyle

  8. Ramesh

    Hi Kyle,

    Thanks for your reply,

    Please let me know, how can you configure in your system in details…

    Ramesh

  9. JM

    What are the implications of changing all those permissions on system directories? This strikes me as an unwise decision, particularly changing the group id’s

  10. Paul

    Looks handy, but unfortunately the gist url for the installer script is now a 404

  11. Paul

    I found out that gist site has been restructured a little

    The ruby installer script can now be installed using…

    ruby -e “$(curl -fsSLk https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)

  12. Josh Kosmala

    Hey Dude,

    Nice article. Here is the latest Ruby link if you want to update the link in your article.

    /usr/bin/ruby -e “$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)

  13. Nuno Pimenta

    Hello,

    I’m trying to install package freerdp with homebrew;

    I did the following steps:

    1- Download Xcode 4.3.2 with command line tools
    2- Download homebrew;
    3- Execute command brew doctor to verify is everything is OK (give Warning: Unbrewed dylibs were found in /usr/local/lib, If you didn’t put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.)
    4- Download freerdp, brew install freerdp;
    5- Execute sudo brew link freerdp (Error: Cowardly refusing to `sudo brew link’
    You can use brew with sudo, but only if the brew executable is owned by root.)
    6- Execute brew link freerdp and its fine;

    How can i execute now freerdp and configure it?

  14. Nuno Pimenta

    Hello Phil,

    Thanks for the replay…

    Yesterday i run the command brew info freerdp, but didn’t return value information:
    gab-03:~ macbook$ brew info freerdp
    freerdp: stable 1.0.1, HEAD
    http://www.freerdp.com/
    Depends on: cmake, pkg-config
    /usr/local/Cellar/freerdp/1.0.1 (131 files, 2,1M) *
    https://github.com/mxcl/homebrew/commits/master/Library/Formula/freerdp.rb
    gab-03:~ macbook$

    Then, in the terminal.app, i navigate to the local were the packages are instaled, /usr/local/Cellar/freerdp/1.0.1/bin and i execute ./xfreerdp to see the resultes:
    gab-03:bin macbook$ ./xfreerdp
    missing server name
    failed to parse arguments.
    gab-03:bin macbook$

    That’s fine, because i didn’t configure anything. My point is how to configure now freerdp to make a connection to the server?

    I have another question, i execute brew doctor, and i have the results:
    Warning: Unbrewed dylibs were found in /usr/local/lib.
    If you didn’t put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted

    Unexpected dylibs:

    /usr/local/lib/libgps.dylib /usr/local/lib/libpteiddlg.1.21.0.dylib /usr/local/lib/libpteidhttps.1.21.0.dylib /usr/local/lib/libpteidlib.1.21.0.dylib /usr/local/lib/libpteidlibopensc.1.21.0.dylib /usr/local/lib/pteidpkcs11.1.21.0.dylib

    I didn’t put anything there, i must remove the files????

    Thank you very much for the replay.
    Greatings from Portugal.

  15. Nuno Pimenta

    Hello everyone,

    I’m using freerdp on my Mac Mini, installed with homebrew.

    My system is OK, i can access to my Windows Server 2003 R2 with no problem, keyboard and mouse are working good.

    I use digital sign to all operations, but, the software for doing it can’t be installed in MAC. With the software, i use a smartcard reader, SCR3310, to reader my card.

    I need that freerdp permits using smartcard on my RDP session for digital sign, not for autentication. I can do this in a Windows XP because de RDP software permits using smart cards in the RDP session and my Windows Server 2003 R2 acept this.

    I did a little web resource and i am using the following command xfreerdp -u -g –plugin rdpdr –data scard:scard — and i can acess to my server but the server don’t recognizes the smart card reader.

    In the terminal.app, i get the following message:
    gab-03:bin macbook$ xfreerdp -u -g 1024*768 –plugin rdpdr –data scard:scard —
    loading plugin rdpdr
    freerdp_load_library_symbol: failed to open /usr/local/Cellar/freerdp/1.0.1/lib/freerdp/rdpdr: dlopen(/usr/local/Cellar/freerdp/1.0.1/lib/freerdp/rdpdr, 5): image not found
    freerdp_load_plugin: failed to load rdpdr/VirtualChannelEntry

    Can anyone point me any solution?

    Best regards

  16. franc

    All links to install homebrew are 404.
    Is this site dead?

    frank

  17. Stephen McConnell

    ruby -e “$(curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)
    curl: (22) The requested URL returned error: 404

    The URL in the example returns a 404. I cut and pasted it. Didn’t work. But the rest of the tutorial was excellent.

    Thanks

    1. franc

      On the website:

      http://mxcl.github.com/homebrew/

      the command:

      ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go)”

      is working. There are more informations on:

      https://github.com/mxcl/homebrew/wiki/Installation

      it worked for me just some days ago, I could isntall FreeRDP (xfreerdp) with homebrew.

      frank

  18. Ann

    When I pasted it at the terminal prompt, I got:

    Failed during: Error: /usr/bin/xcode-select returned unexpected error. init -q

    Could you please help?

  19. Mark Scarton

    Hi, I’m new to MacOS (long time Unix and Linux user) and am running the latest update of Mountain Lion. I’d really like to use homebrew to gain access to my GNU tools. But when I attempt to run the script that you provided, I am receiving the following error:

    ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go)”
    -e:1: Invalid char `\342′ in expression
    -e:1: Invalid char `\200′ in expression
    -e:1: Invalid char `\234′ in expression

    Do you have any suggestions for what I might be doing wrong?

  20. Ranjna

    I am using mountain lion and was able to install homebrew, however, when i try installing any software using brew, I get Curl (7):failed to connect to 0.9.0.4: No route to host.

    I checked my firewall and it is not on. I even tried changing the url to use that really works in the rb file, but still get the same error. Any idea?

  21. Michael Stoneham

    I am trying to find a list of what the apps are in Homebrew. and not just a list but an explanation of what the apps are and do.

    also i want to let you know that i found a gui for Homebrew https://github.com/vincentsaluzzo/Homebrew-GUI/downloads which is easy to install and use. this gui would rock if it had descriptions for the apps built in.