VBox install Ubuntu 16.04 shared folder suddenly fails Error: error: unrecognized command line option ‘- fstack protector strong’

Cause investigation

#gcc -v

Found version 4.7.7

but

Installing the above enhanced software requires the gcc5.0 provided with 16.04 Version 4

Solution:

1  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100
2  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50
3  sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
4  sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50
Then Re-install
#./autorun.sh
Done!

Similar Posts: