Lapacke.h: No such file or directory

Hi – I’m new to Travis, so apologies in advance if I’m missing something obvious. The project I’m trying to test requires a Python C extension to be built which needs LAPACK. apt is installing liblapack-dev, but gcc seems not to be able to find the needed header lapacke.h. On my Ubuntu 18.04 machine it is in /usr/include/

Here’s the job:

gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -fPIC -DUSE_LAPACK=1 -I/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/include -I/usr/include -I/opt/python/3.6.7/include/python3.6m -c src/_gsvd.c -o build/temp.linux-x86_64-3.6/src/_gsvd.o -DBUILD_WITH_PYTHON3

src/_gsvd.c:20:22: fatal error: lapacke.h: No such file or directory


EDIT: It looks like travis uses xenial by default when no distribution is set; so it seems to me the file should be in /usr/include/

I added a check for the file location to my config and get this error:
$ ls /usr/include/lapacke.h
ls: cannot access ‘/usr/include/lapacke.h’: No such file or directory

I tried adding a search, but that failed too.

$ find / -name lapacke.h 2>&1 | grep -v “Permission denied”

The command “find / -name lapacke.h 2>&1 | grep -v “Permission denied”” failed and exited with 1 during .

So I’m not sure how to troubleshoot this. I restored my config to the original version, which fails trying to compile. Here’s the most recent build attempt:

Thanks for any suggestions!

It’s working now, I thought liblapacke-dev was being installed in conjunction with liblapack-dev, but that was not the case. The header file is in /usr/include now and the build