Skip to content

Instantly share code, notes, and snippets.

@2minchul
Last active May 14, 2018 08:22
Show Gist options
  • Save 2minchul/135fb6127f084b02fef6578ad486f56d to your computer and use it in GitHub Desktop.
Save 2minchul/135fb6127f084b02fef6578ad486f56d to your computer and use it in GitHub Desktop.
install rpi-source for gcc-4.9 build
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
# check required gcc version
cat /proc/version
# install gcc 4.9
sudo apt update -y
sudo apt-get install gcc-4.9 g++-4.9 -y
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 20
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 20
#install build essential
sudo apt-get install bc libncurses5-dev -y
# install rpi-source
rpi-source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment