Forum Discussion
Altera_Forum
Honored Contributor
19 years agocannot find -lz
When i compile the uClinux kernel, I met an error shown as below:
/opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/bin/ld.real: cannot find -lz collect2: ld returned 1 exit status make[4]: *** [boa] 错误 1 make[4]: Leaving directory `/home/eagle/software/uClinux-dist/user/boa/src' make[3]: *** [all] 错误 2 make[3]: Leaving directory `/home/eagle/software/uClinux-dist/user/boa' make[2]: *** [boa] 错误 2 make[2]: Leaving directory `/home/eagle/software/uClinux-dist/user' make[1]: *** [all] 错误 2 make[1]: Leaving directory `/home/eagle/software/uClinux-dist/user' make: *** [subdirs] 错误 1 What should i do now?2 Replies
- Altera_Forum
Honored Contributor
Sorry, it was my mistake.
Please update to nios2 patch ver 27. ( you need to Reverse old patch first !) Or install nios2libs.tar.bz2, which has zlib in it. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@Jan 7 2007, 09:55 PM sorry, it was my mistake.please update to nios2 patch ver 27. ( you need to reverse old patch first !)
or install nios2libs.tar.bz2, which has zlib in it.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20412)
--- quote end ---
--- Quote End --- now it's ok! I have used v27