neovim / homebrew-neovim

Homebrew formula
MIT License
402 stars 72 forks source link

Error when installing via Homebrew: luv-static #179

Closed engelju closed 8 years ago

engelju commented 8 years ago
$ rm -rf /Library/Caches/Homebrew/neovim--git
$ brew reinstall --HEAD neovim
==> Reinstalling neovim/neovim/neovim
==> Cloning https://github.com/neovim/neovim.git
Updating /Users/julieengel/Library/Caches/Homebrew/neovim--git
==> Checking out branch master
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-2.0.4.tar.gz
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /Users/julieengel/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/julieengel/Library/Caches/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b9288c7b0e331c7088.tar.gz
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/releases/download/4.0.2/jemalloc-4.0.2.tar.bz2
Already downloaded: /Users/julieengel/Library/Caches/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_EXISTING_SRC_DIR=ON -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/neovim/HEAD-2daf54e -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
==> make VERBOSE=1
Last 15 lines from /Users/julieengel/Library/Logs/Homebrew/neovim/02.make:
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E make_directory /tmp/neovim-20160913-68203-gfr9kf/deps-build/build/tmp
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E make_directory /tmp/neovim-20160913-68203-gfr9kf/deps-build/build/src/luv-static-stamp
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E make_directory /tmp/neovim-20160913-68203-gfr9kf/deps-build/build/downloads/luv
/usr/local/Cellar/cmake/3.6.2/bin/cmake -E touch /tmp/neovim-20160913-68203-gfr9kf/deps-build/build/src/luv-static-stamp/luv-static-mkdir
[ 21%] Performing download step for 'luv-static'
cd /tmp/neovim-20160913-68203-gfr9kf/deps-build/build/downloads/luv && /usr/local/Cellar/cmake/3.6.2/bin/cmake -DPREFIX=/tmp/neovim-20160913-68203-gfr9kf/deps-build/build -DDOWNLOAD_DIR=/tmp/neovim-20160913-68203-gfr9kf/deps-build/build/downloads/luv -DURL=https://github.com/luvit/luv/archive/1.9.1-0.tar.gz -DEXPECTED_SHA256=86a199403856018cd8e5529c8527450c83664a3d36f52d5253cbe909ea6c5a06 -DTARGET=luv -DUSE_EXISTING_SRC_DIR=ON -P /tmp/neovim-20160913-68203-gfr9kf/third-party/cmake/DownloadAndExtractFile.cmake
CMake Error at /tmp/neovim-20160913-68203-gfr9kf/third-party/cmake/DownloadAndExtractFile.cmake:33 (message):
  USE_EXISTING_SRC_DIR set to ON, but
  '/tmp/neovim-20160913-68203-gfr9kf/deps-build/build/src/luv' does not exist
  or is empty.

make[2]: *** [build/src/luv-static-stamp/luv-static-download] Error 1
make[1]: *** [CMakeFiles/luv-static.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

System: OSX 10.10.3

$ brew --version
Homebrew 0.9.9 (git revision 5a264; last commit 2016-09-12)
Homebrew/homebrew-core (git revision 6f89; last commit 2016-09-12)
$ nvim --version
NVIM 0.0.0-alpha+201503292107 (compiled Mar 30 2015 16:10:38)
Commit: 960b9108c2928b6cf0adcabdb829d06996635211
Build type: RelWithDebInfo
Compilation: /usr/local/Library/ENV/4.3/clang -Wconversion -O2 -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim20150330-55338-i4l3xx/build/config -I/tmp/neovim20150330-55338-i4l3xx/src -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include/luajit-2.0 -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include -I/tmp/neovim20150330-55338-i4l3xx/.deps/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim20150330-55338-i4l3xx/build/src/nvim/auto -I/tmp/neovim20150330-55338-i4l3xx/build/include
fwalch commented 8 years ago

I think you need to update the formula, the flags have changed. Also see https://github.com/neovim/homebrew-neovim/issues/177#issuecomment-244624710 in case Formula updating doesn't work.

engelju commented 8 years ago

Ah, I was thinking I'd be something along these lines. I was just reading through #143, #147 and #148 which also have useful info. Will try and report back! Thanks!

engelju commented 8 years ago

So, at first $brew update wouldn't want to work, because of Homebrew permission issues.

$ brew update
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object 
fatal: unpack-objects failed
Error: Fetching /usr/local/Library/Taps/neovim/homebrew-neovim failed!
Fetching /usr/local/Library/Taps/homebrew/homebrew-dupes failed! 
warning: failed to remove Library/Perl/Updates/5.18.2/darwin-thread-multi-2level/perllocal.pod
To restore the stashed changes to /usr/local run: 'cd /usr/local && git stash pop' 
Updated Homebrew from e10234f to 3d3a03f.
Updated 2 taps (caskroom/cask, caskroom/versions). 
No changes to formulae.

Then I found this link and tried $ sudo chown -R $USER /usr/local and then $ brew update again. That updated the formulaes, including the neovim one.

Then I tried to install neovim again by first $ brew uninstall neovim and then re-installing it via $ brew install --HEAD neovim. This time everything went smooth and successful! 🎉 Thanks for the help @fwalch!

fwalch commented 8 years ago

You're welcome!