# Errors Running Slicer on CentOS using X11

**URL:** https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339
**Category:** Support
**Created:** [July 2, 2020, 3:49pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339 "2020-07-02T15:49:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lennymartinez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lennymartinez/32/6918_2.png) [@lennymartinez](https://discourse.slicer.org/u/lennymartinez)
#### Post date: [July 2, 2020, 3:49pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/1 "2020-07-02T15:49:25Z")

</div>

Got Slicer 4.11 installed on a CentOS remote machine mainly to be used for processing. It was working fine the first week, but something seems to have happened in between, or we didn’t notice what was up then.

Ideally we’ll be running Slicer with the --no-main-window and --no-splash flag and using a --python-script to do our processing, **but** when I try running Slicer by itself I get the following errors:

 ![Screenshot 2020-07-02 11.21.16](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/f/ef6e9db29d5f52cb9ade2754b471005ccfa05558.png)

The splash window does pop up, and modules are loaded, and then it tries to show the welcome module, but all I get is this on the command line

 ![Screenshot 2020-07-02 11.22.36](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/e/0eee6b7bc16f644026be8cfc766ff2fddb07f28b.png)

After a while of this, Slicer GUI screen container pops up, but it’s empty and the command line repeats the same error over and over:

 ![Screenshot 2020-07-01 11.26.20](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/a/6a053692c6a950ce97146a558370567934953574.png)

 ![Screenshot 2020-07-01 11.25.08](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/a/3a5803d11cfdb0b4e22436dc6251394fa512fbfd.jpeg)

I tried looking into the initial libGL errors, and I can find swrast on the machine. I can’t find the fbConfigs or visuals the command line is talking about. I tried finding the OpenGL version but have been unlucky.  
And I have no idea what happened next or how to fix it.

Do anyone have tips on how I can install and run Slicer on a CentOs machine? Everything in the processing pipeline with the extension works and this is the last step where things are going wrong.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [July 2, 2020, 4:15pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/2 "2020-07-02T16:15:14Z")

</div>

Does other OpenGL applications, such as the standard `glxgears` demo work on your computer?

---

<div class="post-metadata">

### Author: ![lennymartinez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lennymartinez/32/6918_2.png) [@lennymartinez](https://discourse.slicer.org/u/lennymartinez)
#### Post date: [July 2, 2020, 4:38pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/3 "2020-07-02T16:38:06Z")

</div>

It does not. I get the following errors

 ![Screenshot 2020-07-02 12.37.23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/6/d61e826e3148cd9fd7b5fe5d1a6c2e3b07e190c8.png)

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [July 2, 2020, 4:40pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/4 "2020-07-02T16:40:09Z")

</div>

If you are running no-main-window anyway you can use [Xdummy](https://xpra.org/trac/wiki/Xdummy) or [xvfb](https://en.wikipedia.org/wiki/Xvfb) to fake the connection.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [July 2, 2020, 4:51pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/5 "2020-07-02T16:51:02Z")

</div>

You are using a X11 server that doesn’t support GLX extension that is required to run openGL libraries on X11 clients.

If you don’t need the GUI, @pieper’s suggestions should work. If you eventually need the GUI, VirtualGL ([https://virtualGL.org](https://virtualGL.org)) works really well on centos 7 (I haven’t tested 8 yet).

---

<div class="post-metadata">

### Author: ![lennymartinez](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lennymartinez/32/6918_2.png) [@lennymartinez](https://discourse.slicer.org/u/lennymartinez)
#### Post date: [July 2, 2020, 4:52pm UTC](https://discourse.slicer.org/t/errors-running-slicer-on-centos-using-x11/12339/6 "2020-07-02T16:52:07Z")

</div>

Don’t need a GUI in the end, so I’ll check out Xdummy and xvfb! Thanks for the recommendations.
