Installation

According to https://groups.google.com/g/basilisk-fr/c/EuNqYH10Sng/m/wIFjgFrlAAAJ, we need to use gcc-10 instead of gcc-11 for basilisk installation

Install gcc-10, g++-10

  • sudo apt install gcc-10 g++-10
  • sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-10 10
  • sudo update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-10 10
  • sudo update-alternatives –config gcc
  • sudo update-alternatives –config g++
If continue to encounter issues, ensure that the cc command is correctly linked to the C compiler (gcc). We can do this by checking if /usr/bin/cc exists and is pointing to /usr/bin/gcc:

ls -l /usr/bin/cc

If it doesn’t point to gcc, you can create a symbolic link to fix it:

sudo ln -s /usr/bin/gcc /usr/bin/cc
Scroll to Top