Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I've recently bought a dedicated FC4 linux server. I'm planning to run a dedicated game server on it. Im getting troubles when installing some libraries required by the gameserver. I'm using SSH to run the program. This is the error I get:
./otserv: error while loading shared libraries: liblualib50.so.5.0: cannot open shared object file: No such file or directory
Now I've already installed the "lua" and "lua-devel" using "yum install" command.
When I check if they're installed I used "rpm -qa | grep lua" and this is what I got:
lua-5.1-6.fc4
lua-devel-5.1-6.fc4
I need all the following libs to run the server:
* libilua50
* libilua50-dev
* libilualib50-dev
I tried using yim install to get them but it did not find any of them. apt-get is not installed on the machine and when i tried installing it from freshrpms it said that i needed another bunch of libraries to install apt-get. So how do I get all those libs on my machine?
You might try finding them on the http://rpm.pbone.net website. If you click on the "Advanced Search" button, you can then clear all the checkmarks and then check FC 6 and FC Other. That helps narrow the search to packages made for your distro.
The dependencies are also listed with links to the packages that supply them.
One possibility is if you have
liblualib50.so.6.0 instead. In that case, you could try linking from liblualib50.so.5.0 -> liblualib50.so.6.0.
Do an "rpm -q --filesbypkg lua lua-devel" and grep for liblua. Chances are liblualib is installed but it's a different version than the one required by your server (your server seems to require 5.0). You'll need to look for an RPM of a more recent version (Fedora Core 4 is fairly old at this point, so I'm not surprised that some things are getting out of date). You could try with RPMs from a more recent Fedora but they're unlikely to work as is. One thing to do is grab the src.rpm with the lib version you need, install it on your system and build it with rpmbuild, and then install the resulting binary RPMs. You could also just remove the lua and lua-devel RPMs and build the proper version from source by hand. The main advantage of havign an RPM is that you can manage the install through the package manager.
I also ran a grep for liblua and it returned nothing. The problem I'm having is finding the rpm file that contains the libs I need. I've been unable to find them anywhere...
Usually libraries take the form lib<name>.so.<version> not lib<name>lib or anything like that (there are exceptions, though. It looks like you have version 5.1 of the Lua libs. You could always do:
Did the game server you're trying to run have any documentation on this? Ideally it should have al ist of dependencies or bundled the libs it expects into its package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.