nwoolls / homebrew-xgminer

Homebrew formulas for CGMiner and BFGMiner
35 stars 27 forks source link

build errors on Mavericks #7

Closed thom-nic closed 10 years ago

thom-nic commented 10 years ago

After upgrading to Mavericks I get the following errors:

==> Downloading http://luke.dashjr.org/programs/bitcoin/files/bfgminer/3.10.0/bfgminer-3.10.0.zip
Already downloaded: /Library/Caches/Homebrew/bfgminer-3.10.0.zip
==> ./autogen.sh
      See the Autoconf documentation.
configure.ac:33: error: possibly undefined macro: AC_TRY_LINK
configure.ac:38: error: possibly undefined macro: AC_MSG_RESULT
configure.ac:42: error: possibly undefined macro: AC_MSG_ERROR
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1

brew doctor warns about Mono.framework being installed (related to latent CMake issues in some envs) and having a case-sensitive filesystem. Not sure if either of those sound like the likely culprit.

nwoolls commented 10 years ago

Make sure pkg-config is installed:

brew update
brew install pkg-config
thom-nic commented 10 years ago

It was already installed but I removed and reinstalled it, now I'm getting a different build error...

$ brew update
Updated Homebrew from 3fa6a147 to 49b2ef11.
.... (updated packages list...)

$ brew install pkg-config
Warning: pkg-config-0.28 already installed

$ brew remove pkg-config
Uninstalling /usr/local/Cellar/pkg-config/0.28...

$ brew install pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.28.mavericks.bottle.2.ta
######################################################################## 100.0%
==> Pouring pkg-config-0.28.mavericks.bottle.2.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 604K

$ brew install bfgminer
==> Downloading http://luke.dashjr.org/programs/bitcoin/files/bfgminer/3.10.0/bfgminer-3.10.0.zip
Already downloaded: /Library/Caches/Homebrew/bfgminer-3.10.0.zip
==> ./autogen.sh
Makefile.am:6:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:6:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:6:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:6:   its definition is in aclocal's search path.
autoreconf: automake failed with exit status: 1
Padgett commented 10 years ago

Same issue with the same package. I had to uninstall and reinstall all dependencies manually. The particular one you're having trouble with is libtool

thom-nic commented 10 years ago

Ah, you're right once I uninstalled all dependencies they got reinstalled correctly and it worked. Thanks!