problem with loading gazebo in ros
Hi all,
I installed Ros hydro in ubuntu 12.04 and after that i followed the instructions for installing rosgazebo package, during installation i didn't have any problem, but now when i want run rosrun gazeboros gazebo, i've got following error
Gazebo multi-robot simulator, version 2.0.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Error [Plugin.hh:141] Failed to load plugin /opt/ros/hydro/lib/libgazebo_ros_paths_plugin.so: libgazebo_common.so.1: cannot open shared object file: No such file or directory
Error [Plugin.hh:141] Failed to load plugin /opt/ros/hydro/lib/libgazebo_ros_api_plugin.so: libgazebo_common.so.1: cannot open shared object file: No such file or directory
Msg Waiting for master
Gazebo multi-robot simulator, version 2.0.0
Copyright (C) 2013 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
Error [Plugin.hh:141] Failed to load plugin /opt/ros/hydro/lib/libgazebo_ros_paths_plugin.so: libgazebo_common.so.1: cannot open shared object file: No such file or directory
Msg Waiting for master
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.2.10
Msg Connected to gazebo master @ http://127.0.0.1:11345
Msg Publicized address: 192.168.2.10
also i searched for this library, and just i found these
/usr/lib/libgazebo_common.so.2
/usr/lib/libgazebo_common.so
any one can help me?!
Looks to me that you are mixing versions, probably gazebo-2.0.0 with current ros-hydro-gazebo-pkgs-2.3.1 linked against gazebo-1.x. How did you install gazebo and ros-hydro-gazebo-pkgs? Using packages, from source, ...?
I have used the pre-compiled packages for ROS, updated to the latest version of Hydro, and I get the same error. It seems clear that ros-hydro-gazebo* has been compiled for 1.9 (released on October 8th), but the current Gazebo version for pre-compiled packages is 2.0. For this reason it looks for libgazebo_common.so.1, instead of teh existing libgazebo_common.so.2. The options are: a) Install Gazebo 1.9 from sources, b) Wait for ros-hydro-gazebo* packages pre-compiled for Gazebo 2.0
Thank you, my problem is solved, the problem is just as you said, i install gazebo 1.9, but with synaptic not from source.
Thanks Francisco for providing more details. Let me add a couple of notes more: gazebo-2.0.0 deb package should prevent the installation into the same system that ros-hydro-gazebo-pkgs. You can run into the problem by installing from source. Another option to add to possible fixes: c) Follow partially this guide and install gazebo and gazeob-ros-pkgs from debs http://gazebosim.org/wiki/DRC/Install/3.0
I believe I have this same problem, the solution is to uninstall Gazebo 2.0 and get 1.9, how do I uninstall 2.0?
Maybe [this document](http://gazebosim.org/wiki/Install/Gazebo_and_ROS) can help with the issue.