I "upgraded" from Snow Leopard with Homebrew and vim both chugging along happily, to Lion. Now vim hangs/segfaults, and when I invoke brew, it complains xcode is missing, and continues to do so after downloading Xcode from the app store. I wanted to install vim from source, but that requires Mercurial, which I may be able to use to create a tarball from a Linux virtual machine, but overall Unix-like functionality is broken on Lion.

How can I get Unix acting like Unix under Lion?

  • Did you do a fresh install of Lion when you upgraded?
    – cm2
    Commented Jan 27, 2012 at 19:13

2 Answers 2


You may already know this, but downloading/installing Xcode from the app store doesn't actually install it. It just leaves an installer in your Applications folder, which you have to run to actually install Xcode.

Don't know if this is contributing to your problem, but it tripped me up.

  • +1, installing from installer now. Not impressed that it's this way. Commented Jan 26, 2012 at 21:24

If /usr/bin/vim is segfaulting, you might need to disable your dot files or make a new user to get a cleaner environment.

Have you checked the contents of /Developer/usr/bin to make sure Xcode installed the command line tools correctly?

mac:~ me$ ls -1 /Developer/usr/bin/ | wc -l

Rerunning the latest Xcode installer (4.2 or later) should get the correct binaries in your path /usr/bin as well as the directory listed above with the whole assembly of tools needed for brew and make to work as expected in a traditional unix sense.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .