The CTF MEG software is a collection of tools to collect/manipulate/analyse MEG data. If you know well about the history of transitioning from 32bit Linux to 64bit, then you'll be fine without this guide. In this guide there will be some nasty hacks that works around package management situations, and therefore can be potentially harmful to the extent of system secruity and stablity. Though I am adding some tips about how to keep it as safe and sound as possible as my power allows, but consider you've been warned.
Installation of CTF MEG software cna be divided into two parts, enabling 32bit executables, and force installation some out-dated and risky libraries.
You need i386 version libc or glibc depends on the availabity on your platform, e.g. on Ubuntu 16.04 LTS:
sudo apt install libc6:i386
This will enable the 32bit executables on your Ubuntu.
On Ubuntu 14.04/16.04 LTS, should be
sudo apt install libc6:i386 \
libxm4:i386 \
libgomp1:i386 \
libfftw3-double3:i386 \
libgcc6:i386 \
libstdc++:i386
Take libmysqlclient*
for example.
We can get most of what we need by using apt
, however, the distro/repo supplied version of libmysqlclient
is too new for some CTF softwares, so need to manually install the debs from the internet. For example, libmysqlclient16
can be found with following search https://duckduckgo.com/?q=libmysqlclient16+site%3Aarchive.debian.net
and next thing to do is to click on the architecture you want i386
then download from a mirror in the middle of the page.
To find out which version of libmysqlclient
, follow these instructions:
- Open an terminal by pressing
Ctrl + Alt + T
; - run
cd /opt/ctf/bin
- run
ldd DaqViewer|grep not\ found
An example output would be:
libmysqlclient.so.16 => not found
You'll see a list of missing dependencies, the numeric value after .so.
is the version of the software. The above output means you'll need libmysqlclient16
.
If there's anything more, you should repeat the procedure as mentioned above.
You may also wants to use ldd
on other applications in the /opt/ctf/bin
folder.
While still with a terminal and in the /opt/ctf/bin
folder, if ldd doesn't complain about not finding anything, you may try to run something (with fingers crossed). Remember to prepend ./
to the command, which means you are accessing the application in the current folder, it's important!
./DataViewer
should usually works, if there complaits on ./MRIViewer
, you may want go back to the previous step, and check it with ldd
.