On 3/15/2023 8:57 AM, Kar, Anurag Arunkumar via gem5-users wrote:
Hi,

I tried following previous archived threads which said the solution to this problem was to provide the path to  PYTHON_CONFIG and not using a conda environment.

I am not using a conda environment and am providing the path in the scons 
command:

scons ./build/ARM_MESI_Three_Level/gem5.opt PYTHON_CONFIG=/usr/bin/python-config

scons: Reading SConscript files ...

Mkdir("/data/anurag/gem5-public/build/ARM_MESI_Three_Level/gem5.build")

Checking for linker -Wl,--as-needed support... (cached) yes

Checking for compiler -Wno-free-nonheap-object support... (cached) yes

Checking for compiler -gz support... (cached) yes

Checking for linker -gz support... (cached) yes

Info: Using Python config: python3-config

Checking for C header file Python.h... (cached) yes

Checking Python version... no

Error: Can't find a working Python installation

I have been able to build gem5 on this very machine before, I’m not sure what changed between then and now. Can someone help me debug this?

To pass an environment variable into a program, write your command line this 
way:

PYTHON_CONFIG=/usr/bin/python-config scons ./build/ARM_MESI_Three_Level/gem5.opt

or else do this first:

export PYTHON_CONFIG=/usr/bin/python-config

BUT ... at least in my setup, python-config does not exist, yet all works fine.

Is python accessible through PATH?  That's what I would check first.  If you're
on bash, then "type python" will show you.

Cheers - Eliot Moss
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to