configure always fails because it attempts to create direcory in a read-only location /usr/local/muq_external

Issue #28 closed
yurivict created an issue

Here https://bitbucket.org/mituq/muq2/src/7fafda2526fba9be8e915d9bbdfaed6141c2454d/cmake/finds/RequiredDependencySearch.cmake#lines-56 it has:

file(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/muq_external/)

that breaks.

Comments (2)

  1. Matthew Parno

    Hi @yurivict . I would suggest installing to a different directory by setting CMAKE_INSTALL_PREFIX when you call cmake. I typically pass -DCMAKE_INSTALL_PREFIX=~/Installations/ to cmake. The ~/Installations folder is where I install everything on my machine.

    If you want to install to /usr/local you’ll need to be root and run cmake/make/make install with sudo. It’s much safer (and easier to clean up later) if you install to a different folder.

  2. Log in to comment