memgraph / mgconsole

mgconsole is a command-line interface (CLI) used to interact with Memgraph from any terminal or operating system.
GNU General Public License v3.0
44 stars 8 forks source link

Mgconsole installation is not working on MAC #39

Open Josipmrden opened 2 years ago

Josipmrden commented 2 years ago

When following the instructions, I had to set additional parameter in CMake -DCMAKE_INSTALL_PREFIX=/usr/local/ in order for the command make install to complete. Otherwise, an error:

CMake Error at src/cmake_install.cmake:41 (file):
  file INSTALL cannot copy file
  "/Users/memgraph/Memgraph-Repos/mgconsole/build/src/mgconsole" to
  "/usr/bin/mgconsole": Operation not permitted.
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)

would occur.

gitbuda commented 2 years ago

I think this is valid, probably the correct flag should be defined in the CMakeLists or docs pages have to be updated, but since there is the binary on the web, this issue doesn't have a huge priority 😄

gitbuda commented 2 years ago

Additional thing is to make clang the preferred compiler because the linker flags depend on it.