# Installing Paraview in headless/Offscreen mode using Spack

**URL:** https://discourse.paraview.org/t/installing-paraview-in-headless-offscreen-mode-using-spack/16347
**Category:** ParaView Support
**Created:** [March 17, 2025, 7:21pm UTC](https://discourse.paraview.org/t/installing-paraview-in-headless-offscreen-mode-using-spack/16347 "2025-03-17T19:21:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![uturuncoglu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/uturuncoglu/32/1530_2.png) [@uturuncoglu](https://discourse.paraview.org/u/uturuncoglu)
#### Post date: [March 17, 2025, 7:21pm UTC](https://discourse.paraview.org/t/installing-paraview-in-headless-offscreen-mode-using-spack/16347/1 "2025-03-17T19:21:01Z")

</div>

Hi,

I am trying to install ParaView to HPC platform in headless mode with spack without no luck. At this point I am using following command in spack side,

`spack install paraview@5.13.1%oneapi@2024.2.1+libcatalyst+fortran~ipo+mpi+python`

It installs without any issue but at this point I am getting

```auto
vtkXOpenGLRenderWindow.:656 ERR| vtkXOpenGLRenderWindow (0x415af50): Cannot create GLX context. Aborting.

```

and also

```auto
( 4.332s) [pvbatch]vtkXOpenGLRenderWindow.:460 ERR| vtkXOpenGLRenderWindow (0x1a705bd0): bad X server connection. DISPLAY=

```

errors. I wonder if spack installation supports headless/Offscreen mode or not. Any suggestion would be helpful.

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [March 17, 2025, 7:37pm UTC](https://discourse.paraview.org/t/installing-paraview-in-headless-offscreen-mode-using-spack/16347/2 "2025-03-17T19:37:29Z")

</div>

you could try this [Building Paraview through spack - #7 by jfavre](https://discourse.paraview.org/t/building-paraview-through-spack/7901/7)

---

<div class="post-metadata">

### Author: ![uturuncoglu](https://discourse.paraview.org/user_avatar/discourse.paraview.org/uturuncoglu/32/1530_2.png) [@uturuncoglu](https://discourse.paraview.org/u/uturuncoglu)
#### Post date: [March 17, 2025, 7:51pm UTC](https://discourse.paraview.org/t/installing-paraview-in-headless-offscreen-mode-using-spack/16347/3 "2025-03-17T19:51:19Z")

</div>

Okay. Testing now. I’ll update you soon. Thanks for your help.
