Answers: <p>Suggest looking at this example of libero docker image that uses Ubuntu: <a href="https://github.com/AngelTerrones/ubuntu-libero" rel="nofollow noreferrer">https://github.com/AngelTerrones/ubuntu-libero</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2021-11-23T22:07:48.183Z
Answers: 2021-11-23T22:07:48.183Z
Answers: mikequentel
Body: <p>I am running Libero SoC on a CentOS Docker Container (CentOS Linux release 7.9.2009 (Core)). This container will be used to build FPGA code within a CI/CD pipeline. When I attempt to execute a script (that simply prints <code>&quot;Hello, world&quot;</code>) with the command
  <code>libero SCRIPT:printhelloworld.tcl</code></p>
  <p>I receive the following error:</p>
  <pre><code>libero_bin: cannot connect to X server
  </code></pre>
  <p>I would not have expected libero to require an X server just to run a .tcl script.</p>
  <p>Thank you.</p>
  
Comments: CC BY-SA 4.0
Comments: 2021-11-23T22:05:05.710Z
Comments: How are you running the container (syntax)? Could just need something like `-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix` ...also, see https://stackoverflow.com/questions/43613474/using-x11-forwarding-for-docker-containers
Comments: mikequentel
Tags: <docker>
Title: CentOS Docker Container running Libero SoC: Unable to to connect to X Server
UserDisplayName: Erik
ThreadText: # CentOS Docker Container running Libero SoC: Unable to to connect to X Server
  
  (Asked by: username_0 on 2021-11-23)
  
  I am running Libero SoC on a CentOS Docker Container (CentOS Linux release 7.9.2009 (Core)). This container will be used to build FPGA code within a CI/CD pipeline. When I attempt to execute a script (that simply prints `"Hello, world"`) with the command
  `libero SCRIPT:printhelloworld.tcl`
  
  I receive the following error:
  
  ```
  libero_bin: cannot connect to X server
  
  ```
  
  I would not have expected libero to require an X server just to run a .tcl script.
  
  Thank you.
  
  **Tags:** docker
  
  > **Comments:**
  > **username_1**: How are you running the container (syntax)? Could just need something like `-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix` ...also, see https://stackoverflow.com/questions/43613474/using-x11-forwarding-for-docker-containers  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-11-23. Score: 2
  
  Suggest looking at this example of libero docker image that uses Ubuntu: <https://github.com/AngelTerrones/ubuntu-libero>
  
  
  ---
  
  