Openssh 安装问题

Openssh 安装问题

我是 Ubuntu 新手,我想open-ssh从源代码安装。当我输入make和时make install,出现以下错误:

pc@pc~/Desktop/openssh-7.6p1$ make**
(cd openbsd-compat && make)
make[1]: Entering directory '/home/pc/Desktop/openssh-7.6p1/openbsd-compat'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pc/Desktop/openssh-7.6p1/openbsd-compat'

pc@pc:~/Desktop/openssh-7.6p1$ make install
(cd openbsd-compat && make)
make[1]: Entering directory '/home/pc/Desktop/openssh-7.6p1/openbsd-compat'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pc/Desktop/openssh-7.6p1/openbsd-compat'
./mkinstalldirs /usr/local/bin
make: execvp: ./mkinstalldirs: Permission denied
Makefile:313: recipe for target 'install-files' failed
make: *** [install-files] Error 127

我应该怎样修复此问题?

答案1

首先,我不确定您是否真的想open-ssh从源代码构建。

除此之外,它非常简单

./mkinstalldirs /usr/local/bin
make: execvp: ./mkinstalldirs: Permission denied

告诉您,您没有足够的权限来更改/usr/local/bin

你要么必须获得这些特权,例如sudo

sudo make install

或者你将软件的安装路径更改为具有适当权限的路径,例如

./configure --prefix=/home/user/locally_build

(显然要替换路径)然后make重复make install

相关内容