You are not logged in.

#1 2023-10-17 14:39:26

JaHa
Member
Registered: 2021-12-21
Posts: 3

cargo still trying to execute /usr/bin/cargo after pacman -Rs

Posting here before I try the Rust forums.

I initially installed Rust with pacman and later removed it with

pacnan -Rs

to install the "rustup way".

I get the following error when executing a `cargo add ...`

-bash: /usr/bin/cargo: No such file or directory

Wondering how to go about correcting this issue.

Offline

#2 2023-10-17 14:47:50

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: cargo still trying to execute /usr/bin/cargo after pacman -Rs

How did you install rustup?

Offline

#3 2023-10-17 14:52:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: cargo still trying to execute /usr/bin/cargo after pacman -Rs

run `hash -r` and try again

Offline

#4 2023-10-17 14:54:20

JaHa
Member
Registered: 2021-12-21
Posts: 3

Re: cargo still trying to execute /usr/bin/cargo after pacman -Rs

@lunaryorn, I installed:

curl https://sh.rustup.rs -sSf | sh

Offline

#5 2023-10-17 14:57:58

JaHa
Member
Registered: 2021-12-21
Posts: 3

Re: cargo still trying to execute /usr/bin/cargo after pacman -Rs

Scimmia wrote:

run `hash -r` and try again

hash -r cargo

worked!

Solved

Offline

#6 2023-10-18 09:58:39

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,198

Re: cargo still trying to execute /usr/bin/cargo after pacman -Rs

JaHa wrote:

@lunaryorn, I installed:

curl https://sh.rustup.rs -sSf | sh

Read https://wiki.archlinux.org/title/Rust#Rustup and pay special attention to the red(dish) colored box .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB