sudo apt-get install git make autoconf g++ flex bison # try gcc in place of g++ if fail
sudo apt-get install libfl2 # Ubuntu only (ignore if gives error)
sudo apt-get install libfl-dev
4.or convert ur systemc path to wsl path. for ex:
if ur path is C:\Users\user\Documents\sv\systemc-2.3.3
then do
cd /mnt/c/Users/user/Documents/sv/systemc-2.3.3
export CXX=g++
../configure
make
make check # check for errors & debug accordingly
make install
Finished installing SystemC
Now edit bashrc file to permanantly add Systemc to environment
vi ~/.bashrc
in it, add at the end
export SYSTEMC_HOME=/your/path/to/systemc-2.3.2
export SYSTEMC_INCLUDE=$SYSTEMC_HOME/include
export SYSTEMC_LIBDIR=$SYSTEMC_HOME/lib-linux64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/your/path/to/systemc-2.3.2/lib-linux64
Better have a separate folder for sysC and verilator, because we might need install additional libraries later on like SCV. Its convinient to have them in one location
Take care of the environment variables in linux before installing sysC and verilator