1. 程式人生 > >求教:在ubuntu18.4上安裝caffe(cpu)中出現

求教:在ubuntu18.4上安裝caffe(cpu)中出現

求教:在ubuntu18.4上安裝caffe(cpu)中出現

[email protected]:~/下載/apphome/caffe$ make all
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/local/lib/libpython2.7.a(posixmodule.o):在函式‘posix_tmpnam’中:
/home/ainslee/下載/apphome/Python-2.7.11/./Modules/posixmodule.c:7631: 警告: the use of tmpnam_r' is dangerous, better usemkstemp’
/usr/local/lib/libpython2.7.a(posixmodule.o):在函式‘posix_tempnam’中:
/home/ainslee/下載/apphome/Python-2.7.11/./Modules/posixmodule.c:7578: 警告: the use of tempnam' is dangerous, better use

mkstemp’
/usr/bin/ld: /usr/local/lib/libpython2.7.a(ceval.o): relocation R_X86_64_PC32 against symbol `PyFunction_Type’ can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最後的鏈結失敗: 錯誤的值
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target ‘.build_release/lib/libcaffe.so.1.0.0’ failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1