-bash: $'yum\302\240install\302\240libxml2': command not found
今天使用 yum 命令安装依赖包的时候遇到一个问题,在这里纪录一下
开始使用 yum 命令安装就报错如下
[root@Mike-VM-Node-172_31_225_214 ~]# yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel -y -bash: $'yum\302\240install\302\240libxml2': command not found [root@Mike-VM-Node-172_31_225_214 ~]#
-bash: $'yum\302\240install\302\240libxml2': command not found 提示未找到命令
博主分析了一下,应该是使用 yum 命令的时候格式有误可能多空格或者 --有问题
待我重新细心观察了一遍,重新执行 yum 命令
[root@Mike-VM-Node-172_31_225_214 ~]# yum install libxml2 libxml2-devel openssl openssl-devel bzip2 bzip2-devel -y Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Package libxml2-2.9.1-6.el7.4.x86_64 already installed and latest version Package libxml2-devel-2.9.1-6.el7.4.x86_64 already installed and latest version Package 1:openssl-1.0.2k-19.el7.x86_64 already installed and latest version Nothing to do [root@Mike-VM-Node-172_31_225_214 ~]#
可以看到已经执行成功~~
如果你们有遇到 -bash: $'yum\302\240install\302\240libxml2': command not found 这种错误,在 yum 命令注意一下空格格式就可以避免
本文分享完毕,感谢支持点赞~~