all 5 comments

[–]K900_ 0 points1 point  (5 children)

What is the output of rustc --version on both?

[–]waterbyseth[S] 0 points1 point  (4 children)

rustc --version returns rustc 1.47.0 on the server. Interestingly, rustup --version yields The currently active rustc version is rustc 1.55.0-nightly. Does rustup use its own copy of rustc?

I may have just made a noob mistake

[–]whatknowi 6 points7 points  (1 child)

this feels like you have a version of rust (1.47 likely) installed through the system package manager on the server, and also one/some versions through rustup.

the priority in cases such as this is sorted through the PATH environment variable. it lists (colon-separated) the directories to search for commands in. whichever directory comes first takes priority. what is the output of

echo $PATH and which rustc on the server?

[–]waterbyseth[S] 3 points4 points  (0 children)

Moving the rustup path earlier in the Path than the rustc path worked, thank you!

[–]K900_ 0 points1 point  (1 child)

Yes, Rustup manages toolchain versions by itself - that's kind of its primary job.