Johni0702 / mumble-web-proxy

Mumble to WebSocket+WebRTC proxy for use with mumble-web
70 stars 25 forks source link

cargo: command not found #23

Closed r4dh4l closed 3 years ago

r4dh4l commented 3 years ago

Hi,

to install https://github.com/johni0702/mumble-web I followed the instructions there and on https://github.com/Johni0702/mumble-web-proxy but got

mumble-web@vm-mumble:~/mumble-web-proxy$ cargo build --release
-bash: cargo: command not found
mumble-web@vm-mumble:~/mumble-web-proxy$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

I've installed rustup under root via curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh which ends up with Rust is installed now. Great!:

root@vm-mumble:~# echo $PATH
/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@vm-mumble:~# 

I thought it would be a good idea to use an non-privileged user for mumble-web-proxy so I used the same user for mumble-web-proxy which I use for mumble-web.

Edit: If I install cargo via apt install cargo under root I can run cargo build --release under mumble-web but https://github.com/Johni0702/mumble-web-proxy#building indicates that this is not necessary:

Make sure you have Cargo (Rust's package manager) installed (e.g. via rustup), then run:

Which part did I miss?

r4dh4l commented 3 years ago

Which part did I miss?

Got it: rustup needs to be installed under user mumble-web (in my example), so not under root.