Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu gem5构建失败,出现“错误”;错误:can';t查找python所需的python2.7库“;_Ubuntu_Gem5 - Fatal编程技术网

Ubuntu gem5构建失败,出现“错误”;错误:can';t查找python所需的python2.7库“;

Ubuntu gem5构建失败,出现“错误”;错误:can';t查找python所需的python2.7库“;,ubuntu,gem5,Ubuntu,Gem5,我正在尝试构建gem5,但出现以下错误。如果需要设置某些环境变量,请您提供指导?所有先决条件都已安装 $ uname -a Linux i80pc93 4.4.0-148-generic #174~14.04.1-Ubuntu SMP Thu May 9 08:17:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux gem5$ scons build/ALPHA/gem5.opt scons: Reading SConscript files ... Ch

我正在尝试构建gem5,但出现以下错误。如果需要设置某些环境变量,请您提供指导?所有先决条件都已安装

$ uname -a
Linux i80pc93 4.4.0-148-generic #174~14.04.1-Ubuntu SMP Thu May 9 08:17:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

gem5$ scons build/ALPHA/gem5.opt 
scons: Reading SConscript files ... Checking for C library python2.7... no Error: can't find library python2.7 required by python

gem5$ gcc --version 
gcc (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


gem5$ python --version 
Python 2.7.6

我尝试重新安装python和gcc的不同版本,但没有成功。请指导。

请在邮件列表中询问,由于python3迁移,最近已回答了几个相关问题。也给你gem5版本。@CiroSantilli,谢谢。gem5版本不是最新版本。我正在使用来自的模拟器。我已经在同一台电脑上成功地构建/编译了它,我不知道我的系统上的哪些参数已经更改,我无法再次构建/编译它。你能检查一下你的系统是否安装了python3,它是默认的python吗?如果是这样,您可以尝试将Python2设置为默认的python,然后再试一次。请在邮件列表中询问,最近由于python3的迁移,几个相关问题得到了回答。也给你gem5版本。@CiroSantilli,谢谢。gem5版本不是最新版本。我正在使用来自的模拟器。我已经在同一台电脑上成功地构建/编译了它,我不知道我的系统上的哪些参数已经更改,我无法再次构建/编译它。你能检查一下你的系统是否安装了python3,它是默认的python吗?如果是这样,您可以尝试将Python2设置为默认python,然后再试一次。