Permissions error while building from source code on Mac OSX

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Akhil Bheemreddy
Posts: 14
Joined: Wed Jul 26, 2017 9:41 am

Permissions error while building from source code on Mac OSX

Post by Akhil Bheemreddy » Sun Feb 04, 2018 11:14 pm

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

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

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

Post by Christopher Dembia » Mon Feb 05, 2018 12:47 pm

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.

POST REPLY