kakao / buffalo

TOROS Buffalo: A fast and scalable production-ready open source project for recommender systems
Apache License 2.0
575 stars 106 forks source link

tried setup.py build but execute install #9

Closed skyer9 closed 5 years ago

skyer9 commented 5 years ago

i tried build source code but cmake attempt to install.

python3 setup.py build
......
[ 75%] Building CXX object CMakeFiles/cbuffalo.dir/lib/algo_impl/w2v/w2v.cc.o
[ 87%] Building CXX object CMakeFiles/cbuffalo.dir/lib/misc/log.cc.o
[100%] Linking CXX shared library ../lib.linux-x86_64-3.6/libcbuffalo.so
[100%] Built target cbuffalo
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libcbuffalo.so.0.1.0
CMake Error at cmake_install.cmake:53 (file):
  file INSTALL cannot copy file
  "/home/skyer9/work/gitrepo/buffalo/build/lib.linux-x86_64-3.6/libcbuffalo.so.0.1.0"
  to "/usr/local/lib/libcbuffalo.so.0.1.0".

Makefile:117: recipe for target 'install' failed
make: *** [install] Error 1
error: command 'cmake' failed with exit status 2
ita9naiwa commented 5 years ago

It happend to me too. Copying .so file requires root permission.

oakkim commented 5 years ago

I've succeed after authorizing with 'sudo' but Is it the right solution to solve? I don't know much so..

ummae commented 5 years ago

Yes. Writing on /usr/local/lib requires root permission.