13

I have installed nvim using AppImage mentioned as below

curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage

if i use nvim test,yml ,it fails as '-bash: /usr/bin/nvim: No such file or directory'

if i use ./nvim.appimage test.yml then it works. How to map this to nvim so that it works properly?

1
  • soft link / alias / ... ? Commented Oct 21, 2020 at 12:21

3 Answers 3

13

Linux looks for binaries in the paths that are set in $PATH variable. To check current paths execute echo $PATH

One way to fix it would be to move nvim.appimage (and rename it to just nvim) to one of the paths set in that variable.

Another way is to append the current path of nvim.appimage to $PATH. This was answered in detail How to correctly add a path to PATH?

Sign up to request clarification or add additional context in comments.

Comments

6

Move it into /usr/local/bin/nvim

sudo mv nvim.appimage /usr/local/bin/nvim

2 Comments

This is already what’s the accepted answer is advising.
One thing to point here, is that u need fuse on ubuntu/wsl2 too. Without it, I u need to executre --appimage-extract flag all the time.
0
wget https://github.com/neovim/neovim/releases/download/v0.10.1/nvim.appimage

chmod +x nvim.appimage
./nvim.appimage --appimage-extract
#you can use mc to go faster
sudo mv ./squashfs-root/usr/bin/nvim /usr/local/bin/nvim
sudo mv ./squashfs-root/usr/lib/nvimcd .. /usr/local/lib/nvim
# move all from share to /usr/local/share/
sudo mv ./squashfs-root/usr/share/* /usr/local/share/
rm -rf nvim.appimage
rm -rf squashfs-root

# on error  sudo apt install build-essential

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.