1. Re: XMOTOR
- Posted by Bernie Ryan <xotron at bluefrog.com> Feb 11, 2006
- 436 views
- Last edited Feb 12, 2006
Greg Haberek wrote: > > > Can not open library libX11.so > > I have the same issue on my Ubuntu system. libX11 is installed on my > system as libX11.so.6. I changed "libX11.so" to "libX11.so.6" and it > still didn't work. > Greg: I'am not an expert at Linux but it sounds like that your /etc/ld.so.cache is not up to date so that when loading the .so can't be found. When you request a library uses this cashe to resolve the links to the library. type the command: man ldconfig ldconfig uses /etc/ld.so.conf which is a list of search paths to build /etc/ld.so.cache so when you use a library the loader knows where to find the current version when it sees "libX11.so" it will know from the /etc/ld.so.cache where to find the latest version of the library which may or may not be "libX11.so.6" that why using just "libX11.so" will always use the latest version as long as your cache up to date. /etc/ld.so.cache is NOT a readable text file. /etc/ld.so.conf is a text file and it contains: /usr/kerberos/lib /usr/X11R6/lib /usr/lib/sane /usr/lib/qt-3.1/lib /usr/lib/mysql If you would like to see where your .so libraries are pointing to use the following command : /sbin/ldconfig -p | less -- the less will allow you to scroll back and forth or you could dump it to a file. To setup the correct links for shared binarys and rebuild the cache then you need run the following command. BUT I would recommend that you make a BACK-UP copy of /etc/ld.so.cache file You may need to run this command as root. /sbin/ldconfig -v As a last comment when ever you add a new shared library you should run the following command to setup the symbolic links. /sbin/ldconfig -n /lib BE SURE TO BACK-UP ! Sorry about being so long winded. Bernie My files in archive: motor.eu w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan