Last active
May 14, 2018 08:22
-
-
Save 2minchul/135fb6127f084b02fef6578ad486f56d to your computer and use it in GitHub Desktop.
install rpi-source for gcc-4.9 build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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