在移植过程中,编译错误提示:
checking consistency of all components of python development environment no
configure: error: in `/home/koben/project/openwrt21.02.0/build_dir/target-mipsel_24kc_musl/gensio-2.2.9':
configure: error:
Could not link test program to Python. Maybe the main Python library has been
installed in some non-standard library path. If so, pass it to configure,
via the LIBS environment variable.
Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
============================================================================
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
============================================================================
进一步查看config.log
/home/koben/project/openwrt21.02.0/staging_dir/hostpkg/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
试了网上有限的几个方法,都不行。
求解!
看中间
ERROR!
You probably have to install the development version of the Python package
for your distribution. The exact name of this package varies among them.
您可能必须安装Python包的开发版本
供您分发。这个包裹的确切名称因他们而异。
你试试安装python
发现是python匹配问题,需要32bit python。继续倒腾python中。