Author Topic: 2.6.5 zlib problem [solved]  (Read 23563 times)

0 Members and 1 Guest are viewing this topic.

Offline Vermithrax

  • Major
  • *
  • Posts: 88
  • Noob
2.6.5 zlib problem [solved]
« on: May 21, 2009, 07:19:57 am »
Hey,

i'm currently tring to run the new version of the soldat dedicated server on my linux vRoot.
I downloaded the .zip and unzipped it, changed the adminpassword and port in the soldat.ini and uploaded on my vroot, after unzipping it i command "chmod 0775 soldatserver", and tried to run it with "./soldatserver -d" but i get every time this error:
Quote
./soldatserver: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory

I'm using Debian 5.0 + SysCP 1.4.2.1- 64 Bit .

Could someone help me? 264 still works great for my currently servers...
« Last Edit: May 24, 2009, 01:52:53 pm by Vermithrax »
English mark: 6 ^^...

typing errors are special effects! :)

All servers are offline!

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: Need help running 265 on linux
« Reply #1 on: May 21, 2009, 07:26:09 am »
Quoting from #soldat.devs:

Quote
<BLah^> ./soldatserver: error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory
<zakath> BLah^: cd /usr/lib/;ln -s libz.so.1 libz.so
<EnEsCe> BLah^, apt-get install zlib1g

Either of those solutions ought to work.

Offline Vermithrax

  • Major
  • *
  • Posts: 88
  • Noob
Re: Need help running 265 on linux
« Reply #2 on: May 21, 2009, 07:38:42 am »
Ah... thank ya dude :).
English mark: 6 ^^...

typing errors are special effects! :)

All servers are offline!

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Need help running 265 on linux
« Reply #3 on: May 21, 2009, 11:34:02 am »
Stickied and changed topic to something more descriptive.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: 2.6.5 zlib problem [solved]
« Reply #4 on: May 21, 2009, 03:55:25 pm »
Ah... thank ya dude :).
For future reference, it might be helpful if you mentioned what Linux distribution you're using for this.
There are other worlds than these

Offline rumpel

  • Camper
  • ***
  • Posts: 410
Re: 2.6.5 zlib problem [solved]
« Reply #5 on: May 26, 2009, 11:57:47 am »
***/soldat-0 # apt-get install zlib1g
-bash: apt-get: command not found
***/soldat-0 # cd /usr/lib/;ln -s libz.so.1 libz.so
lvps92-51-132-138:/usr/lib # ln -s libz.so.1 libz.so
ln: creating symbolic link `libz.so': File exists

so what
banned.

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: 2.6.5 zlib problem [solved]
« Reply #6 on: May 26, 2009, 12:58:33 pm »
***/soldat-0 # apt-get install zlib1g
-bash: apt-get: command not found
***/soldat-0 # cd /usr/lib/;ln -s libz.so.1 libz.so
lvps92-51-132-138:/usr/lib # ln -s libz.so.1 libz.so
ln: creating symbolic link `libz.so': File exists

so what

which distribution? also it seems like you have the file already so should work anyways

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline rumpel

  • Camper
  • ***
  • Posts: 410
Re: 2.6.5 zlib problem [solved]
« Reply #7 on: May 26, 2009, 01:37:37 pm »
its suse, and no it does not work
banned.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: 2.6.5 zlib problem [solved]
« Reply #8 on: May 26, 2009, 03:57:19 pm »
Since you're on Suse, Debian/Ubuntu's apt obviously won't work.

Run as root:
yum install zlib
There are other worlds than these

Offline Sauron

  • Soldier
  • **
  • Posts: 169
  • Call me "Uncle Sam"
Re: 2.6.5 zlib problem [solved]
« Reply #9 on: May 30, 2009, 02:21:50 pm »
Debian:
1)update library
2)delete old "symbolic link" for this library
3)make new
4)start server

Code: [Select]
apt-get autoremove
apt-get install zlib1g
apt-get update
cd /usr/lib
rm libz.so
ln -s libz.so.1 libz.so

cd /(soldat server folder)
./soldatserver
« Last Edit: May 30, 2009, 02:25:25 pm by Sauron »

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: 2.6.5 zlib problem [solved]
« Reply #10 on: May 31, 2009, 04:05:15 pm »
Sauron, he already said he wasn't on Debian. He's on Suse, which uses yum, not apt. The other commands you mentioned are most likely relevant though.

And I already talked to rumpel, my command worked for him.
There are other worlds than these

Offline Sauron

  • Soldier
  • **
  • Posts: 169
  • Call me "Uncle Sam"
