gcc is not installed with gcc-toolset-10.x86_64
Install gcc-toolset-10.x86_64 in RHEL 8.4 using command:
sudo yum install gcc-toolset-10.x86_64
it created the directory /opt/rh/gcc-toolset-10/root/usr/bin, but gcc is not installed in this folder.
These are what I have in this folder;
addr2line
ar
as
c++
callgrind_annotate
callgrind_control
c++filt
cg_annotate
cg_diff
cg_merge
debuginfod-find
dwp
dwz
elfedit
eu-addr2line
eu-ar
eu-elfclassify
eu-elfcmp
eu-elfcompress
eu-elflint
eu-findtextrel
eu-make-debug-archive
eu-nm
eu-objdump
eu-ranlib
eu-readelf
eu-size
eu-stack
eu-strings
eu-strip
eu-unstrip
g++
gcore
gdb
gdb-add-index
gfortran
gmake -> make
gprof
gstack
ld.bfd
ld.gold
ltrace
make
ms_print
nm
objcopy
objdump
pstack -> gstack
ranlib
readelf
size
stap
stapbpf
stapdyn
stap-merge
stap-prep
stap-report
staprun
stapsh
strace
strace-log-merge
strings
strip
valgrind
valgrind-di-server
valgrind-listener
vgdb
x86_64-redhat-linux-c++
x86_64-redhat-linux-g++
I have also installed Development Tools before installing gcc.