$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.

Switching

  1. 8. Switching System GCC

    Finally, to easy Managing GCC Versions use update-alternatives
    So first install the New GCC 12.2.x with, for instance:

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/x86_64-pc-linux-gnu-gcc-12.1.0 10

    In case, replace 12.2.0 with your current version in the above Command.
    To check it run:

    ls /usr/local/bin | grep gcc-12

    The grep Command refine the output List showing only the Entries matching the Keyword.
    And then the to Setup also the System GCC use:

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 20

    Next to Switch between GCC Versions play:

    sudo update-alternatives --config gcc

    Last, to test the GCC in use:

    gcc -v
    Gcc 12.2 Version
  2. Step-by-step GCC 12.2 Installation in Ubuntu 22.04 Guide - update-alternatives GCC

    Congratulations, your GCC 12.2 should be now nicely working on Ubuntu 22.04. Good Luck! :)

Contents