Skip to content

Instantly share code, notes, and snippets.

@rohanshukla94
Created February 11, 2022 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohanshukla94/a56a82c5c3ab52d47dccea7486c59267 to your computer and use it in GitHub Desktop.
Save rohanshukla94/a56a82c5c3ab52d47dccea7486c59267 to your computer and use it in GitHub Desktop.
Install gcc 6 on Ubuntu 18.04 for using amcl with GPU. Works with ROS Melodic
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt-get update && \
sudo apt-get install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
gcc -v && \
sudo apt-get install nvidia-cuda-toolkit && \
mkdir -p ~/catkin_ws/src && \
cd ~/catkin_ws/src && \
git clone https://github.com/atinfinity/amcl.git && \
cd ~/catkin_ws && \
catkin_make && \
source devel/setup.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment