yahoojapan / NGT

Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data
Apache License 2.0
1.24k stars 114 forks source link

cmake error #29

Closed MrHwc closed 5 years ago

MrHwc commented 5 years ago

I executed the following command: $ unzip NGT-x.x.x.zip $ cd NGT-x.x.x $ mkdir build $ cd build $ cmake .. $ make $ make install $ ldconfig /usr/local/lib when execute "make",an warning is reported: /NGT-1.7.7/lib/NGT/MmapManager.cpp:367:15: warning: ignoring return value of ‘char strerror_r(int, char, size_t)’, declared with attribute warn_unused_result [-Wunused-result] strerror_r(err_num, err_msg, 256);



when execute "make install",an error is reported:
CMake Error at lib/NGT/cmake_install.cmake:41 (file):
  file INSTALL cannot copy file
  "/home/che/NGT-1.7.7/build/lib/NGT/libngt.so.1.7.7" to
  "/usr/local/lib/libngt.so.1.7.7".
Call Stack (most recent call first):
  lib/cmake_install.cmake:42 (include)
  cmake_install.cmake:42 (include)

Makefile:73: recipe for target 'install' failed
make: *** [install] Error 1
MrHwc commented 5 years ago

Execution “sudo make install” can be solved.