Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing on Ubuntu #805

Closed
monajalal opened this issue Dec 9, 2022 · 5 comments
Closed

installing on Ubuntu #805

monajalal opened this issue Dec 9, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@monajalal
Copy link

$ bash <(curl -sL https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install)
Downloading https://github.com/denisidoro/navi/releases/download/v2.20.1/navi-v2.20.1-x86_64-unknown-linux-musl.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2005k  100 2005k    0     0  8846k      0 --:--:-- --:--:-- --:--:-- 8846k
navi

✔ Finished
✔ navi is now available at /home/azureuser/.cargo/bin/navi

To call navi, restart your shell or reload your .bashrc-like config file

Check https://github.com/denisidoro/navi for more info


$ source ~/.bashrc
$ navi
navi was unable to call fzf.
                Please make sure it's correctly installed.
                Refer to https://github.com/junegunn/fzf for more info.

then after installing fzf:
sudo apt install fzf

I get this error:

$ navi
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
invalid preview window layout: up:2:nohidden
@monajalal monajalal added the bug Something isn't working label Dec 9, 2022
@welcome
Copy link

welcome bot commented Dec 9, 2022

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)

@scillidan
Copy link

See #447.
You can do them in turn:
cd ~
sudo apt remove fzf
git clone https://github.com/junegunn/fzf .fzf
bash .fzf/install
fzf --version
Then, navi

@Robert-Ernst
Copy link

Reopening:


$ bash <(curl -sL https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install)
Downloading https://github.com/denisidoro/navi/releases/download/v2.22.1
2.20.1/navi-v2.22.1
2.20.1-x86_64-unknown-linux-musl.tar.gz...
curl: (3) URL using bad/illegal format or missing URL
tar (child): navi.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
mv: cannot stat './navi': No such file or directory
✖ Unable to install navi. Please check https://github.com/denisidoro/navi for alternative installation instructions

@denisidoro denisidoro reopened this Apr 19, 2023
@monajalal
Copy link
Author

did not work

(clean-pvnet) mona@ada:~$  git clone https://github.com/junegunn/fzf .fzf
Cloning into '.fzf'...
remote: Enumerating objects: 13003, done.
remote: Counting objects: 100% (2172/2172), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 13003 (delta 1928), reused 1889 (delta 1766), pack-reused 10831
Receiving objects: 100% (13003/13003), 5.14 MiB | 13.92 MiB/s, done.
Resolving deltas: 100% (8332/8332), done.
(clean-pvnet) mona@ada:~$  bash .fzf/install
Downloading bin/fzf ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1415k  100 1415k    0     0   253k      0  0:00:05  0:00:05 --:--:--  313k
  - Checking fzf executable ... 0.44.1
Do you want to enable fuzzy auto-completion? ([y]/n) y
Do you want to enable key bindings? ([y]/n) y

Generate /home/mona/.fzf.bash ... OK

Do you want to update your shell configuration files? ([y]/n) y

Update /home/mona/.bashrc:
  - [ -f ~/.fzf.bash ] && source ~/.fzf.bash
    + Added

Finished. Restart your shell or reload config file.
   source ~/.bashrc  # bash

Use uninstall script to remove fzf.

For more information, see: https://github.com/junegunn/fzf
(clean-pvnet) mona@ada:~$  source ~/.bashrc 
(base) mona@ada:~$  fzf --version
0.44.1 (d7d2ac3)
(base) mona@ada:~$ navi
Command 'navi' not found, did you mean:
  command 'savi' from deb savi (1.5.1-4)
  command 'nvi' from deb nvi (1.81.6-17)
  command 'navit' from deb navit (0.5.6+dfsg.1-1)
  command 'nabi' from deb nabi (1.0.0-4build1)
Try: sudo apt install <deb name>

@scillidan

@scillidan
Copy link

@monajalal I install it on wsl2. Have you forgotten to set fzf in .zshrc or .bashrc?

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants