Had to switch to ggc-5 for kinetic install on Raspbian Buster. How to switch back to gcc-8?
Hello,
Due to issues with libboost when installing kinetic on my RPi 4 running Buster I followed this post here:
This required installing gcc-5 and g++-5 for and setting them as the default c++ compiler, as seen here:
$ sudo apt install g++-5 gcc-5
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 20
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10
$ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 20
$ sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
$ sudo update-alternatives --set cc /usr/bin/gcc
$ sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
$ sudo update-alternatives --set c++ /usr/bin/g++
Now that ROS is fully compiled, will changing my default back to gcc-8 break my ROS install? How do I change it back to gcc-8?
Thanks!
Asked by cjk11091 on 2019-11-07 21:57:04 UTC
Comments