最好不必从源代码编译它。我尝试添加在 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
- 并行安装。