<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Jason's Weblog: Compiling ht://Check on OS X</title>
  <id>tag:www.jasongarber.com,2005:Typo</id>
  <generator uri="http://www.typosphere.org" version="4.0">Typo</generator>
  <link href="http://www.jasongarber.com/xml/atom/article/68/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="http://www.jasongarber.com/articles/2007/06/01/compiling-ht-check-on-os-x" rel="alternate" type="text/html"/>
  <updated>2007-06-01T12:11:37-07:00</updated>
  <entry>
    <author>
      <name>Jason Garber</name>
    </author>
    <id>urn:uuid:73d14a49-9ed4-4534-9a81-bb4b6a8a50ee</id>
    <published>2007-06-01T11:56:00-07:00</published>
    <updated>2007-06-01T12:11:37-07:00</updated>
    <title type="html">Compiling ht://Check on OS X</title>
    <link href="http://www.jasongarber.com/articles/2007/06/01/compiling-ht-check-on-os-x" rel="alternate" type="text/html"/>
    <category term="os-x" scheme="http://www.jasongarber.com/articles/category/os-x" label="OS X"/>
    <summary type="html">In case you&amp;#8217;re trying to configure ht://Check on &lt;span class="caps"&gt;OS X&lt;/span&gt; and running into 
&lt;pre&gt;
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
  Referenced from: /usr/local/htcheck/lib/htcheck/libhtmysql-1.2.4.dylib
  Expected in: flat namespace

dyld: Symbol not found: _mysql_init
  Referenced from: /usr/local/htcheck/lib/htcheck/libhtmysql-1.2.4.dylib
  Expected in: flat namespace

Trace/BPT trap
&lt;/pre&gt;

or you&amp;#8217;re getting this when you try to &lt;code&gt;make&lt;/code&gt;
&lt;pre&gt;
/usr/bin/ld: Undefined symbols:
_compress
_uncompress
collect2: ld returned 1 exit status
&lt;/pre&gt;

Then compile like this:
&lt;pre&gt;
export EXTRA_LIBS='-lz'
./configure --prefix=/usr/local/htcheck --with-mysql=/usr/local/mysql --enable-static --disable-shared
make
sudo make install
&lt;/pre&gt;
..and you&amp;#8217;ll save yourself a few hours&amp;#8217; frustration.</summary>
    <content type="html">In case you&amp;#8217;re trying to configure ht://Check on &lt;span class="caps"&gt;OS X&lt;/span&gt; and running into 
&lt;pre&gt;
dyld: lazy symbol binding failed: Symbol not found: _mysql_init
  Referenced from: /usr/local/htcheck/lib/htcheck/libhtmysql-1.2.4.dylib
  Expected in: flat namespace

dyld: Symbol not found: _mysql_init
  Referenced from: /usr/local/htcheck/lib/htcheck/libhtmysql-1.2.4.dylib
  Expected in: flat namespace

Trace/BPT trap
&lt;/pre&gt;

or you&amp;#8217;re getting this when you try to &lt;code&gt;make&lt;/code&gt;
&lt;pre&gt;
/usr/bin/ld: Undefined symbols:
_compress
_uncompress
collect2: ld returned 1 exit status
&lt;/pre&gt;

Then compile like this:
&lt;pre&gt;
export EXTRA_LIBS='-lz'
./configure --prefix=/usr/local/htcheck --with-mysql=/usr/local/mysql --enable-static --disable-shared
make
sudo make install
&lt;/pre&gt;
..and you&amp;#8217;ll save yourself a few hours&amp;#8217; frustration.</content>
  </entry>
</feed>
