Ask Your Question

problem with cmake during installation

asked 2013-08-18 13:02:58 -0500

deisman gravatar image

Having trouble getting installing opencv on ubuntu 12.0.4. The complication seems to be with cmake, but only shows at the very end of the installation, after it reads 100%. Any ideas?

Synaptic software manager says that cmake is installed, but opencv is not.

Blockquote [ 95%] Built target opencv_test_superres_pch_dephelp [ 96%] Built target pch_Generate_opencv_test_superres [ 96%] Built target opencv_test_superres [ 97%] Built target opencv_videostab_pch_dephelp [ 98%] Built target pch_Generate_opencv_videostab [ 99%] Built target opencv_videostab [ 99%] Built target opencv_haartraining_engine [ 99%] Built target opencv_createsamples [ 99%] Built target opencv_haartraining [ 99%] Built target opencv_performance [100%] Built target opencv_traincascade Install the project... -- Install configuration: "RELEASE" -- Up-to-date: /n/local/include/opencv2/opencv_modules.hpp CMake Error at cmake_install.cmake:36 (FILE): file INSTALL cannot set permissions on "/n/local/include/opencv2/opencv_modules.hpp" Blockquote

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-18 21:56:09 -0500

if you performe make install you should probably be root (or set an install directory in your home) otherwise you don't have right to copy files in the system. You could use sudo instead of being root, but compile your libraries as a regular user! Try this:

sudo make install
edit flag offensive delete link more


This is a great answer indeed. Thanks Mathieu Barnachon for saving me.

Waleed El-Badry gravatar imageWaleed El-Badry ( 2018-01-03 00:35:51 -0500 )edit

Question Tools


Asked: 2013-08-18 13:02:58 -0500

Seen: 3,162 times

Last updated: Aug 18 '13