diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d88eb8196ae38869d22792adbd84f810ed6fae87..c01c841a911ce0045d46439b1ff9b9e074bcc078 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ image: ubuntu:latest
 
 
 before_script:
-  - apt-get update -qq && apt-get install -y -qq build-essential libhdf5-serial-dev gfortran csh git libtool-bin autoconf openmpi-bin openmpi-common
+  - apt-get update -qq && apt-get install -y -qq build-essential libhdf5-serial-dev gfortran csh git libtool-bin autoconf openmpi-bin openmpi-common libopenmpi-dev
   - export LHOME=`pwd`
 # Compile grackle
   - mkdir grackle
@@ -19,7 +19,6 @@ before_script:
   - cd $LHOME
 
 # compile swift
-  - export CC=mpicc
   - git clone https://gitlab.cosma.dur.ac.uk/swift/swiftsim.git --single-branch --branch master
   - cd swiftsim
   - ./autogen.sh