当我使用make install
或sudo make install
时,我反复收到此错误:
file Internal CMake error when trying to open file:
project_dir/install_manifest.txt for writing.
如果我查看cmake_install.cmake文件,有问题的行总是在这里:
file(WRITE "project_dir/${CMAKE_INSTALL_MANIFEST}" "")
foreach(file ${CMAKE_INSTALL_MANIFEST_FILES})
file(APPEND "project_dir/${CMAKE_INSTALL_MANIFEST}" "${file}\n")
endforeach()
所以我猜问题是权限?但是我和sudo一起运行,所以我不明白这是怎么回事。