make:python2.5config:在Tiny上找不到命令错误

2024-06-17 12:20:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我目前正在使用Windows7和Cygwin和TinyOS。我试着用TOSSIM运行Blink应用程序。但是,我一直收到以下错误:

$make micaz sim
mkdir -p simbuild/micaz
make: python2.5-config: Command not found
make: python2.5-config: Command not found
make: python2.5-config: Command not found

我查了几个建议在'模拟额外'sim卡','-额外平方英尺“和”sim卡-快速。额外'文件并添加CFLAGS line+=-I/usr/include/python2.5 in'模拟额外'. 我目前使用的python版本是2.5.1。我将这些文件中的PYTHON_版本更改为2.5,并添加了CFLAGS行。然后,我又试了一次,结果还是一次又一次地犯同样的错误。有人能帮我吗?谢谢您。:)


Tags: 文件版本configmake错误notsimcommand
1条回答
网友
1楼 · 发布于 2024-06-17 12:20:03

这个问题已经在这个网站上解释过:https://www.blogkafem.net/2017/09/tinyos-python-config-ve-pythonh-sorunu.html

但是,我这个网站不是英文的。所以,我将试着为你简单地翻译解决方案。在

安装python版本:2.7

sudo apt-get install python-dev
sudo apt-get install python-gevent

然后,您应该从TinyOS配置更新python path: (你应该关心最后一行)

^{pr2}$

最后,开放给“模拟额外“文件。如果您使用linux,可以编写以下命令:“模拟额外““

并且,更新PYTHON版本行,如下所示:

PYTHON_VERSION ?= $(shell python  version 3>&1 | sed 's/Python 2\.\([0-9]\)\.[0-9]+\{0,1\}/2.\1/')

相关问题 更多 >