Friday 28 June 2013

Sawmill Log File Analyser on Ubuntu

Quick post. Today I was trying to get SawMill log file analyser working on Ubuntu and it kept failing to load due to missing library, error:

mac [ ~/Tools/sawmill ]$ ls
Extras  LICENSE  LogAnalysisInfo  README  sawmill
mac [ ~/Tools/sawmill ]$ ./sawmill
./sawmill: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
So I looked at the dependencies the script needed:


mac [ ~/Tools/sawmill ]$ ldd ./sawmill
linux-vdso.so.1 =>  (0x00007fffc07ff000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f515b72a000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f515b510000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f515b2f3000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f515b0dc000)
libcrypto.so.0.9.8 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f515aebe000)
libssl.so.0.9.8 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f515abbe000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f515a8c1000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f515a6ab000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f515a2ec000)
/lib64/ld-linux-x86-64.so.2 (0x00007f515b94a000)

There it is, packages libssl and libcrypto. Now I would have thought libssl-dev would have covered these, but no:

mac [ ~/Tools/sawmill ]$ sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree    
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

A little Google search and the solution was:

sudo apt-get install libssl0.9.8
Reading package lists... Done
Building dependency tree    
Reading state information... Done
The following NEW packages will be installed
  libssl0.9.8
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 861 kB of archives.
After this operation, 2,391 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/universe libssl0.9.8 amd64 0.9.8o-7ubuntu3.1 [861 kB]
Fetched 861 kB in 0s (2,344 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libssl0.9.8.
(Reading database ... 242938 files and directories currently installed.)
Unpacking libssl0.9.8 (from .../libssl0.9.8_0.9.8o-7ubuntu3.1_amd64.deb) ...
Setting up libssl0.9.8 (0.9.8o-7ubuntu3.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Winner, winner, chicken dinner!
mac [ ~/Tools/sawmill ]$ ./sawmill
Sawmill 8.6.2.1; Copyright (c) 1996-2013 Flowerfire, Inc.
Web server running; browse http://192.168.0.14:8988/ to use Sawmill.
To run on a different IP address, use "sawmill -sh ip-addr -ws t"


HTH

No comments:

Post a Comment