Need help Installing tmwserv on Fedora 10
Posted: 30 Mar 2009, 18:33
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.
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??
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.
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??