1. 程式人生 > >交叉編譯openssh出現錯誤Makefile:548: recipe for target 'install_sw' failed

交叉編譯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了。