我正在尝试在 Mac 上安装 yum。这就是我正在做的事情。
tar -xvzf yum-2.0.7.tar.gz
cd yum-2.0.7
./configure
make
sudo make install
最后一条命令sudo make install
运行出现以下错误:
make -C .. installdirs
./mkinstalldirs /usr/bin /etc /usr/share/yum /usr/man/man8 /usr/man/man5 /var/cache/yum/
/usr/bin/install -c -m 644 ../docs/yum.8 /usr/man/man8/yum.8
/usr/bin/install -c -m 644 ../docs/yum-arch.8 /usr/man/man8/yum-arch.8
/usr/bin/install -c -m 644 ../docs/yum.conf.5 /usr/man/man5/yum.conf.5
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
/usr/bin/install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make[1]: *** [install] Error 64
make: *** [install] Error 2
当我运行 yum 命令时,它说
File "/usr/bin/yum", line 22, in <module>
import yummain
File "/usr/share/yum/yummain.py", line 22, in <module>
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in <module>
import rpm
ImportError: No module named rpm
有人可以帮我修复这个问题吗?
多谢。