Friday, June 10, 2011

Compiling Sphinx Search Server on OSX

Having trouble compiling a fresh sphinx search server on your OSX Leopard/Snow Leopard (10.5/10.6) host?

If you are gettings

conflicting declaration 'typedef unsigned int DWORD' etc etc

 

compile it like this

 

./configure --prefix=/opt/local --with-mysql=/opt/local/lib/mysql5 --without-unixodbc --enable-id64

 

The key here is to not compile the unixodbc support using flag "--without-unixodbc" as this is where the errors are coming from.

Thursday, June 2, 2011

DM-Crypt on Synology with Truecrypt 7

You may get an issue with Truecrypt on your synology about the ioctl and the device mapper (dm). Do "dmesg" when you try and use truecrypt to mount an image and see if it complains about a missing module.

The issue is because the synology default kernel lacks the required device mapper crypto module and the crypto modules XTS and LRW.

You can compile these using an ubuntu/linux host and the Synology cross-compile tools and sources. See my post on compiling a kernel module.

 

Alternatively, if you are on a synology 1511+ or similar (running a x86 processor - do "uname -a" to check), leave me a comment and i will email you the pre-compiled modules)