我正在尝试在我不是root 的远程服务器上安装 GNU 并行。我下载了它,目前目录是这样的:
aclocal.m4 config.h.in COPYING install-sh missing src
cc-by-sa.txt configure CREDITS Makefile.am NEWS
CITATION configure.ac fdl.txt Makefile.in README
当我使用命令./configure时,我得到了这个:
checking for a BSD-compatible install... /usr/bin/install -c
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
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
当我输入 ls 时,目录现在看起来像这样:
aclocal.m4 config.h config.status COPYING ile Makefile.in README
cc-by-sa.txt config.h.in configure CREDITS install-sh missing src
CITATION config.log configure.ac fdl.txt Makefile.am NEWS stamp-h1
当我使用命令make我得到这个:
make: *** No targets specified and no makefile found. Stop.
我该如何解决?
编辑:
我已经尝试了下面列出的几个建议的答案,这就是我现在所处的位置:
~/parallel-20190822/src$ make
make: Nothing to be done for 'all'.
~/parallel-20190822/src$ make install
make[1]: Entering directory '/home/olachhab/parallel-20190822/src'
/bin/mkdir -p '/home/olachhab/bin'
/usr/bin/install -c parallel sql niceload parcat parset env_parallel env_parallel.ash env_parallel.bash env_parallel.csh env_parallel.dash env_parallel.fish env_parallel.ksh env_parallel.mksh env_parallel.pdksh env_parallel.sh env_parallel.tcsh env_parallel.zsh '/home/olachhab/bin'
make install-exec-hook
make[2]: Entering directory '/home/olachhab/parallel-20190822/src'
rm /home/olachhab/bin/sem || true
ln -s parallel /home/olachhab/bin/sem
make[2]: Leaving directory '/home/olachhab/parallel-20190822/src'
/bin/mkdir -p '/home/olachhab/share/doc/parallel'
/usr/bin/install -c -m 644 parallel.html env_parallel.html sem.html sql.html niceload.html parallel_tutorial.html parallel_book.html parallel_design.html parallel_alternatives.html parcat.html parset.html parallel.texi env_parallel.texi sem.texi sql.texi niceload.texi parallel_tutorial.texi parallel_book.texi parallel_design.texi parallel_alternatives.texi parcat.texi parset.texi parallel.pdf env_parallel.pdf sem.pdf sql.pdf niceload.pdf parallel_tutorial.pdf parallel_book.pdf parallel_design.pdf parallel_alternatives.pdf parcat.pdf parset.pdf parallel_cheat.pdf '/home/olachhab/share/doc/parallel'
/bin/mkdir -p '/home/olachhab/share/man/man1'
/usr/bin/install -c -m 644 parallel.1 env_parallel.1 sem.1 sql.1 niceload.1 parcat.1 parset.1 '/home/olachhab/share/man/man1'
/bin/mkdir -p '/home/olachhab/share/man/man7'
/usr/bin/install -c -m 644 parallel_tutorial.7 parallel_book.7 parallel_design.7 parallel_alternatives.7 '/home/olachhab/share/man/man7'
make[1]: Leaving directory '/home/olachhab/parallel-20190822/src'
在这个链接 [ http://git.savannah.gnu.org/cgit/parallel.git/tree/README][1]我按照完整安装到这里,我测试了他们建议的方式:使用这个命令:
parallel -j0 ping -nc 3 ::: qubes-os.org gnu.org freenetproject.org
这就是我得到的:
Command 'parallel' not found, but can be installed with:
apt install moreutils
apt install parallel
Ask your administrator to install one of them.