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

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日

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效