Compiling ht://Check on OS X

Posted by Jason Garber Fri, 01 Jun 2007 18:56:00 GMT

In case you’re trying to configure ht://Check on OS X and running into
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
or you’re getting this when you try to make
/usr/bin/ld: Undefined symbols:
_compress
_uncompress
collect2: ld returned 1 exit status
Then compile like this:
export EXTRA_LIBS='-lz'
./configure --prefix=/usr/local/htcheck --with-mysql=/usr/local/mysql --enable-static --disable-shared
make
sudo make install
..and you’ll save yourself a few hours’ frustration.
Comments

Leave a response

Comments