Tuesday, March 24, 2009

Stage installation

Hi everyone!

I have already tested the .cfg file and it works fine. I get a window with the simulated robot.

Jorge told me that some of you have been having some problems with stage's installation. Yesterday was a lot about improvisation and I ended up with about 15 open tabs from which I got different suggestions and ideas. Unfortunately, I didn't exactly saved the url's that helped me and I can't remember what did I exactly do to make this work.

I did have the idea of saving in a document a lot of the things I did in the terminal. I can share them with you even though I don't know if I will be able to explain clearly what did I do. However, I think this can give you an idea of what can you do to solve this problem.

The error I got was the following and actually I think is the most common error when trying to install stage, I suppose it is the one you are currently dealing with:

error while loading shared libraries: libplayerc++.so.2: cannot open shared object file: No such file or directory

So after several hours of looking in forums and web pages and getting some help, I created a link with ln -s, and... after several other failed attempts I did the following.



laura@lola:/usr/local/share/player/config$ sudo ln /usr/local/lib/libplayerdrivers.so.2 libplayerdrivers.so.2
ln: creating hard link `libplayerdrivers.so.2': File exists
laura@lola:/usr/local/share/player/config$ cd ..
laura@lola:/usr/local/share/player$ sudo ln /usr/local/lib/libplayerdrivers.so.2 libplayerdrivers.so.2
laura@lola:/usr/local/share/player$ cd config/
laura@lola:/usr/local/share/player/config$ player pioneer.cfgplayer: error while loading shared libraries: libplayerdrivers.so.2: cannot open shared object file: No such file or directory
laura@lola:/usr/local/share/player/config$ sudo player pioneer.cfg
player: error while loading shared libraries: libplayerdrivers.so.2: cannot open shared object file: No such file or directory
laura@lola:/usr/local/share/player/config$ sudo gedit /etc/ld.so.conf
^[^Tlaura@lola:/usr/local/share/player/config$ sudo ldconfig
laura@lola:/usr/local/share/player/config$ player pioneer.cfg
Registering driver
Player v.2.1.2

* Part of the Player/Stage/Gazebo Project [http://playerstage.sourceforge.net].
* Copyright (C) 2000 - 2006 Brian Gerkey, Richard Vaughan, Andrew Howard,
* Nate Koenig, and contributors. Released under the GNU General Public License.
* Player comes with ABSOLUTELY NO WARRANTY. This is free software, and you
* are welcome to redistribute it under certain conditions; see COPYING
for details.

And that is about it, what is between this two steps are just a bunch of different attempts.

I was going through the history of my browser and I found out that these were some of the links I checked yesterday:

http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html

http://linuxmafia.com/faq/Admin/ld-lib-path.html

http://celtico-celtico.blogspot.com/2007/12/instalacin-del-proyecto-rabotron-p

http://www.nabble.com/error-while-loading-share-libraries-td11350894.html#a11350894

http://escalant3.blogspot.com/2007/01/el-simulador-playerstage.html


I hope you find them useful.

I'll be waiting tonight for the person who helped me yesterday in order to see if he can collaborate in this explanations and make them clearer.

If you are willing to see all of the actions I did at the terminal, including every mistake I made in it just let me know and I'll send or upload the complete file.

I'll be seeing you soon. Take care!

No comments:

Post a Comment