本文介绍了未经root许可而并行安装GNU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑2

尝试并行运行后,当我同时运行parallel和源代码/homedtic/gsantamaria/parallel/bin/parallel时,在终端上都得到以下内容:

After trying to run parallel, I am getting the following on the terminal when I run both parallel and by the source /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").

注意:即使在上述输出之后,该进程仍在运行.

Note: the process is still running even after the above output.

编辑1 :

我的密码是/homedtic/gsantamaria/parallel-20100424并且我已运行

My pwd is /homedtic/gsantamaria/parallel-20100424 and I ran

  • ./configure --prefix=/homedtic/gsantamaria/parallel(请注意,我是并行创建文件夹的)
  • make
  • make install
  • ./configure --prefix=/homedtic/gsantamaria/parallel (note- I created the folder parallel)
  • make
  • make install

但是,毕竟,当我尝试运行parallel时,它显示为bash: parallel: command not found.

However, after everything, now when I try to run parallel it says bash: parallel: command not found.

作为参考,在我运行了3个命令之后,它为以下三个步骤分别提供了以下输出:

For reference, after I ran the 3 commands,it gave the following output for each of the three steps:

  1. 第1步:

/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
  1. 第2步:

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:
  1. 第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'


原始问题:

  1. ./configure
  2. 制作
  3. 进行安装

我已经成功完成了前2个步骤,但在第3个步骤(即make install)中,出现了以下错误:

I have successfully done the first 2 steps but in the 3rd step, that is make install, it gives the following error:

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时,找不到包含它的文件.

I wanted to change the instance of this path in all files that contain it to a path which can be accessed without sudo or root permissions. However, when I try grep, I find no files that contain it.

grep -r "/usr/local/bin/parallel" *

我现在该怎么办?或者,如何在没有root权限的情况下并行安装?

What can I do now? Or, how can I possibly install parallel without root permissions?

我尝试检查,但仍然没有帮助.

I tried checking this but still didn't help.

有什么建议吗?预先感谢!

Any suggestions?Thanks in advance!

推荐答案

./configure --prefix=<target>

这将使安装在<target>/bin<target>/lib等中;照常做make install.

This will make the installation in <target>/bin, <target>/lib etc.; just do the make install as usual.

选择一个有权访问的<target>(如果需要,可以在${HOME}中进行某些操作),然后将PATH调整为包含<target>/bin(也许将MANPATH包含为<target>/share/man),这样您就可以也可以访问手册页.

Choose a <target> you have access to (something in ${HOME} if need be), and adjust your PATH to include <target>/bin (and, perhaps, MANPATH to include <target>/share/man so you get access to the man pages as well).

这篇关于未经root许可而并行安装GNU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 09:36