Linux/Tip2012. 10. 1. 06:54

If you happen to be following this tutorial (http://www.simplisticcomplexity.com/2006/8/13/apache-2-2-mod_proxy_balancer-mongrel-on-ubuntu-6-06) and you receive the following error message when compiling Apache 2.2.3 on Ubuntu Dapper Drake.


---------------->


/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libz.a: could not read symbols: Bad value


---------------->


Here is the solution; add this flag when configuring zlib: CFLAGS="-O3 -fPIC" ./configure


This helpful nugget worked for me, I hope it helps someone else.

Posted by 쿨한넘