windows11 ubuntu rustc linker cc not found error 관련
$:~/projects/hello_world$ rustc main.rs
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: aborting due to previous error
$:~/projects/hello_world$ sudo apt install build-essential cmake
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-devtools_2.35-0ubuntu3.4_amd64.deb 404 Not Found [IP: ㅌㅌ.ㅌㅌ.ㅌㅌ.ㅌㅌ ㅌㅌ]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
$:~/projects/hello_world$ sudo sudo apt install build-essential
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-devtools_2.35-0ubuntu3.4_amd64.deb 404 Not Found [IP: ㅌㅌ.ㅌㅌ.ㅌㅌ.ㅌㅌ ㅌㅌ]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
seongho@DESKTOP-4PU41RU:~/projects/hello_world$ sudo apt-get update
seongho@DESKTOP-4PU41RU:~/projects/hello_world$ sudo apt install build-essential
seongho@DESKTOP-4PU41RU:~/projects/hello_world$ rustc main.rs
seongho@DESKTOP-4PU41RU:~/projects/hello_world$ ls
main main.rs
seongho@DESKTOP-4PU41RU:~/projects/hello_world$ ./main
Hello, world!
seongho@DESKTOP-4PU41RU:~/projects/hello_world$