天天看點

Ubuntu16.04下make all編譯caffe時recipe for target '.build_release/.linked' failed

Ubuntu16.04下make all編譯caffe時報錯

在github上clone下來的代碼在終端輸入$ make all

可能出現的錯誤如下:

ln: failed to create symbolic link ‘build’: Function not implemented

Makefile:556: recipe for target ‘.build_release/.linked’ failed

make: * [.build_release/.linked] Error 1

參考了kiwi的部落格的回答,原因可能是:caffe在編譯的時候,要用ln去建立一些軟連結。而我習慣将源碼解壓到共享盤(Ubuntu和windows都可通路)再編譯,連結過程可能會因為磁盤環境而造成不必要的困擾。

是以按kiwi的建議 ,作為新手對于下載下傳的源碼等(例如linux核心,yaffs,busybox等),不要在shared files 目錄下解壓,容易出現一些比較奇怪的問題,特别對于我們這些初學者,直接copy到linux其他未共享的目錄下解壓即可(比如Ubuntu下的documents等目錄)。

繼續閱讀