title: Not found z library when compiling zabbix-server
body: <p>I have a problem with compiling zabbix-server on CentOS 6.2.
  Command line is: </p>
  
  <pre><code>./configure --enable-server --with-mysql --with-net-snmp --with-libcurl 
  --with-jabber --with-ssh2 --with-openipmi --with-ldap --enable-static
  </code></pre>
  
  <p>But error occures:</p>
  
  <pre><code>checking for main in -lz... no
  configure: error: Not found z library;
  </code></pre>
  
  <p>Full configure output is here:  <a href="http://pastebin.ru/WmDP7UL0" rel="nofollow">http://pastebin.ru/WmDP7UL0</a></p>
  
  <p>I already tried to do:</p>
  
  <pre><code>yum install zlib zlib-devel zlib-static zlibrary zlibrary-devel
  </code></pre>
  
  <p>But it was unsuccessfully. </p>
  
  <p>Thank you for your attention.</p>
  
  <p>UPD. Config log posted here: <a href="http://pastebin.ru/WNtQu9eR" rel="nofollow">http://pastebin.ru/WNtQu9eR</a> and shows this error:</p>
  
  <pre><code>configure:7366: checking for main in -lz
  configure:7385: gcc -o conftest -g -O2  -rdynamic  -static conftest.c -lz  -lm -lrt  -lresolv &gt;&amp;5
  /usr/bin/ld: cannot find -lm
  collect2: ld returned 1 exit status
  </code></pre>