Gnome Report post Posted October 25, 2004 I've recently switched to linux (mandrake 10.1) and when I execute EL I get this: ./el.x86.linux.bin: error while loading shared libraries: libopenal.so.0: cannot open shared object file: No such file or directory I then downloaded openal from CVS and installed it and got the same error. Please help Thanks Quote Share this post Link to post Share on other sites
Umrion Report post Posted October 25, 2004 You could try to use the statically linked version of EL instead. If you want to really fix this, you need to: * Check out where the libopenal.* files are installed * Make sure the necessary symlink (libopenal.so.0) exists. If you need help, start by running: find / -name 'libopenal.so.*' which should show you where the files are installed. Then cd to that directory and do: ls -l libopenal* and post the output here. http://www.eternal-lands.com/forum/index.php?showtopic=8422 Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 [root@localhost lib]# ls -l libopenal* -rwxr-xr-x 1 root root 830462 Oct 25 03:13 libopenal.a* lrwxrwxrwx 1 root root 33 Oct 25 03:13 libopenal.so -> /usr/local/lib/libopenal.so.0.0.7* lrwxrwxrwx 1 root root 33 Oct 25 03:13 libopenal.so.0 -> /usr/local/lib/libopenal.so.0.0.7* -rwxr-xr-x 1 root root 543858 Oct 25 03:13 libopenal.so.0.0.7* At least I know it exists now Would I just move these to /lib then? [EDIT] Moved it to /lib and it works now 0 fps though...I'm going to get a driver for my vid card (read chatters post and glad I have an NVIDIA) Quote Share this post Link to post Share on other sites
Umrion Report post Posted October 25, 2004 Well, you could move them (/usr/lib would be a better choice than /lib, though.) But let's make it work with /usr/local/lib, shall we? Open up /etc/ld.so.conf with a text editor. Make a backup of this file so that you can revert to the old version if anything goes wrong. Add a line that says: /usr/local/lib Save the file and then run ldconfig Your programs should now look in /usr/local/lib, as well as /lib and /usr/lib and any other paths specified in ld.so.conf, for libraries. Feel free to read up on how ldconfig works man ldconfig It's a while since I had to do this by hand, so I might have made some mistake above. Now, in case you haven't done so already, create an 'normal' user for everyday use - you should only run as root when you really need to! Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Ok I'm gunna put it back and listen to you Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 It is a read only.. Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 what do you mean? have you managed to move this back to the original directory. I'd do that if possible, and go thorough umrion's instructions, as they're correct. If you cant move it, leave it, its doing no harm where it is. just neater the other way. Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Yes, I moved it back. The file ld.so.conf says its read only when I open it in a text editor though... Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 are you opening it as root? Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 How do I open it from the terminal? Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 hmmm....this could confuse you open a console/shell. type: cd /path/to/ld.so.conf vi ld.so.conf The editor 'vi' should open up. Does it say its read-only anywhere? press 'i' and then make your changes. then press escape, then :x Thats a colon, then an x, as one word. Press enter. You should be back at the prompt [Edited] Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 O shit..I got into that editor, tried to type something and half of it vanished edit: forgot to press i Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 Keep pressing 'u' to undo what you've done, up until the last save. to quit without making changes, type :q! Then try it again Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Well in my panic when this happened I closed the terminal..now I'm getting this when I try to edit it E325: ATTENTION Found a swap file by the name ".ld.so.conf.swp" owned by: root dated: Mon Oct 25 06:25:06 2004 file name: /etc/ld.so.conf modified: YES user name: root host name: localhost process ID: 4514 While opening file "ld.so.conf" dated: Sat Oct 23 21:49:41 2004 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r ld.so.conf" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".ld.so.conf.swp" to avoid this message. Swap file ".ld.so.conf.swp" already exists! Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 Press 'd'. That will delete the swap file, this is created when you edit a file without saving and then abruptly closing vi. (This was caused by you quitting the shell). Once the swap file is deleted, you should go to the original ld.so.conf. Be careful!! Use 'u' if you want to undo anything, or just :q! to quit without making changes. Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Ok i used the recover thing and got it back..edited and pressed esc then enter then :x and now I have this include ld.so.conf.d/*.conf /usr/X11R6/lib /usr/lib/qt3/lib /usr/local/lib ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ E45: 'readonly' option is set (add ! to override) 4,14 All Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 Heh, i hope you have backup this file, and you should press :x THEN enter. just type :x! (colon,x,exclamation) This will overide the read-only attribute and save the file with the new changes. Any luck? Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Getting this... "ld.so.conf" "ld.so.conf" E212: Can't open file for writing Hit ENTER or type command to continue Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 Ok so this is read-only and your not root, by the looks of it. At the console, type: su enter your password (The su command logs you in as root) then open in the file and do the edits again. If that still doesnt work, while logged in as root, do this: chmod a+w ld.so.conf (allows all users to write to the file) make your changes, save, then do this: chmod a-w ld.so.conf (stops all users from writing to the file) Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 K I editted it but when I try to open el I get the same error message (first one) Quote Share this post Link to post Share on other sites
Umrion Report post Posted October 25, 2004 Did you run ldconfig ?? Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 oops forgot the ldconfig one min then... Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 where are the openal.so files? In the same place as before? did you run ldconfig after you edited it? Quote Share this post Link to post Share on other sites
Gnome Report post Posted October 25, 2004 Great it works. Thanks guys. I think I'm going to like linux, at least I know what my computer is doing. Now to get the driver for my gcard...I'm at 0 fps Quote Share this post Link to post Share on other sites
Placid Report post Posted October 25, 2004 from the lnx forums, i think your using an nVidia card right? nvidia.com, has plenty of linux drivers. Enjoy! Quote Share this post Link to post Share on other sites