下载安装“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.
想请问一下问题发生的原因和解决思路。