交叉編譯openssh出現錯誤Makefile:548: recipe for target 'install_sw' failed

交叉編譯openssh出現錯誤

將OpenSSH移植到ARM Linux,交叉編譯openssh時,在第二步編譯openssl時,make install出現如下錯誤:

cp: 'e_os2.h' and '/home/word/iTOP-4412-Linux-ssh/openssl-1.0.2l/include/openssl/e_os2.h' are the same file
Makefile:548: recipe for target 'install_sw' failed
make: *** [install_sw] Error 1

如下圖:

make insta 錯誤

這個錯誤主要是在配置文件時,將安裝目錄配置到了源碼目錄下:

$ cd ../openssl-1.0.1l
$ ./Configure --prefix=/home/veryarm/ssh/openssl.install  os/compiler:arm-none-linux-gnueabi-gcc
$ make
$ make install

也就是上面的/home/veryarm/ssh/openssl.install安裝目錄,不要填寫成 ../openssl-1.0.1l目錄,這樣ok了。

具體交叉編譯操作可參考OpenSSH移植到ARM Linux教程

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章