在Amazon-Linux-2023-系统中源码编译Python-3.12.10时-报错-找不到可选的模块-_uuid和nis
Posted on 2025-04-21 14:31 520_1351 阅读(177) 评论(0) 收藏 举报操作系统(Docker):Amazon Linux release 2023.7.20250331 (Amazon Linux)
Python版本:Python-3.12.10
编译时报如下错误:
The necessary bits to build these optional modules were not found: _uuid nis To find the necessary bits, look in configure.ac and config.log. Checked 111 modules (31 built-in, 77 shared, 1 n/a on linux-x86_64, 0 disabled, 2 missing, 0 failed on import)
关于_uuid 这个的模块,还比较好解决,只需要安装 libuuid-devel 即可
[root@qq-5201351 ~]# yum install libuuid-devel -y
然后可以重新编译就看到,缺少 _uuid 的信息了
但是nis,这个在Amazon Linux release 2023中,就不好解决了,因现在NIS使用很少很少了,忽略了也基本没有影响
在aws官网:https://docs.amazonaws.cn/en_us/linux/al2023/ug/deprecated-al2.html 中可以看到
Network Information Service (NIS) / yp The Network Information Service (NIS), originally called Yellow Pages or YP is deprecated in AL2, and no longer present in AL2023. This includes the following packages: ypbind, ypserv, and yp-tools. Other packages that integrate with NIS have this functionality removed in AL2023.
NIS 因安全性问题逐渐被 LDAP 等协议取代,若需更高安全性,也是建议迁移至 python-ldap 等库
尊重别人的劳动成果 转载请务必注明出处:https://www.cnblogs.com/5201351/p/18838510
作者:一名卑微的IT民工
出处:https://www.cnblogs.com/5201351
本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。
由于博主的水平不高,文章没有高度、深度和广度,只是凑字数,不足和错误之处在所难免,希望大家能够批评指出。
博主是利用读书、参考、引用、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个卑微的IT民工!
浙公网安备 33010602011771号