Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was helping my friend installing gem5 simulator on Linux for thesis work. I know Linux a little bit. Somehow I managed to install that simulator on my laptop with Ubuntu 12.04, but when I tried to install that simulator on her laptop it didn't go well. I gave the same commands on her laptop but it gave this error.

$ scons build/ALPHA/gem5.opt
scons: Reading SConscript files ...
Error Don't know what compiler options to use for your compiler.
compiler: None
If you're trying to use a compiler other than GCC
or clang, there appears to be something wrong with your

If you are trying to use a compiler other than those listed
above you will need to ease fix SConstruct and 
src/SConscript to support that compiler.

I tried same commands to install gem5 simulator by re installing ubuntu on her laptop. But same error. Then I tried on Linux Mint 15 and Fedora but got the same error. What am I doing wrong? Can somebody provide step by step guide to perform installation of gem5 simulator or can anybody can provide me a .deb file of it?

If not please at-least guide me how to create deb file of that sim, but please consider my skills are of beginner's level.

share|improve this question
I believe you have to install gcc-arm-linux-gnueabi and libc6-dev-armel-cross before. – Braiam Sep 26 '13 at 18:58
up vote 1 down vote accepted

This worked for me !! Thanks !!!

 sudo apt-get install swig gcc m4 python python-dev libgoogle-perftools-dev mercurial scons g++ build-essential
 hg clone
 cd gem5/
 scons build/ARM/gem5.opt -j2
 build/ARM/gem5.opt configs/example/ -c tests/test-progs/hello/bin/arm/linux/hel­lo
share|improve this answer

Well I checked out the dev tree and ran scons and it just worked™. I would guess from the error you're seeing that means you don't have a compiler (scons is only a replacement for make, not gcc). This is where reading the README file or the dependencies page comes in handy.

sudo apt-get install build-essential scons swig zlib1g-dev m4 protobuf{-c,}-compiler

I compile other stuff, so apart from scons I was already good to go.

share|improve this answer
1-sudo apt-get update
2-sudo apt-get install swig gcc m4 python python-dev libgoogle-perftools-dev  g++  scons  mercurial  zlib1g-dev protobuf-compiler libprotobuf-dev
3-hg clone
4-cd gem5/
5-scons build/ARM/gem5.opt

in 5 instruction You can type(SPARC,Alpha,...) or other
if 5's step was OK that's means is your installation is complete. good Lucks

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.