tar xzf gcc-8.1.0.tar.gz
6. Navigate to the newly created gcc-8.1.0 directory:
$
cd gcc-8.1.0
12
Chapter 1
7. Download GCC’s prerequisites:
$
./contrib/download_prerequisites
--
snip
--
gmp-6.1.0.tar.bz2: OK
mpfr-3.1.4.tar.bz2: OK
mpc-1.0.3.tar.gz: OK
isl-0.18.tar.bz2: OK
All prerequisites downloaded successfully.
8. Configure GCC using the following commands:
$
mkdir objdir
$
cd objdir
$
../configure --disable-multilib
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
--
snip
--
configure: creating ./config.status
config.status: creating Makefile
Instructions are available at https://gcc.gnu.org/install/configure.html.
9. Build the GCC binaries (perhaps do this overnight, because it can take
hours):
$
make
Full instructions are available at https://gcc.gnu.org/install/build.html.
10. Test whether your GCC binaries built correctly:
$
make -k check
Full instructions are available at https://gcc.gnu.org/install/test.html.
11. Install GCC:
$
make install
This command places a handful of binaries into your operating
system’s default executable directory, which is usually /usr/local/bin. Full
instructions are available at https://gcc.gnu.org/install/.
12. Verify that GCC installed correctly by issuing the following command:
$
x86_64-pc-linux-gnu-gcc-8.1.0 --version
If you get an error indicating that the command was not found,
your installation did not succeed. Refer to the gcc-help mailing list at
https://gcc.gnu.org/ml/gcc-help/.
Up and Running
Dostları ilə paylaş: |