ajeetdsouza / zoxide

A smarter cd command. Supports all major shells.
https://crates.io/crates/zoxide
MIT License
23.07k stars 557 forks source link

WSL installation error: linker `cc` not found #750

Closed mino9421 closed 8 months ago

mino9421 commented 8 months ago

I am exploring wsl within my windows terminal and have been configuring and ricing it as per usual and wanted to try out zoxide When I tried to install using

cargo install zoxide --locked

it gave me the following output in the image below:

context: I ran update/upgrade + rust/cargo updates and they are all up to date. Also provided echo $PATH output Also did some search here and there and installed build-essential just trying things out and still same error output.

image

Will be trying it on my linux machine tomorrow, might be a WSL only thing or I am missing something random

ajeetdsouza commented 8 months ago

apt install build-essential should fix that. Otherwise, you can use the install script given in the README:

curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
mino9421 commented 8 months ago

I followed all the steps again, and I had to add the PATH using export PATH="$PATH:/home/mino/.local/bin"