After setting the user and the password for Ubuntu 20.04 (installed via Microsoft Store, as shown in the tutorial linked in the previous step), type the following commands to update it:
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install build-essential
If you are having trouble to connect WSL in your network, check if it is set as "public". Change it to "private" and you'll get internet access again.
An optional step, is to install G++-10, so you can use C++20:
- sudo apt install gcc-10 g++-10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
- gcc --version
- gcc (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
- g++ --version
- g++ (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
With update-alternatives, we set version 10 as the principal one. This will be useful when compiling things with CMake.
We need Python 3.7 for the Deep Lagrangian Fluid to run. So install it with:
- sudo add-apt-repository ppa:deadsnakes/ppa
- sudo apt install python3.7
- python3.7 -V
- Python 3.7.10
- python3 -V
- Python 3.8.5
Since there are two Python versions, to ensure we use version 3.7, we need to call python3.7 for it. If you don't, you can set Python 3.7 as your default version through:
- sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
No comments:
Post a Comment