Page 1 of 1

Need help Installing tmwserv on Fedora 10

Posted: 30 Mar 2009, 18:33
by niacc.edu
Thanks for the help in advanced.

WHAT I'M I MISSING??

First: Where I'll start where I'm stuck and then all the steps to get there.

After doing the make install
it placed tmwserv-account tmwserv-game into /usr/local/bin
[root@localhost bin]# ls
ccmake cmake cpack ctest curl curl-config sdl-config test_physfs tmw.db tmwserv-account tmwserv-game tmwserv.xml xml2-config xmlcatalog xmllint

When I try to start the tmwserv-account followed by the tmwserv-game I get the following error:
[root@localhost bin]# ./tmwserv-account
./tmwserv-account: error while loading shared libraries: libphysfs.so.1: cannot open shared object file: No such file or directory
[root@localhost bin]# ./tmwserv-game
./tmwserv-game: error while loading shared libraries: libphysfs.so.1: cannot open shared object file: No such file or directory

libphysfs.so.1 is located in /usr/bin/lib

so I copied tmwserv-account and tmwserv-gamethe into lib:
[root@localhost lib]# ls
libcurl.a libguichan_opengl.la libSDL-1.2.so.0 libSDL_mixer.la libxml2.a
libcurl.la libguichan_opengl.so libSDL-1.2.so.0.11.2 libSDL_mixer.so libxml2.la
libcurl.so libguichan_sdl-0.8.1.so.1 libSDL.a libSDL_net-1.2.so.0 libxml2.so
libcurl.so.4 libguichan_sdl-0.8.1.so.1.0.0 libSDL_image-1.2.so.0 libSDL_net-1.2.so.0.0.7 libxml2.so.2
libcurl.so.4.1.1 libguichan_sdl.a libSDL_image-1.2.so.0.1.6 libSDL_net.a libxml2.so.2.7.3
libenet.a libguichan_sdl.la libSDL_image.a libSDL_net.la libz.a
libguichan-0.8.1.so.1 libguichan_sdl.so libSDL_image.la libSDL_net.so pkgconfig
libguichan-0.8.1.so.1.0.0 libguichan.so libSDL_image.so libSDL.so python2.5
libguichan.a libphysfs.a libSDL.la libSDL_ttf-2.0.so.0 tmwserv-account
libguichan.la libphysfs.so libSDLmain.a libSDL_ttf-2.0.so.0.6.3 tmwserv-game
libguichan_opengl-0.8.1.so.1 libphysfs.so.1 libSDL_mixer-1.2.so.0 libSDL_ttf.a xml2Conf.sh
libguichan_opengl-0.8.1.so.1.0.0 libphysfs.so.1.1.1 libSDL_mixer-1.2.so.0.2.6 libSDL_ttf.la
libguichan_opengl.a libphysfs.so.2.0.0 libSDL_mixer.a libSDL_ttf.so
[root@localhost lib]# ./tmwserv-account
./tmwserv-account: error while loading shared libraries: libphysfs.so.1: cannot open shared object file: No such file or directory
[root@localhost lib]# ./tmwserv-game
./tmwserv-game: error while loading shared libraries: libphysfs.so.1: cannot open shared object file: No such file or directory
[root@localhost lib]#

Same Result:

Here are the step from the beginning I used in compiling tmwserv:

Running tmwserv

1. Install and/or prepare your database backend
2. Prepare configuration file tmwserv.xml
3. Get tmwdata from Git and put it into the data directory where you will be running the game server from.
4. Start the account server before starting the game server.

First start a new fedora 10 box from scratch:

Database setup:
1) Add the package SQLite
2) sqlite3 tmw.db
3) Next (You need to GIT git://gitorious.org/tmwserv/mainline.git) so you can complete step 4
4) .read ~/tmwserv/src/sql/sqlite/createTables.sql
5) .tables
6) Next you need to cd ~/tmwserv/doc to get a copy of tmwserv.xml

You then need to remove the comments to end SQLite
<!--
SQLite specific configuration.

sqlite_database: name and path to the sqlite database file
optional, default="tmw.db"
-->
<option name="sqlite_database" value="tmw.db"/>

