Skip to main content
2 of 3
make clearer that it is an answer
ederag
  • 360
  • 5
  • 13

Here is the reason why:

The point was that the configure and make steps worked because the PATH was prepended with the location of the toolchain (e.g. gcc)

But sudo does not propagate the variables. Hence sudo make install ran commands with the wrong toolchain (the old gcc for instance).

One solution is to just use su

su # make install 
ederag
  • 360
  • 5
  • 13