How to install SystemC on amd64 Linux

These instructions work – unlike those you might read elsewhere, which have been edited poorly.

1. Register to get the sources at’s website

2. Once registered login and download the source: go to and download systemc-2.3.0.tgz

3. Move the .tgz archive to the parent directory of where you want to install and unpack it: tar -xvf systemc-2.3.0.tgz

4. Change to the newly created systemc-2.3.0 directory: cd ./systemc-2.3.0

5. Inside that directory create a new objdir: mkdir objdir

6. Switch to that new directory: cd objdir

7. Set up your environment to handle the C++ make files: export CXX=g++

8. Create an installation directory: sudo mkdir /usr/local/systemc-2.3.0

9. Configure your sources for building: ../configure --prefix=/usr/local/systemc-2.3.0

10. Build it! make -j3

11. Install it: sudo make install

12. Now to build a program – eg hello.cpp, your command line needs to look like this:

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

In other words – don’t forget that you are using linux64 and not just linux

%d bloggers like this: