UPB-FILS-SdE2 / questions

0 stars 1 forks source link

[rustyloader] Setup problems #97

Closed mihaicostin34 closed 8 months ago

mihaicostin34 commented 1 year ago

The cargo command was not recognized, so I installed rust with curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh and also ran the command rustup target add i686-unknown-linux-gnu Now, when I run the command cargo run, I get this error image followed by a big block of text and then this image

alexandruradovici commented 1 year ago

You have to install gcc using sudo apt-get install build-essential. Make sure to run onve before sudo apt-get update.

mihaicostin34 commented 1 year ago

This is the log image The same thing as before happens when I run cargo run or cargo build

alexandruradovici commented 1 year ago

My bad, you are missing lgcc, try installing it https://howtoinstall.co/en/libgcc-4.8-dev. The version should not matter.

alexandruradovici commented 1 year ago

Take a look at .github/classroom/autograding.json at the first command that it runs. This installs all the dependencies.

mihaicostin34 commented 1 year ago

Manually running the first command in autograding.json worked. Now the project builds.