博客园  :: 首页  :: 管理

操作系统(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