ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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 -0500

cjk11091 gravatar image

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

gvdhoorn gravatar image


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?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-21 07:22:15 -0500

Jinjie gravatar image

Hi, I solved this problem by following this link.

edit flag offensive delete link more


Please do not post link-only answers. If/when the linked page disappears or gets relocated, your answer will point to a dead link.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-21 07:28:33 -0500 )edit

Question Tools

1 follower


Asked: 2019-11-07 20:57:04 -0500

Seen: 244 times

Last updated: Nov 08 '19