Setting up an environment for a Binary snapshot of gcc

Jeffrey Walton noloader at gmail.com
Sun Jan 25 16:49:54 UTC 2026


On Thu, Jan 22, 2026 at 10:49 AM Ian Bruntlett <ian.bruntlett at gmail.com>
wrote:

> Hi,
>
> I have 2 questions about Ubuntu system administration:
>
> *The situation.*
> Using Ubuntu 24.04.3 x86_64 LTS
> I installed gcc-latest_16.0.0-20260111git8e4107a1b3d4.deb
> $ sudo dpkg --install gcc-latest_16.0.0-20260111git8e4107a1b3d4.deb
> The .deb file came from https://jwakely.github.io/pkg-gcc-latest/
>
> This prerelease of gcc runs from /opt/gcc-latest/bin so, to get that onto
> the PATH, I put these 2 lines at the bottom of .bashrc:
> # Things for running gcc-latest
> PATH=/opt/gcc-latest/bin:$PATH
>
> *Question 1.*
> Is that sensible? With a bit more work I got g++ to compile a simple Hello
> World programme - I needed to sudo apt install binutils first.
>
> So that Hello World could find the standard C++ library, I had to source a
> shell script which did this:
> #!/bin/bash
> echo $PATH
> set -x
> export LD_LIBRARY_PATH=/opt/gcc-latest/lib64
>
> *Question 2.*
> Is that sensible? Should I put it in .bashrc as well?
>

Two related comments.

First, you might try Fedora Rawhide.  Rawhide is the next version of Fedora
to be released (it is a lot like Debian Sid).  But Fedora releases every 6
months (unlike Debian, which takes a couple of years to release).  With
Fedora, you mostly have the latest version of programs, like GCC.  Rawhide
provides GCC 16.0.1 out of the box.  See <
https://packages.fedoraproject.org/pkgs/gcc/gcc/>.

Second, if you are a free and open source developer, then you can get an
account on the Compile Farm.  The CFarm provides lots of machines with
various compilers.  You will be able to find lots of versions of GCC on the
farm.  See <https://portal.cfarm.net/> and <
https://gcc.gnu.org/wiki/CompileFarm>.  And here is a list of machines and
architectures: <https://portal.cfarm.net/machines/list/>.

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20260125/3d98a1da/attachment.html>


More information about the ubuntu-users mailing list