编辑2
尝试并行运行后,当我同时运行parallel
和来源/homedtic/gsantamaria/parallel/bin/parallel
时,终端上会收到以下内容:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_PAPER = "en_GB.UTF-8",
LC_ADDRESS = "en_GB.UTF-8",
LC_MONETARY = "en_GB.UTF-8",
LC_NUMERIC = "en_GB.UTF-8",
LC_TELEPHONE = "en_GB.UTF-8",
LC_IDENTIFICATION = "en_GB.UTF-8",
LC_MEASUREMENT = "en_GB.UTF-8",
LC_TIME = "en_GB.UTF-8",
LC_NAME = "en_GB.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
注意:即使在上述输出之后,该过程仍在运行。
编辑1 :
我的密码是/homedtic/gsantamaria/parallel-20100424
,我跑了
./configure --prefix=/homedtic/gsantamaria/parallel
(注意 - 我创建了并行文件夹)make
make install
但是,在完成所有操作后,现在当我尝试运行parallel
时,它会显示bash: parallel: command not found
。
作为参考,在我运行3个命令后,它为以下三个步骤中的每个步骤提供了以下输出:
/configure:
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
make
make all-recursive
make[1]: Entering directory `/homedtic/gsantamaria/parallel-20100424'
Making all in src
make[2]: Entering directory `/homedtic/gsantamaria/parallel-20100424/src'
pod2man --release='20100424' --center='parallel' \
--section=1 ./parallel > ./parallel.1
make[2]: Leaving directory `/homedtic/gsantamaria/parallel-20100424/src'
make[2]: Entering directory `/homedtic/gsantamaria/parallel-20100424'
make[2]: Leaving directory `/homedtic/gsantamaria/parallel-20100424'
make[1]: Leaving directory `/homedtic/gsantamaria/parallel-20100424'
I am trying to install GNU's parallel on a server where I don't have access to sudo. I downloaded parallel , used SCP to transfer from local to server, and as per read me I have to do three steps to install:
make install
Making install in src
make[1]: Entering directory `/homedtic/gsantamaria/parallel-20100424/src'
make[2]: Entering directory `/homedtic/gsantamaria/parallel-20100424/src'
test -z "/homedtic/gsantamaria/parallel/bin" || /bin/mkdir -p "/homedtic/gsantamaria/parallel/bin"
/usr/bin/install -c parallel '/homedtic/gsantamaria/parallel/bin'
test -z "/homedtic/gsantamaria/parallel/share/man/man1" || /bin/mkdir -p "/homedtic/gsantamaria/parallel/share/man/man1"
/usr/bin/install -c -m 644 parallel.1 '/homedtic/gsantamaria/parallel/share/man/man1'
make[2]: Leaving directory `/homedtic/gsantamaria/parallel-20100424/src'
make[1]: Leaving directory `/homedtic/gsantamaria/parallel-20100424/src'
make[1]: Entering directory `/homedtic/gsantamaria/parallel-20100424'
make[2]: Entering directory `/homedtic/gsantamaria/parallel-20100424'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/homedtic/gsantamaria/parallel-20100424'
make[1]: Leaving directory `/homedtic/gsantamaria/parallel-20100424'
原始问题:
我已成功完成前两个步骤,但在第三步中,即make install
,它会出现以下错误:
making install in src
make[1]: Entering directory `/homedtic/gsantamaria/parallel-20100424/src'
make[2]: Entering directory `/homedtic/gsantamaria/parallel-20100424/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c parallel '/usr/local/bin'
/usr/bin/install: cannot create regular file `/usr/local/bin/parallel': Permission denied
make[2]: *** [install-binSCRIPTS] Error 1
make[2]: Leaving directory `/homedtic/gsantamaria/parallel-20100424/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/homedtic/gsantamaria/parallel-20100424/src'
make: *** [install-recursive] Error 1
我认为主线是
/usr/bin/install: cannot create regular file /usr/local/bin/parallel': Permission denied
我想在包含它的所有文件中将此路径的实例更改为可以在没有sudo或root权限的情况下访问的路径。但是,当我尝试grep时,我找不到包含它的文件。
grep -r "/usr/local/bin/parallel" *
我现在能做什么?或者,如何在没有root权限的情况下安装并行?
我尝试检查this,但仍然没有帮助。
有什么建议吗? 提前谢谢!
答案 0 :(得分:5)
./configure --prefix=<target>
这将安装在<target>/bin
,<target>/lib
等;就像往常一样make install
。
选择您有权访问的<target>
(${HOME}
中的内容,如果需要),并调整PATH
以包含<target>/bin
(或许,{{1}包含MANPATH
以便您也可以访问手册页。
答案 1 :(得分:3)
您可以考虑使用linuxbrew(http://linuxbrew.sh)
brew install parallel
答案 2 :(得分:1)
脚本 http://git.savannah.gnu.org/cgit/parallel.git/tree/10seconds_install首先尝试安装需要root;然后是个人安装,如果也失败了:最小的安装。
它可能只对您有用,如果没有,那么它可能会起到启发作用。
答案 3 :(得分:0)
答案 4 :(得分:0)
如果你有conda,conda install parallel
也是一个单行解决方案。