Had to switch to ggc-5 for kinetic install on Raspbian Buster. How to switch back to gcc-8?

asked 2019-11-07 20:57:04 -0600

cjk11091 gravatar image

updated 2019-11-08 00:46:03 -0600

gvdhoorn gravatar image

Hello,

Due to issues with libboost when installing kinetic on my RPi 4 running Buster I followed this post here:

https://answers.ros.org/question/3274...

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!

edit retag flag offensive close merge delete