Setting up the new v2 server

Discussion in 'Help' started by Garma, Jul 8, 2012.

Moderators: E.T., Zoroark
  1. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Do I need some extra libs for the new v2 server? The strange thing is, version 2.0.02 is running on my laptop (ubuntu 12.04) without any problems, but on my vServer (debian squeeze) it says that I'm missing some libs... So, if yes, Which ones do I need?
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    you need libzip updated, and qt libs.

    What is the error message exactly?
     
  3. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Hmm I used libQtScript.so.4 and so on (copied them from /lib/ to the server folder), and now I'm getting: ./Server: symbol lookup error: ./Server: undefined symbol: _ZN7GenInfo6genMinE
     
  4. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    What's you LD_LIBABRY_PATH? And why would you move libs in the first place?
     
  5. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    LD_LIBRARY_PATH is empty, at least terminal shows a blank line. And I didnt move lib files, I just copied them, otherwise the server application didnt find them xD
     
  6. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    Use start-server script. Or read it at least.
     
  7. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    I'm always running ./start-server --headless
     
  8. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Are you using 64-bit or 32-bit libs?
     
  9. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    I installed them via apt-get, so I think they're 32 bit (the debian version on my vServer is 32bit)
     
  10. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Squeeze contains Qt 4.6, and PO can be compiled against 4.7+ so it may be that the default Qt of Squeeze does not work.
     
  11. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    And how do I get the update? The old server version 1.0.53 worked :x
     
  12. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    I believe Mystra bundled the libraries. I don't think 32-bit version comes with libraries bundled (64-bit comes, I did it myself). I'll see if I can arse myself to get a 32-bit ubuntu up and running for copying the libs later :x
     
  13. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Hmm, ok I will try to run the server on a 64 bit OS.

    Edit:
    Code (text):
    1. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by ./Server)
    2. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libutilities.so.1)
    3. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libpokemonlib.so.1)
    4. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtScript.so.4)
    5. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtSql.so.4)
    6. ./Server: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtGui.so.4)
    7. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtGui.so.4)
    8. ./Server: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtNetwork.so.4)
    9. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtNetwork.so.4)
    10. ./Server: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtCore.so.4)
    11. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libQtCore.so.4)
    12. ./Server: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/64bit/libzip.so.2)
    13.  
    That comes when trying to run 64bit Server on 64 bit Debian.
     
    Last edited: Jul 8, 2012
  14. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    You can temporary add wheezy (or sid if you're brave) to sources.list, apt-get get update and install new Qt. Wheezy is frozen already, should be safer than ever, but be carefull with that.
     
  15. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    I added wheezy to the list, but then it doesn't install anything as I've upgraded everything before.
     
  16. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    That means that pokemonlib isn't up to date, or it doesn't find the correct one. Did you try building from source?
     
  17. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    I just downloaded the zip archive and uploaded it to my server. How do I get the correct pokemonlib?

    Edit: Found the right one. Now it says I'm missing libzip.so.2 xD
     
  18. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Uh-oh, that means your debian squeeze isn't up-to-date enough to have the latest libzip.

    You should have libzip.so.2 on your ubuntu 12.04, somewhere in /usr/lib...

    Code (shell):
    1. $ find /usr/lib/ -name "libzip*"
    2. /usr/lib/libzip.so.2.1.0
    3. /usr/lib/libzip.a
    4. /usr/lib/libzip.so
    5. /usr/lib/pkgconfig/libzip.pc
    6. /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/libzip.so
    7. /usr/lib/vlc/plugins/access/libzip_plugin.so
    8. /usr/lib/libzip.so.2
    9.  
    Copy it over and put it on your server folder.
     
  19. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
  20. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Its only dependency is an older zlib, so it should.
     
  21. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Found the lib and put it into server folder.

    Code (text):
    1. -----------------------
    2. New Server, starting logs
    3. -----------------------
    4.  
    5. Server is running in headless mode
    6. Notice that it is not possible (yet) to configure the server in headless mode!
    7. Please change the configuration manually or in windowed mode.
    8. A web-tool for configuring and maintaining will be implemented later.
    9.  
    10. ./Server: symbol lookup error: ./Server: undefined symbol: _ZN16QCoreApplicationC1ERiPPci
    11.  
     
  22. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Did you test the new download ?
     
  23. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Tried the new 2.0.05 Download. Still getting
    Code (text):
    1. ./Server: symbol lookup error: ./Server: undefined symbol: _ZN16QCoreApplicationC1ERiPPci
    2.  
    ._.
     
  24. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
  25. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Still getting the same error.
     
  26. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    Maybe you should compile it for Qt 4.7.4 @ lamperi?
     
  27. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Well I bundled Qt 4.8 libraries with it, my guess is that Garma is not using the start-server script and it is loading the system Qt libraries.
     
  28. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    And I bet he messed up while moving libraries. It's not Windows, one should not do this.
     
  29. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    I didn't move them, I copied the ones I needed. They're still all in the /lib/ or /usr/lib/ etc. folders too. And what do you mean with "start-server script"? I'm always running ./start-server --headless :x

    Edit: I found out, that instantly after uploading the libzip.so.2 file, the server application fails with symbol lookup error. Maybe theres something wrong with that file?
     
    Last edited: Jul 10, 2012
  30. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Ok, my suggestion is to either compile Qt and PO from sources or upgrading to Wheezy. I am personally running Qt 4.7.0 from sources on squeeze, and couldn't find a way to install the binaries there without getting tons of unresolved dependencies.
     
    Last edited: Jul 10, 2012
  31. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Just missing one last file (I hope so): libc.so.6

    Code (text):
    1. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by ./Server)
    2. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libutilities.so.1)
    3. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libpokemonlib.so.1)
    4. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtScript.so.4)
    5. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtSql.so.4)
    6. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtGui.so.4)
    7. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtGui.so.4)
    8. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtNetwork.so.4)
    9. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtNetwork.so.4)
    10. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.15' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtCore.so.4)
    11. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libQtCore.so.4)
    12. ./Server: /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libc.so.6: version `GLIBC_2.14' not found (required by /home/pop/pokemon-online/v2.0.0/2.0.05/pokemon-online-2.0.02/libzip.so.2)
     
  32. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Like said, you don't want to get libc or glibc replacement ..... just upgrade the system :x
     
  33. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    And how? apt-get upgrade and apt get dist-upgrade don't do anything anymore as I've already upgraded.
     
  34. Garma

    Garma Member

    Joined:
    Nov 23, 2011
    Messages:
    80
    Likes Received:
    0
    Never mind, got it running on Ubuntu 12.04.
     
  35. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    Have you done apt-get update?
     
Moderators: E.T., Zoroark