最好不必從原始碼編譯它。我嘗試添加在 Google 上找到的存儲庫:作業系統6和CentOS 5,但兩者都給了我:
[ec2-user@ip-10-0-1-202 yum.repos.d]$ sudo yum install parallel -y
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/2016.03 | 2.1 kB 00:00
amzn-updates/2016.03 | 2.3 kB 00:00
952 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package parallel.noarch 0:20160522-1.1 will be installed
--> Processing Dependency: /usr/bin/fish for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /usr/bin/ksh for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /usr/bin/zsh for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /bin/pdksh for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /usr/bin/ksh for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /usr/bin/zsh for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /usr/bin/fish for package: parallel-20160522-1.1.noarch
--> Processing Dependency: /bin/pdksh for package: parallel-20160522-1.1.noarch
--> Finished Dependency Resolution
Error: Package: parallel-20160522-1.1.noarch (home_tange)
Requires: /bin/pdksh
Error: Package: parallel-20160522-1.1.noarch (home_tange)
Requires: /usr/bin/fish
Error: Package: parallel-20160522-1.1.noarch (home_tange)
Requires: /usr/bin/zsh
Error: Package: parallel-20160522-1.1.noarch (home_tange)
Requires: /usr/bin/ksh
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
答案1
如果按照官方安裝說明進行操作,安裝可以在 10 秒內完成:
答案2
如果您正在尋找目前 Amazon Linux 版本的答案,EPEL 儲存庫中提供了平行功能。
以下是如何啟用/安裝 EPEL 儲存庫的資訊:https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
完成後安裝 GNU 與sudo yum instal parallel
.
答案3
我在 pdksh 上遇到了同樣的問題,但能夠解決它。我能夠在沒有 pdksh 的情況下安裝 GNU 並行,因此沒有任何錯誤,方法是:
- 正在下載rpmforge
- rpm 安裝 rpmforge
- 並行安裝。