Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File INSTALL cannot set permissions on libippicv

Tags:

linux

opencv

I am attempting to install OpenCV on Ubuntu. When running

sudo cmake -DWITH_IPP=ON . && make -j $(nproc) && make install

I get the error:

Install the project...
-- Install configuration: "RELEASE"
-- Up-to-date: /usr/local/share/OpenCV/3rdparty/lib/libippicv.a
CMake Error at cmake_install.cmake:36 (FILE):
file INSTALL cannot set permissions on
"/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"

Whats going wrong and how can I fix this problem?

like image 227
sazr Avatar asked Feb 26 '26 03:02

sazr


1 Answers

The sudo only applies to the first command out of the three. Really, you only want to run the install step as root, so put sudo on the third command instead.

like image 168
Daniel Schepler Avatar answered Feb 28 '26 17:02

Daniel Schepler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!