rogual / neovim-dot-app

Mac OS X GUI for Neovim
1.13k stars 62 forks source link

Error: No such file or directory - build/Neovim.app #262

Closed bedge closed 8 years ago

bedge commented 8 years ago

Using instructions from here: https://github.com/rogual/neovim-dot-app

Install via Homebrew

$ brew tap neovim/neovim $ brew tap rogual/neovim-dot-app $ brew install neovim-dot-app $ brew linkapps neovim-dot-app

I get:

%> brew install neovim-dot-app ==> Installing neovim-dot-app from rogual/neovim-dot-app ==> Downloading https://github.com/rogual/neovim-dot-app/archive/0.1.2.tar.gz Already downloaded: /Users/bedge/Library/Caches/Homebrew/neovim-dot-app-0.1.2.tar.gz ==> make NVIM=/usr/local/opt/neovim/bin/nvim Error: No such file or directory - build/Neovim.app

I originally ran into this: https://github.com/rogual/neovim-dot-app/issues/184 but after a brew update/upgrade and uninstall/reinstall msgpack, now I get the above.

If I unpack and build the tarball directly, I get back to the https://github.com/rogual/neovim-dot-app/issues/184 problem:

%> make VIM=/usr/local/Cellar/neovim/0.1.4/share/nvim NVIM=/usr/local/bin/nvim scons -Q Install file: "res/Info.plist" as "build/Neovim.app/Contents/Info.plist" .... clang++ -o build/Neovim.app/Contents/MacOS/Neovim build/client.o build/process.o build/rpc.o build/vim.o build/vimutils.o build/app.o build/font.o build/graphics.o build/input.o build/keys.o build/main.o build/menu.o build/redraw.o build/view.o build/window.o -L/usr/local/Cellar/msgpack/1.4.2/lib -lmsgpackc -lc++ -lmsgpack -framework Cocoa -framework Carbon ld: library not found for -lmsgpack clang: error: linker command failed with exit code 1 (use -v to see invocation) scons: * [build/Neovim.app/Contents/MacOS/Neovim] Error 1 make: * [all] Error 2

Here's my nvim version:

%> nvim --version NVIM 0.1.4 Build type: RelWithDebInfo Compilation: /usr/local/Library/ENV/4.3/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/build/config -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/src -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include/luajit-2.0 -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/deps-build/usr/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/build/src/nvim/auto -I/tmp/neovim-20160608-57737-bpl1z2/neovim-0.1.4/build/include Compiled by bedge@tmac.local

Optional features included (+) or not (-): +acl +iconv +jemalloc For differences from Vim, see :help vim-differences

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.1.4/share/nvim"

I was able to build it after symlinking:

%> ln -s libmsgpackc.a libmsgpack.a 'libmsgpack.a' -> 'libmsgpackc.a'

and do have a resulting build/Neovim.app in my tmp build dir (which is what the brew install is complaining about):

%> ls -dl build/Neovim.app drwxr-xr-x+ 3 bedge admin 102 Jun 8 18:26 build/Neovim.app

but that's just running make in a tmp dir. I still can't use brew to install it.

bedge commented 8 years ago

Tracked it down using brew install -vd neovim-dot-app Shelling out after the error showed:

bash-3.2$ /usr/local/bin/python bash-3.2$

The problem was that my brew python installation was borked and so scons was returning immediately.

Anyway the fix was

brew uninstall --force  python
brew install python

Although, it still needed the 'libmsgpack.a' -> 'libmsgpackc.a'