On 05/06/2016 17:01, B00083603 Michael O Brien wrote:
sudo make install
When I run sudo make install I get the error
/bin/sh: 1: cd: can't cd to
/home/michael.obrien/setups/OpenCV/opencv-2.4.13/build
make[2]: *** [3rdparty/libtiff/CMakeFiles/libtiff.dir/depend] Error 2
make[1]: *** [3rdparty/libtiff/CMakeFiles/libtiff.dir/all] Error 2
make: *** [all] Error 2
If I run the command make install the build will complete but I get an
error "CMake Error at cmake_install.cmake:36 (FILE): file cannot create
directory /usr/local/include/opencv2. Maybe need administrative privileges
So I'm confused as to how I can resolve this if sudo can't cd to the
folder but I need su(do) to create the directories
Any pointers on how to solve this would be very welcome.
Can you do this:
sudo -s
cd /home/michael.obrien/setups/OpenCV/opencv-2.4.13/build
That will check that root has permission to cd there. One thought for
why this might fail: is your homedir on NFS with root_squash enabled?
That might prevent root access. What are the permissions on this
directory, and its parents?
Regards,
Roger
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake