Skip to content

Instantly share code, notes, and snippets.

@luginbash
Last active September 21, 2019 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luginbash/6cd09beea70cb0025ef86f03444ce69d to your computer and use it in GitHub Desktop.
Save luginbash/6cd09beea70cb0025ef86f03444ce69d to your computer and use it in GitHub Desktop.
Installation of CTF MEG Client Software

CTF MEG Software Installation Guide

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.

Getting Started

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.

Install required 32bit Libraries

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

Deal with outdated libraries

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:

  1. Open an terminal by pressing Ctrl + Alt + T;
  2. run cd /opt/ctf/bin
  3. 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.

Test Run

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

./DataViewer should usually works, if there complaits on ./MRIViewer, you may want go back to the previous step, and check it with ldd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment