Re: Upgrading gcc
jayjwa <[email protected]> Mon, 03 Aug 2026 11:36:49 -0400
| Newsgroups | comp.os.linux.misc |
|---|---|
| Organization | atr2net 2026 |
| Message-ID | <[email protected]> |
Charlie Gibbs <[email protected]> writes: > I'm currently helping a friend upgrade his copy of Darktable. > The latest snag is that the build process wants GCC 12, while > his machine, running Mint 21, only has GCC 11. After scanning > the web for advice, I've tried to upgrade the compiler. At > best I got to where typing "gcc --version" on the command line > reports version 12, but Darktable's build.sh still managed to > find (and reject) the old GCC 11. Any ideas, short of doing > a dist-upgrade to Mint 22? The build system should ask which compiler to use. You can set it either via envars (like CC), switches to the build system, or by editing the build system files (like Makefile). If it's Cmake, there's a 'ccmake' something something (read the manual for it). You could install, for example, /opt/gcc-15/bin and then tell it /opt/gcc-15/bin/gcc for the compiler. You might also try temporarily hiding your system compiler, but that's kind of hacky. You sure this won't work? https://github.com/darktable-org/darktable/releases/download/release-5.6.0/Darktable-5.6.0-x86_64.AppImage -- PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE "The Internet should always be the Wild West!"