I'm trying to install gcc 4.8.1 at the moment. Currently 4.8.2 and 4.9.1 are installed. I downloaded an 4.8.1 from here http://gcc.cybermirror.org/releases/gcc-4.8.1/ . After extracting the files I did a ./configure
and then tried make
. At the end of make
, I get this error
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: No such file or directory
#include <asm/errno.h>
I am new to linux so I do not know how to find or add this header file.
Edit: Steps I made:
- Extract gcc-4.8.1.tar.gz to a folder
- Open terminal window
cd gcc-4.8.1
./configure --build=x86_64-linux-gnu
make -j4
I don't know what I did differently but it finally compiled. After that I did make install. My question now how do I use this instead of 4.8.2 which using the command gcc-4.8
still defaults to.