C++ Crash Course: a fast-Paced Introduction



Yüklə 7 Mb.
Pdf görüntüsü
səhifə47/71
tarix20.09.2023
ölçüsü7 Mb.
#145939
1   ...   43   44   45   46   47   48   49   50   ...   71
C Crash Course A Fast-Paced Introduction by Josh Lospinoso

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

Yüklə 7 Mb.

Dostları ilə paylaş:
1   ...   43   44   45   46   47   48   49   50   ...   71




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin