1 基础知识
– pyxattr是Python的一个扩展模块
– pyxattr用于访问某些系统中可用的文件系统对象的扩展属性
2 最佳实践
2.1 系统环境
OS = RHEL 8
IP Addresses = any
Host Name = any
2.2 安装pyxattr
2.2.1 下载软件包
cd ~
wget https://pyxattr.k1024.org/downloads/pyxattr-0.6.1.tar.gz
2.2.2 安装下载的软件包
cd ~
pip3 install pyxattr-0.6.1.tar.gz
如果遇到以下错误提示,
unable to execute "gcc": No such file or directory
error: command "gcc" failed with exit status 1
可能需要安装如下依赖的软件包,
yum install -y gcc
如果遇到以下错误提示,
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
error: command "gcc" failed with exit status 1
可能需要安装如下依赖的软件包,
yum install -y redhat-rpm-config
如果遇到以下错误提示,
xattr.c:25:10: fatal error: attr/xattr.h: No such file or directory
#include
^~~~~~~~~~~~~~
compilation terminated.
error: command "gcc" failed with exit status 1
可能需要安装如下依赖的软件包,
yum install -y python36-devel
参阅文档
===================