For installing SystemC on a Linux computer (Ubuntu / Pop!_OS 22.04), first install the Core SystemC Language and Examples from the Accellera website or the SystemC community portal.

sudo apt-get install build-essential
tar -xvf systemc-2.3.3.tar.gz
cd systemc-2.3.3/objdir
sudo mkdir /usr/local/systemc-2.3.3
sudo ../configure --prefix=/usr/local/systemc-2.3.3/
sudo make
sudo make install
export SYSTEMC_HOME=/usr/local/systemc-2.3.3/

For compiling with SystemC:

g++ -I. -I$SYSTEMC_HOME/include -L. -L$SYSTEMC_HOME/lib-linux64 -Wl,-rpath=$SYSTEMC_HOME/lib-linux64 -o hello hello.cpp -lsystemc -lm