Linux

Install Clang compiler (to complie C code)



WSL is used for all CS50-related installations as CS50 IDE (CS50.dev) uses Linux Terminal (Ubuntu).

1. Update
sudo apt update -y && sudo apt upgrade -y
(you’ll have to enter your password)

2. Remove unwanted stuff
sudo apt autoremove -y && sudo apt autoclean -y

3. Install Clang
sudo apt install clang -y

4. Check the version of Clang
clang –version

5. Install GDB & check version (debugger)
sudo apt install gdb -y
gdb –version

6. Install Valgrind (memory leak checker)
sudo apt install valgrind -y
valgrind –version

If it doesn’t show any error, then the installation was a success.

Next, we want a code editor to write code. CS50 uses VSCode, so we are getting that.

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button