1
votes

I have downloaded gcc-4.1.2 from http://gcc.petsads.us/releases/gcc-4.1.2/gcc-4.1.2.tar.bz2 and built with two commands

./configure
make

Now I can see g++ binary. But there is no gcc binary.

$ ls /opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/g++
/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/g++

$ ls /opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/gcc
ls: cannot access /opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc/gcc: No such file or directory

What did I miss?

2
I didn't want to install for all users. - mahmood
@mahmood you dont have to install for all users, if you set up --prefix variable during configure - xhudik
@xhudik: thanks for pointing that. Please add that to your answer - mahmood
@mahmood - adding such info would not be good since your question is not about setting up configuration process ... - xhudik

2 Answers

2
votes

The gcc binary is called xgcc until it is installed.

1
votes
  1. did you check whether configure and make went without error?
  2. but less probable: did you run also make install which should install all binaries into appropriate directories?