在centos上构建gcc

Building gcc on centos?

本文关键字:gcc 构建 centos      更新时间:2023-10-16

我正在尝试在cent os上构建gcc。我正试图做的正是这个页面写:http://www.gnu.org/software/gsrc/

在安装了python, bzr和其他一些包之后,我设法使它几乎正确,但在这一步:make -C gnu/hello

我得到这些错误:

[root@localhost gsrc]# make -C gnu/hello
make: Entering directory `/root/gsrc/gnu/hello'
printf "[install-info] ==>Installing entries to the Info directoryn"
[install-info] ==>Installing entries to the Info directory
if /bin/sh -c 'install-info --version' >/dev/null; then 
        for f in hello.info; do 
            install-info --dir-file="/root/gnu/share/info/dir" 
                "/root/gnu/share/info/$f"; 
        done; 
    else true; fi
/root/gnu/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory)
make: *** [post-install] Error 1
make: Leaving directory `/root/gsrc/gnu/hello'

根据您提供的信息,我建议您手动创建丢失的目录:

mkdir -p /root/gnu/share/info/

然后重新运行make -C gnu/hello

这个目录是信息管理器保存信息文件的地方。但是,尽管有install-info程序,这个目录却不见了,这表明您的install

出了问题。