在ubuntu 14.04上安装gnu parallel工具


9

我正在尝试在本地ubuntu 14.04上安装GNU并行实用程序。我从这里下载了tar文件,在这里输入链接描述

版本是parallel-20140622.tar.bz2

将其下载到我的下载文件夹中,然后打开一个终端,然后将目录更改为下载,然后使用

tar -xjf parallel-20140622.tar.bz2 ; cd parallel-20140622; ./configure ; make;make install

但这给了我这个错误:

varun@varun-OptiPlex-760:~/Downloads/parallel-20140622$ make
make  all-recursive
make[1]: Entering directory `/home/varun/Downloads/parallel-20140622'
Making all in src
make[2]: Entering directory `/home/varun/Downloads/parallel-20140622/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/varun/Downloads/parallel-20140622/src'
make[2]: Entering directory `/home/varun/Downloads/parallel-20140622'
make[2]: Leaving directory `/home/varun/Downloads/parallel-20140622'
make[1]: Leaving directory `/home/varun/Downloads/parallel-20140622'
varun@varun-OptiPlex-760:~/Downloads/parallel-20140622$ make install
Making install in src
make[1]: Entering directory `/home/varun/Downloads/parallel-20140622/src'
make[2]: Entering directory `/home/varun/Downloads/parallel-20140622/src'
 /bin/mkdir -p '/usr/local/bin'
 /usr/bin/install -c parallel sem sql niceload '/usr/local/bin'
/usr/bin/install: cannot create regular file ‘/usr/local/bin/parallel’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/local/bin/sem’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/local/bin/sql’: Permission denied
/usr/bin/install: cannot create regular file ‘/usr/local/bin/niceload’: Permission denied
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/home/varun/Downloads/parallel-20140622/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/varun/Downloads/parallel-20140622/src'
make: *** [install-recursive] Error 1

如何解决这个问题?

谢谢

Answers:



16

您应该能够使用apt-get安装它。根据“ 我在哪里可以得到GNU Parallel的软件包? ”:

sudo apt-get install parallel

不过,在您的特定情况下,您将需要运行sudo make install而不是make install。或者,您需要为您的配置脚本指定一个新的根目录。


谢谢史蒂夫,那行得通;您能否确定我是否以发布方式安装问题,该怎么办?
user3138373 2015年

当然!更新了答案。
steventrouble

并行在17.04中似乎不可用
线圈
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.