7) Prepare configuration file tmwserv.xml
I believe the above SQLite change is the only needed change and the rest of the defaults should work.

8) Get tmwdata from Git and put it into the data directory where you will be running the game server from.

mkdir tmw
git clone git://gitorious.org/tmwserv/mainline.git tmwserv
git clone git://gitorious.org/tmwserv-data/mainline.git tmwdata

9) Start the account server before starting the game server
cd tmwserv
autoreconf -i
./configure
make
** Needed to login as root to do the next
make install

10) Configured tmwserv.xml and tmw.db

Copy into tmwserv.xml and tmw.db /usr/local/bin

This then returns me to the top.

WHAT I'M I MISSING??

Re: Need help Installing tmwserv on Fedora 10

Posted: 31 Mar 2009, 16:28
by niacc.edu
The problem is physfs-2.0.0 install to /usr/local/lib by default and you need to have it installed into /usr/lib

You can then run "ccmake ." and customize the build,
but the defaults are probably okay.

One step closer

Re: Need help Installing tmwserv on Fedora 10

Posted: 09 Dec 2009, 11:00
by vadenasy
How do I get Grub to allow me to boot into XP, the restore console, or Fedora? I just installed Fedora Core 6, Test 1 on my machine. I kept my XP system on the same machine. The Grub boot loader allows me to boot to Fedora or "other." The problem is, "other" is the XP recovery console. Is it possible to configure Grub to allow me to choose Fedora, XP, or recovery console.? If so can I do it without reinstalling Linux?
_______________________
external keyword tool ~ keyworddiscovery.com ~ keycompete.com ~ compete.com ~ webmasterworld.com

Re: Need help Installing tmwserv on Fedora 10

Posted: 09 Dec 2009, 11:59
by TheBasilisk
vadenasy wrote:How do I get Grub to allow me to boot into XP, the restore console, or Fedora? I just installed Fedora Core 6, Test 1 on my machine. I kept my XP system on the same machine. The Grub boot loader allows me to boot to Fedora or "other." The problem is, "other" is the XP recovery console. Is it possible to configure Grub to allow me to choose Fedora, XP, or recovery console.? If so can I do it without reinstalling Linux?
that's nothing to do with tmw. -.-

Re: Need help Installing tmwserv on Fedora 10

Posted: 09 Dec 2009, 12:06
by DarkLord
Why do people stay with older Linux Operating Systems when new ones come out? They're free, why not upgrade. I did. I have Fedora 12 xD and Ubuntu 9.10 and Windows 7 Ultimate. I like all :P

Re: Need help Installing tmwserv on Fedora 10

Posted: 09 Dec 2009, 13:13
by Kage
DarkLord wrote:Why do people stay with older Linux Operating Systems when new ones come out? They're free, why not upgrade. I did. I have Fedora 12 xD and Ubuntu 9.10 and Windows 7 Ultimate. I like all :P
Some people like stability.

Re: Need help Installing tmwserv on Fedora 10

Posted: 09 Dec 2009, 14:17
by LtCol KILGORE
Kage wrote:
DarkLord wrote:Why do people stay with older Linux Operating Systems when new ones come out?
They're free, why not upgrade. I did. I have Fedora 12 xD and Ubuntu 9.10 and Windows 7 Ultimate. I like all :P
Some people like stability.
yep ...
there's even a name for it in UBUNTU : LTS ... Long Term Support

~ Don't forget son that Linux remains a free (crossing fingers) UNIX usable by professionals (including some optional support at extra charge) ...

Re: Need help Installing tmwserv on Fedora 10

Posted: 11 Dec 2009, 07:26
by DarkLord
Ah yes I get it. I still prefer to have the latest version xD

Re: Need help Installing tmwserv on Fedora 10

Posted: 11 Dec 2009, 11:55
by LtCol KILGORE
DarkLord wrote:I still prefer to have the latest version
Very sensible choice my boy :

as long as you live in a country where working is illegal for kids, you're not supposed to detain a "professional" version of any OS/software ...

~ Keep this L.T.S. UBUNTU for your dad and mum, please ...