doxygen INSTALL 无法将文件“.../doxygen/build/bin/doxygen”复制到“/usr/local/bin/doxygen”

doxygen INSTALL cannot copy file ".../doxygen/build/bin/doxygen" to "/usr/local/bin/doxygen"

解决了一些问题后 while trying to get doxygen to work I stumbled upon the next error while following the doxygen install tutorial.
目前有效的方法:
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
sudo apt-get install flex(它丢失了所以我必须在 cmake 之前安装它)
sudo apt-get install bison(它丢失了所以我必须在 cmake 之前安装它)
cmake -G "Unix Makefiles" ..
make

但是在 make install 我得到以下错误:

test@test-VirtualBox:~/doxygen/build$ make install
[  1%] Built target md5
[ 19%] Built target qtools
[ 24%] Built target vhdlparser
[ 92%] Built target _doxygen
[ 98%] Built target doxycfg
[100%] Built target doxygen
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/doxygen
CMake Error at src/cmake_install.cmake:42 (file):
  file INSTALL cannot copy file "/home/test/doxygen/build/bin/doxygen" to
  "/usr/local/bin/doxygen".
Call Stack (most recent call first):
  cmake_install.cmake:40 (include)



Makefile:148: recipe for target 'install' failed
make: *** [install] Error 1

我可能需要执行哪些步骤才能消除此错误?

Edit I checked the two paths, the first one exists and the other one has following permissions:

test@test-VirtualBox:/usr/local$ ls -la
total 44
drwxr-xr-x 11 root root 4096 Apr  2 00:03 .
drwxr-xr-x 11 root root 4096 Feb 28 19:35 ..
drwxr-xr-x  2 root root 4096 Feb 28 19:25 bin

关于安装,如果权限不正确,请同时检查目标目录的权限(默认 /usr/local/bin): sudo make install