Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法安装成功 #51

Closed
zhang19 opened this issue Mar 7, 2018 · 1 comment
Closed

无法安装成功 #51

zhang19 opened this issue Mar 7, 2018 · 1 comment

Comments

@zhang19
Copy link

zhang19 commented Mar 7, 2018

系统ubuntu 17,执行sh build.sh后报错如下:
python/cpp/familia_wrapper.cpp:517:1: warning: missing initializer for member ‘PyModuleDef::m_traverse’ [-Wmissing-field-initializers]
python/cpp/familia_wrapper.cpp:517:1: warning: missing initializer for member ‘PyModuleDef::m_clear’ [-Wmissing-field-initializers]
python/cpp/familia_wrapper.cpp:517:1: warning: missing initializer for member ‘PyModuleDef::m_free’ [-Wmissing-field-initializers]
g++ -I./include/ -I./include/familia -I./third_party/include -I/usr/include/python3.6 -pipe -W -Wall -fPIC -std=c++11 -fno-omit-frame-pointer -fpermissive -O3 -ffast-math -shared python/cpp/familia_wrapper.o -L/home/zyb/dev/Familia/Familia/third_party/lib -L/usr/lib -L./build/ -lfamilia -lprotobuf -lglog -lgflags -lpython3.6 -o python/demo/familia.so
/usr/bin/ld: 找不到 -lpython3.6
collect2: error: ld returned 1 exit status
Makefile:106: recipe for target 'python/demo/familia.so' failed
make: *** [python/demo/familia.so] Error 1

请教下怎么解决?谢谢

@lianrzh
Copy link
Collaborator

lianrzh commented Apr 3, 2018

@zhang19 python路径没设置正确,需要根据你本地的python路径进行重新指定。

@lianrzh lianrzh closed this as completed Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants