[Guide] How to install Pokemon Online (completely step by step) [linux]

Discussion in 'Help' started by masterhigh, Jun 4, 2010.

Moderators: E.T., Zoroark
  1. Rhythmatic

    Rhythmatic New Member

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Code (text):
    1. kingpin@BONSAITREE:~/pogeymon-online$ make
    2. compiling utilities.
    3. qmake -makefile -o src/PokemonInfo/Makefile src/PokemonInfo/PokemonInfo.pro
    4. make -C src/PokemonInfo
    5. make[1]: Entering directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    6. rm -f libpokemonlib.so.1.0.0 libpokemonlib.so libpokemonlib.so.1 libpokemonlib.so.1.0
    7. g++ -Wl,-O1 -shared -Wl,-soname,libpokemonlib.so.1 -o libpokemonlib.so.1.0.0 pokemonstructs.o pokemoninfo.o networkstructs.o movesetchecker.o battlestructs.o teamsaver.o moc_teamsaver.o   -L/usr/lib -L../../bin -lutilities -lzip -lQtXml -lQtGui -lQtCore -lpthread  
    8. /usr/bin/ld: cannot find -lutilities
    9. collect2: ld returned 1 exit status
    10. make[1]: *** [../../bin/libpokemonlib.so.1.0.0] Error 1
    11. make[1]: Leaving directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    12. make: *** [src/PokemonInfo/PokemonInfo.pro] Error 2
    13. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    14. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    15. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    16. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    17. kingpin@BONSAITREE:~/pogeymon-online$ sudo git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    18. sudo: cannot get working directory
    19. [sudo] password for kingpin:
    20. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    21. kingpin@BONSAITREE:~/pogeymon-online$ sudo git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    22. sudo: cannot get working directory
    23. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    24. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    25. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    26. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online
    27. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    28. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    29. fatal: could not create work tree dir 'pogeymon-online'.: No such file or directory
    30. kingpin@BONSAITREE:~/pogeymon-online$ ^C
    31. kingpin@BONSAITREE:~/pogeymon-online$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online (read-only)
    32. bash: syntax error near unexpected token `('
    33. kingpin@BONSAITREE:~/pogeymon-online$ cd ~
    34. kingpin@BONSAITREE:~$ git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    35. Initialized empty Git repository in /home/kingpin/pogeymon-online/.git/
    36. remote: Counting objects: 21157, done.
    37. remote: Compressing objects: 100% (6203/6203), done.
    38. remote: Total 21157 (delta 16446), reused 19135 (delta 14815)
    39. Receiving objects: 100% (21157/21157), 86.46 MiB | 794 KiB/s, done.
    40. Resolving deltas: 100% (16446/16446), done.
    41. kingpin@BONSAITREE:~$ cd pogeymon-online/
    42. kingpin@BONSAITREE:~/pogeymon-online$ make
    43. compiling utilities.
    44. qmake -makefile -o src/PokemonInfo/Makefile src/PokemonInfo/PokemonInfo.pro
    45. make -C src/PokemonInfo
    46. make[1]: Entering directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    47. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o pokemonstructs.o pokemonstructs.cpp
    48. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o pokemoninfo.o pokemoninfo.cpp
    49. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o networkstructs.o networkstructs.cpp
    50. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o movesetchecker.o movesetchecker.cpp
    51. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o battlestructs.o battlestructs.cpp
    52. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o teamsaver.o teamsaver.cpp
    53. /usr/bin/moc-qt4 -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. teamsaver.h -o moc_teamsaver.cpp
    54. g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -o moc_teamsaver.o moc_teamsaver.cpp
    55. rm -f libpokemonlib.so.1.0.0 libpokemonlib.so libpokemonlib.so.1 libpokemonlib.so.1.0
    56. g++ -Wl,-O1 -shared -Wl,-soname,libpokemonlib.so.1 -o libpokemonlib.so.1.0.0 pokemonstructs.o pokemoninfo.o networkstructs.o movesetchecker.o battlestructs.o teamsaver.o moc_teamsaver.o   -L/usr/lib -L../../bin -lutilities -lzip -lQtXml -lQtGui -lQtCore -lpthread  
    57. /usr/bin/ld: cannot find -lutilities
    58. collect2: ld returned 1 exit status
    59. make[1]: *** [../../bin/libpokemonlib.so.1.0.0] Error 1
    60. make[1]: Leaving directory `/home/kingpin/pogeymon-online/src/PokemonInfo'
    61. make: *** [src/PokemonInfo/PokemonInfo.pro] Error 2
    End result is the same. I'm using that for my download command. Is that incorrect?

    Code (text):
    1. git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
     
  2. Lamperi

    Lamperi I see what you did there

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

    Rhythmatic New Member

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Code (text):
    1. kingpin@BONSAITREE:~/pogeymon-online$ git pull origin master
    2. From git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    3.  * branch            master     -> FETCH_HEAD
    4. Already up-to-date.
    And here is a link to my makefile. It does not appear to have a space at the beginning of line 24. Any other ideas?

    EDIT:

    If it helps, I am on Ubuntu 10.10 x86_64.
     
  4. Rhythmatic

    Rhythmatic New Member

    Joined:
    Apr 7, 2011
    Messages:
    4
    Likes Received:
    0
    Bump for compilation help.
     
  5. zuargo

    zuargo New Member

    Joined:
    Apr 4, 2011
    Messages:
    5
    Likes Received:
    0
    It seems exists other problem in the makefile.

    When I updated the source I neither could compile the app, so I removed the spaces in the beginning of the lines 25 and 26 and after I added, at the beginning, one space to each named line by myself.

    It was successful.

    Sorry, for not reporting this earlier, but I was very very fun playing :P

    Now I will update again the source and I will see if this problem still is there, or any other error or problem for reporting.
     
    Last edited: Apr 10, 2011
  6. Skios

    Skios New Member

    Joined:
    Apr 24, 2011
    Messages:
    13
    Likes Received:
    0
    These are instructions on installing the 32 bit version of Ubuntu 10.10 through the terminal. I've found that there are some packages missing from the guide in the initial post, and the .tar.gz file that's referenced to only works on 64 bit versions.

    1. Open up a terminal.

    2. Install the packages required for installation by typing:
    Code (text):
    1. sudo apt-get install libphonon4 libphonon-dev libqtgui4 libqtcore4 libqt4-xml libqt4-network libzip1 libqt4-script libqt4-sql-sqlite qt4-dev-tools qt4-qmake g++ git-core gitosis
    This will take up quite a bit of space, but you can remove them once you've compiled the game.

    3. Once you've installed everything, go to the folder where you want to install the game and type
    Code (text):
    1. git clone git://pogeymon-online.git.sourceforge.net/gitroot/pogeymon-online/pogeymon-online
    This will take the online repository and install it in the folder "pogeymon-online".

    4. Go to the folder and type the following commands:
    Code (text):
    1. touch Makefile
    2. make
    If you did this right, a bunch of text will be scrolling across your screen. This could take a few minutes.

    5. You can now start Pokemon Online by running the start-client script in the /bin/ folder. To run a server, run start-server.
     
  7. sodark

    sodark New Member

    Joined:
    May 2, 2012
    Messages:
    3
    Likes Received:
    0
    I'm installing Pokemon Online Server in a Debian 6.0. And when I launch start-server I get this information from terminal. This Debian don't have any interface, it's only console mode.

    Code (text):
    1. root@GAMESERVER:/GAMESERVERS/Pokemon-online/bin# ./start-server
    2.  
    3. -----------------------
    4. New Server, starting logs
    5. -----------------------
    6.  
    7. Server is running in windowed mode
    8. Server: cannot connect to X server
    9. root@GAMESERVER:/GAMESERVERS/Pokemon-online/bin#
    10.  
    I've got installed all libs that listed in this post. Is imposible to launch in Daemon mode?
     
  8. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    PO doesn't have daemon mode, but you can run it in screen/tmux. Just use ./start-server --headless inside screen and you get it running without GUI.
     
  9. Kalashnikov

    Kalashnikov Despite the code quality

    Joined:
    Apr 4, 2011
    Messages:
    434
    Likes Received:
    0
    And don't run it from root.
     
  10. sodark

    sodark New Member

    Joined:
    May 2, 2012
    Messages:
    3
    Likes Received:
    0
    Ok, I will do that, but how can I configure the server without interface?
     
  11. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
    Erm, copy the config.ini from already configured server is the easiest way to go :<
     
  12. sodark

    sodark New Member

    Joined:
    May 2, 2012
    Messages:
    3
    Likes Received:
    0
    And the last thing. I'm trying to configure the Server to connect to a MySQL DB that is in the same machine.

    Y have this config file

    Code (text):
    1. [General]
    2. server_port=5080
    3. sql_driver=0
    4. sql_db_name=Pokemon
    5. sql_db_port=3306
    6. sql_db_user=Pokemon
    7. sql_db_pass=password****
    8. sql_db_host=192.168.0.10
    I reboot the all the Debian server and after I go to see if there are tables in the DB that I created before, but nothing is writed, no tables created... etc..

    How can I export the DB Estructure, or what I'm doing wrong.

    Thanks



    EDIT: Autosolved, I changed the driver from 0 to 2.
     
  13. zak

    zak New Member

    Joined:
    Dec 20, 2014
    Messages:
    1
    Likes Received:
    0
    what website do i download the tar.gz file from?
     
  14. turbedi

    turbedi Professional circle clicker ~~~ Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jul 18, 2013
    Messages:
    385
    Likes Received:
    155
    PO Trainer Name:
    turbedi
  15. bitcoins

    bitcoins the one with the silver psp and linux!

    Joined:
    Jan 16, 2015
    Messages:
    1
    Likes Received:
    0
    I am currently trying to use the PlayDeb repository for this game. The download is taking a while, but if it works i will come back with results and instructions.

    EDIT: Apparently this client works! here is what I did:
    I went to Ubuntu Software Center > Edit > Software Sources... (or System > Administration > Software Sources... in other Distros) and added this repository:
    Code (text):
    1. deb http://archive.getdeb.net/ubuntu utopic-getdeb games
    in your Third-Party Software/Other Software section.

    Then you put this string:
    Code (text):
    1. wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
    in your terminal. (It's a key to open the repository.)

    Then of course you update your software sources and install the game! Here, for you:
    Code (text):
    1. sudo apt-get update && sudo apt-get install pokemon-online-client
    See if it works for you!
     
    Last edited: Jan 17, 2015
Moderators: E.T., Zoroark