我下载了 openvpn-2.3.7.zip 并将其解压到我的 /home 目录。
接下来我做了以下事情:
username@hostname:~$ sudo -i
[sudo] password for username:~$
(输入密码后我就进入了根目录,对吗?这意味着我有 root 权限来执行任何我想做的事情??)
root@hostname:~# apt-get install libssl-dev liblzo2-dev libpam0g-dev checkinstall build-essential -y
root@hostname:~# cd /home/username/openvpn-2.3.7
root@hostname:/home/username/openvpn-2.3.7# ./configure
(以下为消息列表)
root@hostname:/home/username/openvpn-2.3.7# make
(以下为消息列表)
root@hostname:/home/username/openvpn-2.3.7# checkinstall
我遇到了一些错误,不知道如何解决,希望得到您的帮助。
以下是日志:
Installing with make install...
========================= Installation results ===========================
make install-recursive
make[1]: Entering directory `/home/username/openvpn-2.3.7'
Making install in build
make[2]: Entering directory `/home/username/openvpn-2.3.7/build'
Making install in msvc
make[3]: Entering directory `/home/username/openvpn-2.3.7/build/msvc'
Making install in msvc-generate
make[4]: Entering directory `/home/username/openvpn-2.3.7/build/msvc/msvc-generate'
make[5]: Entering directory `/home/username/openvpn-2.3.7/build/msvc/msvc-generate'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/username/openvpn-2.3.7/build/msvc/msvc-generate'
make[4]: Leaving directory `/home/username/openvpn-2.3.7/build/msvc/msvc-generate'
make[4]: Entering directory `/home/username/openvpn-2.3.7/build/msvc'
make[5]: Entering directory `/home/username/openvpn-2.3.7/build/msvc'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/username/openvpn-2.3.7/build/msvc'
make[4]: Leaving directory `/home/username/openvpn-2.3.7/build/msvc'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/build/msvc'
make[3]: Entering directory `/home/username/openvpn-2.3.7/build'
make[4]: Entering directory `/home/username/openvpn-2.3.7/build'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/build'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/build'
make[2]: Leaving directory `/home/username/openvpn-2.3.7/build'
Making install in distro
make[2]: Entering directory `/home/username/openvpn-2.3.7/distro'
Making install in rpm
make[3]: Entering directory `/home/username/openvpn-2.3.7/distro/rpm'
make[4]: Entering directory `/home/username/openvpn-2.3.7/distro/rpm'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/distro/rpm'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/distro/rpm'
make[3]: Entering directory `/home/username/openvpn-2.3.7/distro'
make[4]: Entering directory `/home/username/openvpn-2.3.7/distro'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/distro'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/distro'
make[2]: Leaving directory `/home/username/openvpn-2.3.7/distro'
Making install in include
make[2]: Entering directory `/home/username/openvpn-2.3.7/include'
make[3]: Entering directory `/home/username/openvpn-2.3.7/include'
make[3]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 openvpn-plugin.h '/usr/local/include'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/include'
make[2]: Leaving directory `/home/username/openvpn-2.3.7/include'
Making install in src
make[2]: Entering directory `/home/username/openvpn-2.3.7/src'
Making install in compat
make[3]: Entering directory `/home/username/openvpn-2.3.7/src/compat'
make[4]: Entering directory `/home/username/openvpn-2.3.7/src/compat'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/src/compat'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/src/compat'
Making install in openvpn
make[3]: Entering directory `/home/username/openvpn-2.3.7/src/openvpn'
make[4]: Entering directory `/home/username/openvpn-2.3.7/src/openvpn'
/bin/mkdir -p '/usr/local/sbin'
/bin/bash ../../libtool --mode=install /usr/bin/install -c openvpn '/usr/local/sbin'
libtool: install: /usr/bin/install -c openvpn /usr/local/sbin/openvpn
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/src/openvpn'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/src/openvpn'
Making install in openvpnserv
make[3]: Entering directory `/home/username/openvpn-2.3.7/src/openvpnserv'
make[4]: Entering directory `/home/username/openvpn-2.3.7/src/openvpnserv'
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/home/username/openvpn-2.3.7/src/openvpnserv'
make[3]: Leaving directory `/home/username/openvpn-2.3.7/src/openvpnserv'
Making install in plugins
make[3]: Entering directory `/home/username/openvpn-2.3.7/src/plugins'
Making install in auth-pam
make[4]: Entering directory `/home/username/openvpn-2.3.7/src/plugins/auth-pam'
make[5]: Entering directory `/home/username/openvpn-2.3.7/src/plugins/auth-pam'
make[5]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/share/doc/openvpn'
/usr/bin/install -c -m 644 README.auth-pam '/usr/local/share/doc/openvpn'
/bin/mkdir -p '/usr/local/lib/openvpn/plugins'
/bin/mkdir: cannot create directory `/usr/local/lib/openvpn': No such file or directory
make[5]: *** [install-pluginLTLIBRARIES] Error 1
make[5]: Leaving directory `/home/username/openvpn-2.3.7/src/plugins/auth-pam'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/home/username/openvpn-2.3.7/src/plugins/auth-pam'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/username/openvpn-2.3.7/src/plugins'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/username/openvpn-2.3.7/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/username/openvpn-2.3.7'
make: *** [install] Error 2
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
答案1
此过程无法创建文件 /usr/local/lib/openvpn/plugins
/bin/mkdir -p '/usr/local/lib/openvpn/plugins'
因为文件 /usr/local/lib/openvpn 不存在
/bin/mkdir: cannot create directory `/usr/local/lib/openvpn': No such file or directory
像这样
sudo mkdir /usr/local/lib/openvpn
再试一次