Hi Roger,

When I run sudo -s I get bash:  /home/myaccount/ : Permission denied but I get 
a root prompt on the terminal. I get a permission denied when I try to cd into 
anything deeper than /home/myaccount/

Yes the /home/ is an NFS mount as its common across all the vm's I'm assigned 
to but  there isn't an etc/exports file
In /proc/mount the mount details don't mention root_squash just that its nfs rw 
relatime vers3

Michael

________________________________________
From: CMake <cmake-boun...@cmake.org> on behalf of Roger Leigh 
<rle...@codelibre.net>
Sent: 05 June 2016 21:48
To: cmake@cmake.org
Subject: Re: [CMake] Make install permissions advice for ubuntu 14.04 with 
cmake 2.8

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
ITB Email Disclaimer This is a confidential communication and is intended only 
for the addressee indicated in the message (or duly authorised to be 
responsible for the delivery of the message to such person). You are 
specifically prohibited from copying this message or delivering the same, or 
any part thereof, to any other person, whomsoever or howsoever, unless you 
receive written authorisation from us to do. If you are anyone other than the 
intended addressee, or person duly authorised and responsible for the delivery 
of this message to the intended addressee, you should destroy this message and 
notify us immediately.
-- 

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

Reply via email to