Setting up an environment for a Binary snapshot of gcc
Ian Bruntlett
ian.bruntlett at gmail.com
Sun Jan 25 14:08:41 UTC 2026
Hi Andrew,
On Thu, 22 Jan 2026 at 17:19, Andrew C Aitchison <ubuntu at aitchison.me.uk>
wrote:
> .bashrc is one way to do it, but I suggest that you
> explore the "environment-modules" package.
>
Thank you. I've made a note of that.
I intend to work my way through PPP3 ("Programming Principles and Practice
Using C++" chapter by chapter.
I've already diverted to reading the GNU Make documentation as well as the
main bit of "Managing Projects with GNU Make" and am trying to avoid more
diversions.
I've shifted my PATH= code out of .bashrc and now have a shell script,
prepare-for-gcc-latest, that I invoke via source:
#!/bin/bash
if ! echo $PATH | grep gcc-latest/bin: - ; then
echo gcc-latest not on path... putting it on
set -x
PATH=/opt/gcc-latest/bin:$PATH
export LD_LIBRARY_PATH=/opt/gcc-latest/lib64
cd gcc-new
set +x
else
echo gcc-latest already on path
fi
BW,
Ian
--
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://github.com/ian-bruntlett/TECH-Manuals/blob/main/tm-free-software.md
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20260125/c5507a52/attachment.html>
More information about the ubuntu-users
mailing list