tar.zx解压与压缩
解压:
xz -d file.tar.xz
tar -xvf file.tar
第一步得到 file.tar 文件
第二步得到 file文件
压缩
tar cvf file.tar file
xz -z file.tar
error: command ‘gcc’ failed with exit status 1
在centos 7 上安装python 的包lxml,出现以下问题
error: command ‘gcc’ failed with exit status 1
解决方法:
输入命令
yum install libxslt-devel libxml2-devel
然后可以正常安装