Tuesday 23 July 2013

Installing new gcc and changing symbolic link

Ubuntu



$sudo add-apt-repository ppa:ubuntu-toolchain-r/test $sudo apt-get update
$sudo apt-get install gcc-4.7-base $sudo apt-get install gcc-4.8

after installation remove the previous sym link and point to new gcc-4.8

$ which gcc
$ ls -ld /usr/bin/gcc
$ sudo rm /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
$ ls -ld /usr/bin/gcc

Compiling from source?

sudo apt-get install gcc-multilib
error: no acceptable m4 could be found in $PATH.
$sudo apt-get install m4

see this one


No comments:

Post a Comment