`rgl` causing build failure on linux

My package builds on macOS but is failing on Linux. The linux build fails due to problems downloading a dependent package rgl. The error while downloading seems to be caused by gcc but I’m not sure exactly. You can find the build logs here. Is there something I should add to my .travis.yml to avoid this error.

configure: error: missing required header GL/glu.h

$ apt-file search GL/glu.h
<...>
libglu1-mesa-dev: /usr/include/GL/glu.h

Other Apt packages might be needed, too:

I solved this issue by adding

addons:
  apt:
    packages:
      - libgdal-dev
      - libproj-dev

before_install:
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libcgal-dev libglu1-mesa-dev mesa-common-dev; fi

to my yaml.