Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Buck Install Failing #450

Closed
ScottPierce opened this issue Oct 5, 2015 · 5 comments
Closed

Buck Install Failing #450

ScottPierce opened this issue Oct 5, 2015 · 5 comments

Comments

@ScottPierce
Copy link

I'm following the buck install directions for OSX:
https://buckbuild.com/setup/install.html

Running brew install --HEAD buck fails with an error:

==> Installing buck from facebook/homebrew-fb
==> Cloning https://github.com/facebook/buck.git
Updating /Library/Caches/Homebrew/buck--git
==> Checking out branch master
==> ant
Last 15 lines from /Users/spierce7/Library/Logs/Homebrew/buck/01.ant:
    [javac] Compiling 17 source files to /private/tmp/buck20151005-47189-1j9pzpd/build/classes
    [javac] Compiling 1242 source files to /private/tmp/buck20151005-47189-1j9pzpd/build/classes
    [javac] [compiled 201561 lines in 5353 ms: 37653.8 lines/s]
    [javac] [2403 .class files generated]

client:
     [exec] third-party/nailgun/nailgun-client/ng.c:26:11: fatal error: 'arpa/inet.h' file not found
     [exec]         #include <arpa/inet.h>
     [exec]                  ^
     [exec] 1 error generated.

BUILD FAILED
/private/tmp/buck20151005-47189-1j9pzpd/build.xml:984: exec returned: 1

Total time: 15 seconds

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
  https://github.com/facebook/homebrew-fb/issues

However when I run brew install buck things seem to work fine. I've noticed that when I use that install and try to run buck examples, none of them work, so I'm thinking the --HEAD is important. Not sure how to proceed.

@sdwilsh
Copy link
Contributor

sdwilsh commented Oct 5, 2015

Hmm, I haven't been updating the tag in https://github.com/facebook/homebrew-fb/blob/master/buck.rb because I hadn't realized I had to.

@Coneko, could you take a look into this tomorrow?

@Coneko
Copy link

Coneko commented Oct 7, 2015

Did you install Xcode or the Developer Command Line Tools?

I think you need them to install brew, but you might have uninstalled them.

@ScottPierce
Copy link
Author

I use brew regularly. Again, brew install buck worked fine.

@Coneko
Copy link

Coneko commented Oct 7, 2015

brew install buck would use the bottle I think, not build it from source, so you wouldn't need Xcode or the Developer Command Line Tools.

The most popular brew formulae have bottles, so it's hard to tell if your setup is working.

@ScottPierce
Copy link
Author

You were right. I had xcode installed which I confirmed by running xcode-select -p. Then I installed xcode command line tools with xcode-select --install. After doing this brew install --HEAD buck works fine. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants