Hi Zheng, Could you make sure that the Python.h header is in fact there and that you can read it (e.g. using less). Next, have a look in the build directory where there is a file named scons_config.log. At the end of this file you should hopefully see some more detailed information about what is going wrong.
As a precaution, also remove the build directory before you try again. Andreas From: Zheng Wu <z...@uwaterloo.ca<mailto:z...@uwaterloo.ca>> Reply-To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Date: Wednesday, 23 January 2013 16:40 To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Subject: [gem5-users] Error: can't find Python.h header Hi All, When I try to build gem5 for X86, I am getting the error shown in [1]. I've read about this problem in the previous threads (http://comments.gmane.org/gmane.comp.emulators.m5.users/10463 and http://comments.gmane.org/gmane.comp.emulators.m5.users/9296). However, I tried all the suggestions in those thread such as using the -no-cache and -config=force options but I am still getting this error. I've installed python-dev and my distribution of linux is shown in [2]. The version of tools that I am using is shown in [3]. Can someone please help, I really need to get gem5 to build and run some benchmarks. Any suggestions are much appreciated. Thanks, Zheng [1] [root@rpsrvr1 gem5]# scons build/X86/gem5.opt scons: Reading SConscript files ... Warning: Protocol buffer compiler (protoc) not found. Please install protobuf-compiler for tracing support. Checking for leading underscore in global variables...no Checking for C header file Python.h... no Error: can't find Python.h header in ['/usr/include/python2.6'] Install Python headers (package python-dev on Ubuntu and RedHat) [2] [root@rpsrvr1 gem5]# cat /etc/*-release Scientific Linux release 6.1 (Carbon) [root@rpsrvr1 gem5]# uname -a Linux rpsrvr1.uwaterloo.ca<http://rpsrvr1.uwaterloo.ca/> 2.6.32-220.17.1.el6.x86_64 #1 SMP Tue May 15 17:16:46 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux [3] python 2.6.6 gcc 4.4.5 scons 2.0.1 swig 1.3.40 zlib 1.2.3 -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users