cmake - doxygen INSTALL 无法将文件 ".../doxygen/build/bin/doxygen"复制到 "/usr/local/bin/doxygen"

标签 cmake ubuntu-14.04 doxygen

解决了一些后initial problems在尝试让 doxygen 工作时,我在关注 doxygen install tutorial 时偶然发现了下一个错误。 .
到目前为止有效的方法:git clone https://github.com/doxygen/doxygen.gitcd doxygenmkdir buildcd buildsudo 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

关于cmake - doxygen INSTALL 无法将文件 ".../doxygen/build/bin/doxygen"复制到 "/usr/local/bin/doxygen",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50986430/

相关文章:

c++ - 检查工作 CXX 编译器 :/cygdrive/c/cygwin64/bin/clang++ -- broken

c - 在 Linux 上编译 OpenCL ICD 加载程序时出错

linux - Chef 生成菜谱

linux - 当我运行 make install 以使用 doxygen 进行设置时出现权限被拒绝错误

doxygen 调用/调用图

c++ - Clang 链接器说符号未定义

CMake & "PATH"变量

java - 如何将 tomcat 7 webapp 映射到我的域

java - Bash 脚本无法将 Java 程序作为 cron 作业运行

c++ - 未记录的功能不应在列表中可见/显示 - 仅为记录的实体发布文档