Re: 2.6.5 zlib problem [solved]
« Reply #11 on: May 31, 2009, 06:07:52 pm »
jrgp I wasn`t talking to him I was talking to all.This help me solve problem on Debian. ;)

Offline MetsuriTossavainen

  • Camper
  • ***
  • Posts: 267
  • The Chainsaw Wizard
Re: 2.6.5 zlib problem [solved]
« Reply #12 on: June 02, 2009, 10:27:31 am »
It's fun to use very complicated ways to make the server working. We're having lots of fun!

Thanks EnEsCe!

EDIT: Oh yeah, I tried those solutions which were shown at the topic but that didn't solve the problem.

It still says that "error while loading shared libraries: libz.so: cannot open shared object file: No such file or directory"
« Last Edit: June 02, 2009, 11:30:54 am by MetsuriTossavainen »

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: 2.6.5 zlib problem [solved]
« Reply #13 on: June 20, 2009, 02:29:09 pm »
As MetsuriTossavainen described, for some the problem won't get solved even by installing and creating the symbolic link, doing the exact same which has been described in this thread.

EDIT: Actually the solution works, when the symbolic link is done in /usr/lib32 instead of /usr/lib. :)
« Last Edit: June 20, 2009, 02:41:46 pm by Clawbug »
Fight! Win! Prevail!

Offline MetsuriTossavainen

  • Camper
  • ***
  • Posts: 267
  • The Chainsaw Wizard
Re: 2.6.5 zlib problem [solved]
« Reply #14 on: June 21, 2009, 01:34:25 pm »
The lib-folder was just lib, no lib32/lib64 or anything like it.

But, I found out that "libz.so" in lib folder was "unreadable". Maybe that explanes the problem. Anyone knows how to fix it?
« Last Edit: June 21, 2009, 01:36:39 pm by MetsuriTossavainen »

Offline Clawbug

  • Veteran
  • *****
  • Posts: 1393
  • 1184!
Re: 2.6.5 zlib problem [solved]
« Reply #15 on: June 21, 2009, 06:03:10 pm »
Have you tried changing the file permissions?
Fight! Win! Prevail!

Offline The Tapsa

  • Major(1)
  • Posts: 12
Re: 2.6.5 zlib problem [solved]
« Reply #16 on: June 22, 2009, 10:22:17 am »
I even tried installing OS again but still it doesn't work.

Code: [Select]
$ /home/<my_username>/soldatserver265/soldatserver
bash: /home/<my_username>/soldatserver265/soldatserver: Tiedostoa tai hakemistoa ei ole

and "Tiedostoa tai hakemistoa ei ole" means File or directory does not exist.

OS is Ubuntu 9.04 64bit.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: 2.6.5 zlib problem [solved]
« Reply #17 on: June 22, 2009, 10:57:11 am »
That is an irrelevant issue to the zlib problem. Please create your own topic Tapsa.

Offline The Tapsa

  • Major(1)
  • Posts: 12
Re: 2.6.5 zlib problem [solved]
« Reply #18 on: June 22, 2009, 11:22:48 am »
By the way...Wine seems to cause the problem with libz.so.
When I install wine and try to run soldatserver I get the "error while loading shared libraries: libz.so: cannot open shared object file" message, but after uninstalling wine problem with libz.so disappeared too.

Offline meneldil

  • Major(1)
  • Posts: 3
  • RaveN
Re: 2.6.5 zlib problem [solved]
« Reply #19 on: July 07, 2009, 10:34:46 am »
Ok... I'll try to write a more universal guide...



Step 1
Making sure you have the newest package installed.


Debian-based systems:

Code: [Select]
apt-get update
apt-get install zlib1g

If it says you already have the newest version:

Code: [Select]
apt-get --reinstall install zlib1g

Red-Hat, Suse:

I never used yum, but try this:

Code: [Select]
yum install zlib1g

Now try to run your soldat server. If the problem remains, proceed to step 2.



Step 2
Creating a symbolic link to the library.

First, a good starting point would be checking the lib paths in your system.

In Ubuntu, you can find those in this text file:
Code: [Select]
/etc/ld.so.conf.d/libc.conf
Under Debian, as far as i remember, they should be in this file:
Code: [Select]
/etc/ld.so.conf
I have no clue about other distributions, you'll have to google that (try searching for "red-hat lib paths", replacing red-hat with your linux distribution name).

So, you should have one or more paths to lib folders. Start searching, you should find libz.so.1 in one of them. Once you're in a folder with this file, type:

Code: [Select]
ln -s libz.so.1 libz.so
Haven't found libz.so.1? Don't worry, I had the same problem. Carry on, there's still step 3...  ;)



Step 3
Desperate search for libz.so.1.

Still reading this? That probably means your zlib1g was installed in a folder that isn't included in your system's lib paths. Well, you just have to find libz.so.1. Check those folders:

Code: [Select]
/lib
/usr/lib
/usr/local/lib (though it shouldn't be there)

Not there? I didn't want to resort to this before (since it might take some time), but...:
Code: [Select]
find / -name 'libz*'
Once you have the path to your libz.so.1, add it to the file containing sys lib paths (the one i spoke about in step 2). Of course, don't include the file itself in the path (e.g. don't add "/lib/libz.so", but just "/lib").

If there's no libz.so in this folder, you have to create a symbolic link named libz.so (step 2).



So, that's it. I was writing this off the top of my head, so correct me if anything's wrong.