Luka
Luka

Reputation: 1801

Building gcc on centos?

I am trying to build gcc on cent os. I am trying to do exactly what this page writes: http://www.gnu.org/software/gsrc/

After installing python, bzr and a few other packages I managed to almost get it right, but on this step: make -C gnu/hello

I get those errors:

[root@localhost gsrc]# make -C gnu/hello
make: Entering directory `/root/gsrc/gnu/hello'
printf "[install-info] ==>Installing entries to the Info directory\n"
[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'

Upvotes: 2

Views: 362

Answers (1)

VirgileD
VirgileD

Reputation: 757

Based on the information you gave, I suggest you just manually create the missing directory:

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

and then rerun you make -C gnu/hello

This directory is where the info manager keeps its info files. But the fact that this directory is missing although the install-info prog is there suggest that something went wrong in your install

Upvotes: 2

Related Questions