# Problem loading gazebo

**URL:** <https://discourse.openrobotics.org/t/problem-loading-gazebo/48801>\
**Category:** Gazebo General\
**Created:** [April 5, 2023, 9:27pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801 "2023-04-05T21:27:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashas\_Shetty](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/yashas_shetty/32/27160_2.png) [@Yashas\_Shetty](https://discourse.openrobotics.org/u/Yashas_Shetty)\
**Post date:** [April 5, 2023, 9:27pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/1 "2023-04-05T21:27:46Z")

</div>

While loading gazebo I’m getting the following error

gzserver: error while loading shared libraries: libdart-collision-bullet.so.6.12: cannot open shared object file: No such file or directory

however when I try to install libdart-collision-bullet-dev, it says  
libdart-collision-bullet-dev is already the newest version (6.9.2-2build4).

Can anyone help me out with what’s wrong?

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/acxz/32/4985_2.png) [@acxz](https://discourse.openrobotics.org/u/acxz)\
**Post date:** [April 13, 2023, 5:14pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/2 "2023-04-13T17:14:46Z")

</div>

just passing by

it seems that the gazebo you have installed has been built with a newer libdart-collision-bullet

I would recommend trying to reinstall gazebo and see if the error still shows up and doesn’t self - resolve

---

<div class="post-metadata">

**Author:** ![Yashas\_Shetty](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/yashas_shetty/32/27160_2.png) [@Yashas\_Shetty](https://discourse.openrobotics.org/u/Yashas_Shetty)\
**Post date:** [April 25, 2023, 6:11pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/3 "2023-04-25T18:11:58Z")

</div>

Thank you for the reply!

I tried reinstalling gazebo using the gazebo documentation

> **[Gazebo : Tutorial : From source (Ubuntu and Mac)](https://classic.gazebosim.org/tutorials?tut=install_from_source)**
>
> The Gazebo robot simulation

In the ### Build And Install Gazebo step  
I ran the following command in /tmp/gazebo/build

```auto
cmake ../

```

it gave me the following error:

```auto
Could not find a package configuration file provided by "sdformat9"
  (requested version 9.8) with any of the following names:

    sdformat9Config.cmake
    sdformat9-config.cmake

```

I installed dependencies using the following link

> **[Gazebo : Tutorial : Dependencies from source](https://classic.gazebosim.org/tutorials?tut=install_dependencies_from_source)**
>
> The Gazebo robot simulation

but still end up with the same issue

Is there any other dependency I might be missing?

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/acxz/32/4985_2.png) [@acxz](https://discourse.openrobotics.org/u/acxz)\
**Post date:** [April 26, 2023, 12:47am UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/4 "2023-04-26T00:47:34Z")

</div>

What linux distribution are you using?

You should try to avoid building from source if possible.

---

<div class="post-metadata">

**Author:** ![Yashas\_Shetty](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/yashas_shetty/32/27160_2.png) [@Yashas\_Shetty](https://discourse.openrobotics.org/u/Yashas_Shetty)\
**Post date:** [April 26, 2023, 1:39am UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/5 "2023-04-26T01:39:57Z")

</div>

I am using Ubuntu 20.04

---

<div class="post-metadata">

**Author:** ![acxz](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/acxz/32/4985_2.png) [@acxz](https://discourse.openrobotics.org/u/acxz)\
**Post date:** [May 4, 2023, 4:26pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/6 "2023-05-04T16:26:01Z")

</div>

So for ubuntu 20, the version of gazebo to use is gazebo 9.

What is the output of sudo apt install gazebo9?

---

<div class="post-metadata">

**Author:** ![Yashas\_Shetty](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/yashas_shetty/32/27160_2.png) [@Yashas\_Shetty](https://discourse.openrobotics.org/u/Yashas_Shetty)\
**Post date:** [May 4, 2023, 10:04pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/7 "2023-05-04T22:04:42Z")

</div>

So I uninstalled gazebo using

```auto
sudo apt-get remove '.*gazebo.*' '.*sdformat.*' '.*ignition-math.*' '.*ignition-msgs.*' '.*ignition-transport.*'

```

installed the dependencies from the below link

> **[Gazebo : Tutorial : From source (Ubuntu and Mac)](https://classic.gazebosim.org/tutorials?tut=install_from_source)**
>
> The Gazebo robot simulation

and then tried  
`sudo apt install gazebo9`

it gives the below error :

```auto
gazebo: error while loading shared libraries: libsdformat9.so.9: cannot open shared object file: No such file or directory

```

Just a note : I have previously faced this issue and installed the library manually, which asked for more dependencies, after finally resolving those dependencies I land with my original error i.e.

```auto
libdart-collision-bullet-dev is already the newest version (6.9.2-2build4).

```

---

<div class="post-metadata">

**Author:** ![Jetson\_Nano](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/jetson_nano/32/20583_2.png) [@Jetson\_Nano](https://discourse.openrobotics.org/u/Jetson_Nano)\
**Post date:** [March 18, 2024, 6:28am UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/8 "2024-03-18T06:28:35Z")

</div>

Hello @Yashas_Shetty, could you resolve this issue?

---

<div class="post-metadata">

**Author:** ![Yashas\_Shetty](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/yashas_shetty/32/27160_2.png) [@Yashas\_Shetty](https://discourse.openrobotics.org/u/Yashas_Shetty)\
**Post date:** [March 18, 2024, 6:45pm UTC](https://discourse.openrobotics.org/t/problem-loading-gazebo/48801/9 "2024-03-18T18:45:34Z")

</div>

No actually. I ended up using a docker container.  
Afterwards I also reinstalled my ubuntu and did not encounter this issue when I installed ros1 and gazebo.
