2012-03-02 149 views
1

我想安装在Linux x86_64的GCC 4.2.4,Intel的CPU有2个内核,在不默认路径。 我下载通过SVN的代码,并从构建目录配置了安装GCC 4.2.4

../gcc_424/configure --prefix=/scratch/user/local/gcc-424 --with-local-prefix=/scratch/user/local/include 

然后在生成目录

make 

当我运行

make install 

我得到的错误

/bin/sh: line 3: cd: ./fixincludes: No such file or directory 

我现在应该做什么有点失落,有什么帮助?

+0

推测源包中缺少fixincludes目录。它是否没有--prefix编译? – 2012-03-02 23:07:12

+0

我不是根,我不能编译没有前缀 – simona 2012-03-02 23:19:15

+0

你应该能够没有前缀。你不能安装。也许尝试fakeroot环境? – 2012-03-02 23:20:55

回答

0

虽然未经测试(因为它是相当老),EasyBuild应该能够建立GCC 4.2没有太多的麻烦。 只需使用available example easyconfigs为GCC(非ClooG-PPL的)之一,调整版本号,并运行EasyBuild install命令指定easyconfig文件。 无需root权限,EasyBuild照顾所有讨厌的东西。