Contact me: hankecnc@gmail.com

如果 python2.7 在 Gentoo 中不是默认的,Linuxcnc 配置失败->错误:Python 版本太旧(需要 2.7 或更新版本) #226

推推 grbl 3年前 (2023-01-29) 363次浏览
关闭
Petross404 开启了这个问题 2017 年 1 月 29 日 · 1条评论

注释

如果 python2.7 在 Gentoo 中不是默认的,Linuxcnc 配置失败->错误:Python 版本太旧(需要 2.7 或更新版本) #226

$python -V Python 3.5.2
当我跑
./configure`` --with-realtime=uspace --enable-non-distributable=yes --with-boost-python=boost_python-2.7
checking python version... File "<string>", line 1 import sys;raise SystemExit,sys.hexversion<0x2070000 ^ SyntaxError: invalid syntax configure: error: Python version too old (2.7 or newer required)

如果我默认选择python2.7,配置完成没有错误。问题是我希望 portage 与 python3.5 一起工作,所以对于某些用户(包括我)来说,默认使用 python2.7 不是一个选项。

一切顺利

如果 python2.7 在 Gentoo 中不是默认的,Linuxcnc 配置失败->错误:Python 版本太旧(需要 2.7 或更新版本) #226
成员

LinuxCNC 需要 Python 2.7。它与 3.x 不兼容,并且没有人愿意承担移植工作。

尝试指定 –with-python=<path to python 2.7 interpreter> 进行配置;如果它坏了,那么这是我们想要解决的问题。