2013年5月5日 星期日

Linux出現cannot find -lz錯誤

在compiler Linux時,出現compiler錯誤
  1. 加入module後,出現compiler error。(如: 加入dropbear module)
  2. Error message :
    /opt/buildroot-gcc342/bin/../../../mipsel-linux-uclibc/bin/ld: cannot find -lz
    /media/Workspace/Projects/SDK_3_6_0_0/RT288x_SDK/source/user/dropbear-0.52'
    make[2]: *** [dropbear-0.52] Error 2
    [dropbear-0.52] Error 2 : Compiler dropbear-0.52 module error。
  3. mipsel-linux-uclibc/bin/ld: cannot find –lz : 此message表示無法找到“z” library。
    搜尋相關library,發現”zlib”這library,將其加入kernel,便可成功compiler。
  4. 相關缺少library(???)的情況也相同,會出現
    “mipsel-linux-uclibc/bin/ld: cannot find –l???” error message。

沒有留言:

張貼留言