LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-16-2007, 05:29 PM   #1
jeremic
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Rep: Reputation: 0
How do I install libraries without apt-get?


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?
 
Old 03-16-2007, 05:59 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 03-17-2007, 09:10 AM   #3
jeremic
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I've looked trough all lua packages, none of them which contain liblualib50. Any other suggestions?
 
Old 03-17-2007, 02:04 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 03-17-2007, 04:43 PM   #5
jeremic
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Liblualib does not seemed to be installed on the machine heres the result of the command...

lua /usr/bin/lua
lua /usr/bin/luac
lua /usr/lib/liblua-5.1.so
lua /usr/share/doc/lua-5.1
lua /usr/share/doc/lua-5.1/COPYRIGHT
lua /usr/share/doc/lua-5.1/HISTORY
lua /usr/share/doc/lua-5.1/README
lua /usr/share/doc/lua-5.1/contents.html
lua /usr/share/doc/lua-5.1/logo.gif
lua /usr/share/doc/lua-5.1/lua.html
lua /usr/share/doc/lua-5.1/luac.html
lua /usr/share/doc/lua-5.1/manual.html
lua /usr/share/doc/lua-5.1/readme.html
lua /usr/share/man/man1/lua.1.gz
lua /usr/share/man/man1/luac.1.gz
lua-devel /usr/include/lauxlib.h
lua-devel /usr/include/lua.h
lua-devel /usr/include/lua.hpp
lua-devel /usr/include/luaconf.h
lua-devel /usr/include/lualib.h
lua-devel /usr/lib/liblua.a
lua-devel /usr/lib/liblua.so
lua-devel /usr/lib/pkgconfig/lua.pc

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...
 
Old 03-17-2007, 05:11 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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:

ln -s /usr/lib/liblua-5.1.so /usr/lib/liblualib50.do.5.0

and hope things are backwards compatible.

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.
 
Old 03-17-2007, 05:35 PM   #7
jeremic
LQ Newbie
 
Registered: Mar 2007
Posts: 4

Original Poster
Rep: Reputation: 0
edit... got it running!! thanks for all the help guys!

Last edited by jeremic; 03-17-2007 at 05:50 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
What to type in apt-get install to install mysql PHP libraries sarajevo Debian 1 09-29-2005 05:40 AM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM
Accidentally deleted APT. How to re-install apt? Gruzzen Debian 2 11-14-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration