Problem:
<code>/usr/bin/ld: cannot find -lz</code>
Solution:
<code>yum install zlib-static</code>
<code>/usr/bin/ld: cannot find -lpthread</code>
<code>yum install glibc-static</code>
<code>/usr/bin/ld: cannot find -lstdc++</code>
<code>yum install libstdc++-static</code>
If you are using RHEL7, these are in the rhel-x86_64-server-optional-7 channel.
本文转自aaron428 51CTO博客,原文链接:http://blog.51cto.com/aaronsa/1908454,如需转载请自行联系原作者