I just downloaded the latest gem5. Then compiled it using the scons build / x86 / gem5. Opt command. But there was an error
scons build / x86 / gem5. Opt
build / x86 / SystemC