rtv / Stage

Mobile robot simulator
rtv.github.com/Stage
GNU General Public License v2.0
391 stars 175 forks source link

stage Stage/worlds/simple.world stage: error while loading shared libraries: #83

Open KeyvanDerakhshanNik opened 7 years ago

KeyvanDerakhshanNik commented 7 years ago

Hi I am pretty new in the stage, I used fast installation in http://rtv.github.io/Stage/install.html My OS is Ubuntu. When I Started Stage "stage Stage/worlds/simple.world". I took this error : libstage.so.4.3.0: cannot open shared object file: No such file or directory could you please help me to recover this problem. BR

rtv commented 7 years ago

Did you do step 4 (note the instructions look a little garbled in HTML due a messed up _ character - look at the source in an editor)? The problem is probably that your LD_LIBRARY_PATH does not contain the directory containing libstage.so.4.3.0. Or maybe you didn't make install.

update: look at the full instructions lower in that file, where the underscores are rendered properly.

KeyvanDerakhshanNik commented 7 years ago

Thanks, I reinstall it by sudo command, It is worked now.

tmozgach commented 6 years ago

Another solution:

cd /
sudo find ./ | grep libstage.so
./home/tatyana/stg/lib/libstage.so
./home/tatyana/stg/lib/libstage.so.4.3.0
./home/tatyana/stage4/libstage/libstage.so
./home/tatyana/stage4/libstage/libstage.so.4.3.0

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/tatyana/stg/lib/:/home/tatyana/stage4/libstage/
export LD_LIBRARY_PATH
$HOME/stg/bin/stage $HOME/stage4/Stage/worlds/simple.world
YiSunny commented 3 years ago

I also got the same Error, but even though the LD_LIBRARY_PATH is right, it does't work. But I found, wenn I installed the libpng16-dev instead of libpng12-dev package by pip install libpng16-dev, the porblem was solved. stage Stage/worlds/simple.world can be run flowlessly.