rioguia
08-27-2002, 07:11 AM
i need help to install some files needed to install the latest C compiler so that I can compile the latest kernel. I am attempting to install gcc-3.0.4-20020221on Redhat 7.2 as follows:
first unpack gcc-3.2 source tree and cd into it something like
1. in /usr/src, mkdir redhat, cd redhat, mkdir SOURCES
2. switch directory downloaded rpm.src (in my case root)
rpm -Fvh gcc3-3.0.4-1.src.rpm
3. cd to /usr/src/SOURCE and bunzip2 -d gcc-3.0.4-20020221.tar.bz2
4. tar -xvf gcc-3.0.4-20020221.tar
5. cd gcc-3.0.4-20020221
6. mkdir /opt/gcc-3.2
7. ./configure --prefix=/opt/gcc-3.2
8. make bootstrap && make install && echo YES
9. ln -s /opt/gcc-3.2/bin/gcc /usr/local/bin/gcc-3.2
************************************************** *****
when I get to step 8, I get the following errors
[checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
[ETC]
/bin/sh: autoheader: command not found
make[2]: *** [cstamp-h.in] Error 127
make[2]: Leaving directory `/usr/src/redhat/SOURCES/gcc-3.0.4-20020221/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/redhat/SOURCES/gcc-3.0.4-20020221/gcc'
make: *** [bootstrap] Error 2
************************************************** **
i have tried to install autoconf (which includes authoheader?) and automake as follows (can't find aclocal and makeinfo):
1. Obtain the original source code file (autoconf-2.13.tar.gz) from The GNU Foundation.
2. Download the file to the /compiletmp/ directory.
3. Move to the /compiletmp/ directory and unzip the file with the command:
"gunzip autoconf-2.13.tar.gz"
4. After unzipping the file, untar the resulting tar file with the command:
"tar -xof autoconf-2.13.tar"
5. After untarring the file, move to the /compiletmp/autoconf-2.13
directory and create the Makefile by issuing the command:
"CC='gcc' ./configure --prefix=/usr/local/autoconf-2.13"
6. After the Makefile is configured, compile the program with a simple "make" instruction.
7. "mkdir /usr/local/autoconf-2.13"
"mkdir /usr/local/autoconf-2.13/man"
8. Now, install the binaries, libraries, and man pages with the command:
"make install"
9. ln -s /usr/local/autoconf-2.13/bin/autoconf /usr/bin/autoconf-2.13
10. ln -s /usr/local/autoconf-2.13/bin/autoheader /usr/bin/autoheader-2.13
what do i need to do to fix this problem?
first unpack gcc-3.2 source tree and cd into it something like
1. in /usr/src, mkdir redhat, cd redhat, mkdir SOURCES
2. switch directory downloaded rpm.src (in my case root)
rpm -Fvh gcc3-3.0.4-1.src.rpm
3. cd to /usr/src/SOURCE and bunzip2 -d gcc-3.0.4-20020221.tar.bz2
4. tar -xvf gcc-3.0.4-20020221.tar
5. cd gcc-3.0.4-20020221
6. mkdir /opt/gcc-3.2
7. ./configure --prefix=/opt/gcc-3.2
8. make bootstrap && make install && echo YES
9. ln -s /opt/gcc-3.2/bin/gcc /usr/local/bin/gcc-3.2
************************************************** *****
when I get to step 8, I get the following errors
[checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
[ETC]
/bin/sh: autoheader: command not found
make[2]: *** [cstamp-h.in] Error 127
make[2]: Leaving directory `/usr/src/redhat/SOURCES/gcc-3.0.4-20020221/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/src/redhat/SOURCES/gcc-3.0.4-20020221/gcc'
make: *** [bootstrap] Error 2
************************************************** **
i have tried to install autoconf (which includes authoheader?) and automake as follows (can't find aclocal and makeinfo):
1. Obtain the original source code file (autoconf-2.13.tar.gz) from The GNU Foundation.
2. Download the file to the /compiletmp/ directory.
3. Move to the /compiletmp/ directory and unzip the file with the command:
"gunzip autoconf-2.13.tar.gz"
4. After unzipping the file, untar the resulting tar file with the command:
"tar -xof autoconf-2.13.tar"
5. After untarring the file, move to the /compiletmp/autoconf-2.13
directory and create the Makefile by issuing the command:
"CC='gcc' ./configure --prefix=/usr/local/autoconf-2.13"
6. After the Makefile is configured, compile the program with a simple "make" instruction.
7. "mkdir /usr/local/autoconf-2.13"
"mkdir /usr/local/autoconf-2.13/man"
8. Now, install the binaries, libraries, and man pages with the command:
"make install"
9. ln -s /usr/local/autoconf-2.13/bin/autoconf /usr/bin/autoconf-2.13
10. ln -s /usr/local/autoconf-2.13/bin/autoheader /usr/bin/autoheader-2.13
what do i need to do to fix this problem?