Step-by-step – GCC 11.1 Installation in Debian Bullseye

May 23, 2021 | By the+gnu+linux+evangelist.

Installing GCC

  1. 6. Setting up Environment

    Next Set Libraries Env Variable
    Eventually to Check the Target run:

    find /usr/ -name crti*

    Then Output should be as:
    /usr/lib/x86_64-linux-gnu/crti.o
    So in this case then to Set up the Environment Variables use:

    export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

    And then amend the User’s Path to append the New shared Libraries:

    echo "export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/lib64:/usr/lib/x86_64-linux-gnu" >> ~/.bashrc

    Last, to reload it:

    bash
  2. 7. Installing GCC 11.1

    Finally, to Install GCC 11.1 on Debian Bullseye
    First, make a Build Directory:

    mkdir build

    Then entry it:

    cd build

    Configuring with:

    ../configure --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix="/usr/local"

    Possibly customize the “languages” choiches in the above Command. To enable ADA and D Support see the Official Documentation.
    And then making it:

    make -j $(nproc)

    This Command to make it quicker using Multiples CPU Cores.
    Now take a long Time Out because the Build process will run for a while…
    Last, to make the Installation:

    sudo make install
    Step-by-step GCC 11.1 Debian Bullseye Installation Guide - GCC Version 11.1

QuickChic Theme • Powered by WordPress