doxygen INSTALL无法复制文件“ ... / doxygen / build / bin / doxygen”。到“ / usr / local / bin / doxygen”; [英] doxygen INSTALL cannot copy file ".../doxygen/build/bin/doxygen" to "/usr/local/bin/doxygen"

查看:141
本文介绍了doxygen INSTALL无法复制文件“ ... / doxygen / build / bin / doxygen”。到“ / usr / local / bin / doxygen”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在解决了一些初始问题后,尝试使doxygen起作用时,我在遵循 doxygen安装教程。

到目前为止有效:

git克隆https://github.com/doxygen/doxygen.git

cd doxygen

mkdir版本

cd版本

sudo apt-get install flex (它丢失了,所以我不得不在 cmake 之前安装它)

sudo apt-get install bison (它丢失了,所以我必须在 cmake 之前安装它)< br>
cmake -G Unix Makefiles ..

make

After solving some initial problems while trying to get doxygen to work I stumbled upon the next error while following the doxygen install tutorial.
What worked so far:
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
sudo apt-get install flex (it was missing so I had to install it before cmake)
sudo apt-get install bison(it was missing so I had to install it before cmake)
cmake -G "Unix Makefiles" ..
make

但随后在进行安装时出现以下错误:

But then on make install I get following error:

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
我检查了两条路径,第一个存在,并且另一个具有以下权限:

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

Regarding the installation, check also the permissions of the destination directory (default /usr/local/bin) when not the right permissions use: sudo make install

这篇关于doxygen INSTALL无法复制文件“ ... / doxygen / build / bin / doxygen”。到“ / usr / local / bin / doxygen”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