Skip to content

Installing on Linux

ilya edited this page Jan 15, 2015 · 3 revisions

Checkout libo & make sure you are on the right branch:

$ git clone https://github.com/CNMAT/libo.git
$ git fetch
$ git checkout libo-linux

Make sure you have the right dependencies:

$ bison --version
bison (GNU Bison) 3.0.2
Written by Robert Corbett and Richard Stallman.

$ flex --version
flex 2.5.35

If you don't have these / have wrong versions of these, install the dependencies:

sudo apt-get install bison
sudo apt-get install flex

You will also need libtool and GNU make - but we assume that you either have those, or know how to get them...

Building libo should be as simple as

$ make linux

Due to some weirdness with flex & bison code generation, the first time you will run it may result in the following error:

osc_expr.c:59:10: fatal error: 'osc_expr_scanner.h' file not found
#include "osc_expr_scanner.h"
         ^
1 warning and 1 error generated.

If this happens, simply run make linux again.

Issues

On the Ununto Studio 14.04.1 64-bit running on an Intel NUC, libfl.a library used by flex was installed to /usr/lib/x86_64-linux-gnu/libfl.a - if during the linking step, libfl.a is not found in spite of flex being installed, you can find it and create a symbolic link as follows:

$ sudo find / -name libfl.a -print
/usr/lib/x86_64-linux-gnu/libfl.a <- example output

$ cd /usr/lib
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libfl.a libfl.a

Then navigate back to libo directory and run make linux again.

Clone this wiki locally