Hi all,
I installed Ros hydro in ubuntu 12.04 and after that i followed the instructions for installing ros_gazebo package, during installation i didn't have any problem, but now when i want run rosrun gazebo_ros 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?!
Originally posted by Vahid on Gazebo Answers with karma: 91 on 2013-10-08
Post score: 2
Original comments
Comment by Jose Luis Rivero on 2013-10-09:
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, ...?
Comment by Francisco Martín Rico on 2013-10-10:
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
Comment by Vahid on 2013-10-10:
Thank you, my problem is solved, the problem is just as you said, i install gazebo 1.9, but with synaptic not from source.
Comment by Jose Luis Rivero on 2013-10-10:
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
Comment by AndrewT on 2013-10-17:
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?
Comment by Jose Luis Rivero on 2013-10-22:
Maybe this document can help with the issue.