Ubuntu – No such file or directory

c

I am trying to run the available C code at GitHub for bloom filter (https://github.com/jvirkki/libbloom). When I try to compile I get an error: fcntl.h No such file or directory. I am using Ubuntu 16.04. I also check the path to locate fcntl.h, it's already there in the system (/usr/include/x86_64-linux-gnu/bits/fcntl.h). So I do not know what can be the issue. I try to install essential packages too but it's not solving the problem.

Best Answer

You need to install git and build-essential packages

sudo apt-get install git build-essential

Then clone repository and compile software:

cd ~/Downloads
git clone https://github.com/jvirkki/libbloom.git
cd libbloom
make

Then check that library was compiled:

$ ls ./build/libbloom.so
./build/libbloom.so

If steps above does not help install the following packages manually:

sudo apt-get install libc6-dev linux-libc-dev linux-headers-$(uname -r)