Ask Your Question
0

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

1 Answer

Sort by ยป oldest newest most voted
0

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

Jinjie gravatar image

Hi, I solved this problem by following this link.

edit flag offensive delete link more

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.

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 154 times

Last updated: Nov 08 '19