neovim / homebrew-neovim

Homebrew formula
MIT License
402 stars 72 forks source link

Current HEAD won't install on OSX 10.11.6 (though 0.1.4 does build) #177

Closed telemachus closed 8 years ago

telemachus commented 8 years ago

I usually follow HEAD, but when I tried updating today, it failed as follows. (I can install 0.1.4 fine.)

Please let me know if you need any more information:

==> Installing neovim from neovim/neovim
==> Cloning https://github.com/neovim/neovim.git
Updating /Users/telemachus/Library/Caches/Homebrew/neovim--git
==> Checking out branch master
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Downloading https://github.com/luvit/luv/archive/146f1ce4c08c3b67f604c9ee1e1
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--luv-3.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b3
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Downloading http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.18.tar.gz
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/releases/download/4.0.2/jem
Already downloaded: /Users/telemachus/Library/Caches/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_LUV=OFF -DUSE_EX
==> make VERBOSE=1
Last 15 lines from /Users/telemachus/Library/Logs/Homebrew/neovim/02.make:
/usr/local/Cellar/cmake/3.6.1/bin/cmake -E make_directory /tmp/neovim-20160904-967-1k2jd5n/deps-build/build/tmp
/usr/local/Cellar/cmake/3.6.1/bin/cmake -E make_directory /tmp/neovim-20160904-967-1k2jd5n/deps-build/build/src/gperf-stamp
/usr/local/Cellar/cmake/3.6.1/bin/cmake -E make_directory /tmp/neovim-20160904-967-1k2jd5n/deps-build/build/downloads/gperf
/usr/local/Cellar/cmake/3.6.1/bin/cmake -E touch /tmp/neovim-20160904-967-1k2jd5n/deps-build/build/src/gperf-stamp/gperf-mkdir
[ 92%] Performing download step for 'gperf'
cd /tmp/neovim-20160904-967-1k2jd5n/deps-build/build/downloads/gperf && /usr/local/Cellar/cmake/3.6.1/bin/cmake -DPREFIX=/tmp/neovim-20160904-967-1k2jd5n/deps-build/build -DDOWNLOAD_DIR=/tmp/neovim-20160904-967-1k2jd5n/deps-build/build/downloads/gperf -DURL=http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz -DEXPECTED_SHA256=767112a204407e62dbc3106647cf839ed544f3cf5d0f0523aaa2508623aad63e -DTARGET=gperf -DUSE_EXISTING_SRC_DIR=ON -P /tmp/neovim-20160904-967-1k2jd5n/third-party/cmake/DownloadAndExtractFile.cmake
CMake Error at /tmp/neovim-20160904-967-1k2jd5n/third-party/cmake/DownloadAndExtractFile.cmake:33 (message):
  USE_EXISTING_SRC_DIR set to ON, but
  '/tmp/neovim-20160904-967-1k2jd5n/deps-build/build/src/gperf' does not
  exist or is empty.

make[2]: *** [build/src/gperf-stamp/gperf-download] Error 1
make[1]: *** [CMakeFiles/gperf.dir/all] Error 2
make: *** [all] Error 2

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

These open issues may also help:
neovim 0.1.5 compilation fails building LuaJIT on macOS Sierra (10.12 Beta 16A313a)  https://github.com/neovim/homebrew-neovim/issues/174
Neovim Fails to Install on Standalone Linuxbrew: libmsgpack.so Error https://github.com/neovim/homebrew-neovim/issues/156
Can't install via homebrew-neovim if luarocks path is set explicitly https://github.com/neovim/homebrew-neovim/issues/149
Error when trying to install neovim in my Ubuntu 14.04 virtual machine. https://github.com/neovim/homebrew-neovim/issues/134
jszakmeister commented 8 years ago

This was fixed the other day, and it doesn't look like you've updated. Try running brew update and installing again.

telemachus commented 8 years ago

@jszakmeister I don't think that can be the whole story. I had updated recently, but to be sure, I ran brew update again and then tried the install again. It failed in exactly the same way.

However, I can see that I hadn't gotten this patch in my version of the neovim formula. I untapped and retapped the formula, and I'm trying again now.

jszakmeister commented 8 years ago

See #175 and #176. And if you were update-to-date, I'd expect to see -DUSE_BUNDLED_GPERF=OFF before -DUSE_BUNDLED_LUV=OFF in this part of what you pasted:

==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_LUV=OFF -DUSE_EX
telemachus commented 8 years ago

@jszakmeister Yes, sorry, we just missed each other. I saw one of those issues, and I'm trying again now. I can't figure out why brew update told me I was up to date and didn't update the tap though.

As you thought: with the updated tap, it was fine. Thank you for your help. Now I just need to figure out why brew up wasn't working as it should.

jszakmeister commented 8 years ago

Perhaps you have local edits to the formula? I could see that keeping it from being up-to-date.

jszakmeister commented 8 years ago

As you thought: with the updated tap, it was fine. Thank you for your help. Now I just need to figure out why brew up wasn't working as it should.

That's unfortunate that you had to do that, but I'm glad it's working for you now!

telemachus commented 8 years ago

I don't believe I edited the formula locally. In any case, thanks. I'll check if something is wrong with my Homebrew installation.

telemachus commented 8 years ago

@jszakmeister I had a case of this:

If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run: cd $(brew --repo) && git fetch && git reset --hard origin/master && brew update.

I found that when I went to file an issue at brew itself. I'm putting this here to save people a step if anyone else comes here with a similar set of problems. (E.g., "I upgraded ten times, but I don't see your fixed formula...")

jszakmeister commented 8 years ago

Ugh, that stinks. Thanks for the heads up!