Robotics StackExchange | Archived questions

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:

https://answers.ros.org/question/327497/compiling-ros-on-raspberry-pi-4-with-buster-problem-with-libboost158/

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

Answers

Hi, I solved this problem by following this link.

Asked by Jinjie on 2020-02-21 08:22:15 UTC

Comments

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

Asked by gvdhoorn on 2020-02-21 08:28:33 UTC