logger v0.5 install instructions 2008-02-16 Chris Hellyar For more info check out http://ohmark.co.nz/logger.html NOTE: I used debian etch for building/testing this software, for other distributions I may not be able to help with getting ito work. If you need some help with debian though, drop me an email at and I'll see if I can help. Dependancies: libmodbus from: https://launchpad.net/libmodbus libconfuse from the debian archive, package name is libconfuse-dev gcc V4.XXX (should work with earlier, but I have no machine to test that on) make V3.8X (Again, should work with others, but I've not tested) libglib2 (A dependancy of libmodbus) Optionally: mysql server 5.0 (Should work with ealier as well, but not tested) libmysqlclient is required to build logger, but you can comment out those bits of the code if you don't want mysql support. Installing: I'm going to have to assume a reasonable level of knowledge of Linux for this, and let's face it, if you're reading this you're not a point-and-click user. After you've got libconfuse-dev and libmodbus installed, you should be able to just use 'make' in the package directory and that will generate the binary. make install will stuff it in /usr/bin and chmod it. You'll need to use sudo or be root to do the make install. You'll also need libmysalclient installed to compile it as-is. Comment out the mysql bits from logger.c if you want to compile it without the mysql support. (You'll also need a mysql server if you're doing that bit, Duh.) If you want to use mysql, there is some info in /docs/mysql.txt and a sql script in /docs/myio.sql to get you started. logger looks for logger.conf in the current directory, the executing users home directory and then in /etc, in that order. If it fails to find a copy in any location it'll pop and error. I'd recommend doing a bit of playing with the config with 'Daemon' set to false. Using the Verbose=True will give you loads of info, which is probably only useful to debug things, I went a bit overboard there. You could create a cutesy startup script as well, that's up to you, I didn't really thing it was necesary at this stage!