安装 gem5

安装 gem5

我正在尝试使用以下文档安装 gem5: https://www.gem5.org/documentation/learning_gem5/part1/building/

但在文档中,以下命令不起作用:

python3 'which scons' build/X86/gem5.opt -j9

我收到的错误如下:

python3: can't open file 'which scons': [Errno 2] No such file or directory

如果有人能指导我安装 gem5 并提供一些链接来了解 gem5 的话我就太客气了。

安装 gem5 后,我尝试使用以下命令对其进行测试,但出现如下所示的错误: 在此处输入图片描述

请帮我测试一下,以便我可以确认安装是否正确。

答案1

Gem5,Ubuntu 20.04https://www.gem5.org/documentation/general_docs/building

构建要求...
sudo apt install build-essential scons swig protobuf-c-compiler golang-goprotobuf-dev libprotobuf-c-dev libprotobuf-dev libhdf5-dev libpng-dev ruby-dev libgoogle-perftools-dev valgrind python3-dev

git clone https://github.com/gem5/gem5.git  
cd gem5/
scons build/X86/gem5.opt

## other typical build commands:
 scons build/ARM/gem5.opt
 scons build/ARM/gem5.fast

https://www.gem5.org/getting_started/→ 示例测试

cd gem5/    
build/X86/gem5.opt configs/learning_gem5/part1/simple.py

回复

Starting simulation...
Hello world!

相关内容