$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Install GCC 12.2 on Ubuntu 22.04 – Step-by-step

October 5, 2022 | By the+gnu+linux+evangelist.

Installing

  1. 5. Installing Dependencies

    Now to Install Required Dependencies
    Now install the Dependency Package with Multilib support with:

    sudo apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev gcc-multilib

    Then access the Target Directory:

    cd ~/Downloads/gcc-12.*/

    And again to Download the Required Libraries play:

    ./contrib/download_prerequisites
  2. 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
  3. 7. Installing GCC 12.2

    Finally, to Install GCC 12.2 on Ubuntu 22.04
    First, make a Build Directory:

    mkdir build

    Then entry it:

    cd build

    Configuring with:

    ../configure

    And now 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 12.2 Installation in Ubuntu 22.04 Guide - GCC Version 12.2

Contents