diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5438831137e05a0fee3bd1c7e8866672f8af9538..ef3c35360730a6c9f45118b3666f9e3a8244a1dd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,8 +7,9 @@ stages:
 
   - build
 
-before_script:
+nstall cmake glibc-devel whichbefore_script:
   - yum -y install cmake glibc-devel which
+  - yum install motif, motif-devel
   - set +e && source CI/setup_lcg.sh; set -e
 
 variables: