linux – 在没有root权限的情况下安装GNU parallel
作者:互联网
编辑2
尝试并行运行后,当我运行并行和源/ 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:
我的pwd是/ homedtic / gsantamaria / parallel-20100424,我跑了
> ./configure –prefix = / homedtic / gsantamaria / parallel(注意 – 我创建了并行文件夹)
>制作
> make install
但是,在所有事情之后,现在当我尝试并行运行时,它说bash:parallel:命令未找到.
作为参考,在我运行3个命令后,它为以下三个步骤中的每个步骤提供了以下输出:
>第1步:
/配置:
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
>第2步:
使
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:
>第3步:
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'
原始问题:
> ./configure
>制作
> make 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 "/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:无法创建常规文件/usr/local/bin / parallel’:权限被拒绝
我想在包含它的所有文件中将此路径的实例更改为可以在没有sudo或root权限的情况下访问的路径.但是,当我尝试grep时,我找不到包含它的文件.
grep -r "/usr/local/bin/parallel" *
我现在能做什么?或者,如何在没有root权限的情况下安装并行?
我试过检查this,但仍然没有帮助.
有什么建议?
提前致谢!
解决方法:
./configure --prefix=<target>
这将使安装在< target> / bin,< target> / lib等;像往常一样做make install.
选择< target>您可以访问(如果需要,可以使用${HOME}中的内容),并调整您的PATH以包含< target> / bin(也许,MANPATH包含< target> / share / man,以便您可以访问手册页).
标签:bash,linux,parallel-processing,unix,gnu-parallel 来源: https://codeday.me/bug/20190724/1527082.html