Gazebo | Ignition | Community
Ask Your Question

Linking problem when compiling from source

asked 2013-06-11 19:49:42 -0500

bit-pirate gravatar image

Hi there!

I'm not sure what's going on, but when compiling Gazebo from source (default), the gazebo executable is missing some shared libraries.

$ gazebo
    gazebo: error while loading shared libraries: cannot open shared object file: No such file or directory

$ ldd /usr/local/bin/gazebo =>  (0x00007fffdcd04000) => not found => not found => not found => not found => not found => not found => not found => /lib/x86_64-linux-gnu/ (0x00007fb95ff5a000) => /usr/lib/ (0x00007fb95fd2c000) => /lib/x86_64-linux-gnu/ (0x00007fb95fb28000) => /usr/lib/ (0x00007fb95f839000) => not found => /usr/lib/ (0x00007fb95f61f000) => /usr/lib/ (0x00007fb95f41b000) => /usr/lib/ (0x00007fb95f1b5000) => /usr/lib/x86_64-linux-gnu/ (0x00007fb95eeb5000) => /lib/x86_64-linux-gnu/ (0x00007fb95ec9f000) => /lib/x86_64-linux-gnu/ (0x00007fb95e8df000)
    /lib64/ (0x00007fb9601ac000) => /lib/x86_64-linux-gnu/ (0x00007fb95e6c8000) => /lib/x86_64-linux-gnu/ (0x00007fb95e3cc000)

I can get Gazebo running after adding /usr/local/lib to the LD_LIBRARY_PATH, but I have the feeling, that shouldn't be necessary.

Any idea what's wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-12 21:32:53 -0500

Boris gravatar image

According to ldconfig(8)

ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/, and in the trusted directories (/lib and /usr/lib)

Also on Ubuntu there are no configuration files in /etc/ for such location as /usr/local/lib, thus it has to be added manually in order dynamic linker to find appropriate libraries.

So, seems there is nothing wrong :)

edit flag offensive delete link more


OK, I went over the [instructions]( again and saw that it is actually listed. However, it is missing when using the default. I may just be a matter of correcting those instructions. Thanks for your help!

bit-pirate gravatar imagebit-pirate ( 2013-06-13 19:13:31 -0500 )edit

Question Tools


Asked: 2013-06-11 19:49:42 -0500

Seen: 1,629 times

Last updated: Jun 12 '13