【发布时间】:2013-02-11 08:55:09
【问题描述】:
我从http://gcc.petsads.us/releases/gcc-4.1.2/gcc-4.1.2.tar.bz2 下载了 gcc-4.1.2 并用两个命令构建
./configure
make
现在我可以看到 g++ 二进制文件了。但是没有 gcc 二进制文件。
$ 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
我错过了什么?
【问题讨论】:
-
我不想为所有用户安装。
-
@mahmood 你不必为所有用户安装,如果你在配置过程中设置了 --prefix 变量
-
@xhudik:感谢您指出这一点。请将其添加到您的答案中
-
@mahmood - 添加此类信息并不好,因为您的问题与设置配置过程无关......