Tangram5 2022-04-27 12:57 采纳率: 100%
浏览 677
已结题

cmake 安装第三方库时遇到 Operation not permitted 相关问题

下载安装“complex_bessel”库时候遇到的问题。
以下是安装步骤。

The library uses CMake for compilation. The user should thus install CMake
on their machine. On Ubuntu and other Debian-based OSes, this can be done
by running

sudo apt-get install cmake

On Arch Linux

sudo pacman -S cmake

The user should then run

bash build.sh

which will create a build/ directory and run make automatically. When
you are ready to install the files, just run

cd build
sudo make install

The library will be installed to /usr by default.

在最后一步遇到问题如下。

ushiushi@MacBook-Pro build % sudo make install
Password:
[100%] Built target complex_bessel
Install the project.
-- Install configuration: ""
-- Installing: /usr/lib/libcomplex_bessel.0.6.0.dylib
CMake Error at cmake_install.cmake:41 (file):
file INSTALL cannot copy file
"/Users/ushiushi/Study/complex_bessel-release-0.6/build/libcomplex_bessel.0.6.0.dylib"
to "/usr/lib/libcomplex_bessel.0.6.0.dylib": Operation not permitted.

想请问一下问题发生的原因和解决思路。

  • 写回答

3条回答 默认 最新

查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 5月10日
  • 已采纳回答 5月2日
  • 赞助了问题酬金10元 4月27日
  • 创建了问题 4月27日