Page 1 of 1

Permissions error while building from source code on Mac OSX

Posted: Sun Feb 04, 2018 11:14 pm
by abheemreddy
Hello,

I am attempting to use the source code to build open sim on Mac OSX Sierra with Xcode 9.2 installed. I have been following the documentation for building using source code on mac, and I am on the final step, the install. I have managed to build the ALL_BUILD and the RUN_TESTS_PARALLEL schemes without error. However, when I attempt to build the INSTALL scheme, the build fails due to a permission error.

CMake Error at cmake_install.cmake:84 (file):
file INSTALL cannot make directory "/usr/local/./libexec/simbody":
Permission denied

make: *** [install_buildpart_0] Error 1

Within the listed directory, I have provided permissions for all possible users, but I am still unable to build INSTALL. Is anyone aware of a solution to this problem?

Thank you

Re: Permissions error while building from source code on Mac OSX

Posted: Mon Feb 05, 2018 12:47 pm
by chrisdembia
I suggest you choose a different CMAKE_INSTALL_PREFIX in CMake. Currently, your CMAKE_INSTALL_PREFIX seems to be `/usr/local`. I typically use a directory in my user folder (/Users/chris), especially because I usually have multiple copies of Simbody floating around.