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

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

March 29, 2025 | 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 14.2 with:

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

    And then the System GCC with for instance:

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

    Eventually amend the above Command with the Path found on Step 2.
    Next to Switch between GCC Versions play:

    sudo update-alternatives --config gcc

    Last, to test the GCC in use:

    gcc -v
    Step-by-step GCC 14.2 Installation in Ubuntu 22.04 Guide - update-alternatives GCC
  2. Congratulations, your GCC 14.2 should be now nicely working on Ubuntu 22.04. Good Luck! :)

Contents