- This topic has 3 replies, 2 voices, and was last updated 2 years, 11 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › [SOLVED] Install wants administrative privileges
Tagged: GCC, Linux_ubuntu, SOFA_other
Hi,
I am trying to build sofa (v21.12) with the following setup on Ubuntu 20.04:
FOLDER_SRC=$HOME/sofa/src
FOLDER_TARGET=$HOME/sofa/build
FOLDER_INSTALL=$HOME/sofa/build/install
PYTHON_PKG_PATH=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
PYTHON_EXE=$(which python3)
PYTHON_ROOT_DIR=$CONDA_PREFIX
cmake -Wno-dev \
-S $FOLDER_SRC -B $FOLDER_TARGET \
-DCMAKE_INSTALL_PREFIX=$FOLDER_INSTALL \
-DCMAKE_BUILD_TYPE=Release \
-DSOFA_FETCH_SOFAPYTHON3=ON \
-DPLUGIN_SOFAPYTHON3=ON \
-DPython_EXECUTABLE=$PYTHON_EXE \
-DPython_ROOT_DIR=$PYTHON_ROOT_DIR \
-DSP3_LINK_TO_USER_SITE=ON \
-DSP3_PYTHON_PACKAGES_LINK_DIRECTORY=$PYTHON_PKG_PATH
cmake --build $FOLDER_TARGET -j --target install
cmake and build are fine, but the install wants to write outside of home.
[100%] Built target Bindings.SofaGui
[100%] Built target runSofa
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:41 (file):
file cannot create directory: /lib/cmake/Modules. Maybe need
administrative privileges.
make: *** [Makefile:86: install] Error 1
Any ideas and tips are welcome! š
Cheers,
Paul
Hey @scheikl
Did you solved your issue? It sounds more a right issue on your machine.
Was it? you are trying to install SOFA in a repo where you are not allowed to write (/lib/
)
You should be able to define the install dir yourself.
Let me know if this helps.
Best wishes,
Hugo
and a happy new and healthy year to you Paul!
Hi Hugo,
a happy new year to you too! š
For some reason the issue was solved by the universal solution: reboot
I still have no idea why the error occurred in the first place or why it did not persist.
I did not rerun cmake.
Cheers,
Paul
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.