From The Mana World
 
Line 3: Line 3:
== (K)Ubuntu ==
== (K)Ubuntu ==


<b>REQUIRES:</b> bash, wget, tar.
[http://forums.themanaworld.org/viewtopic.php?p=45092#p45092 http://forums.themanaworld.org/viewtopic.php?p=45092#p45092]
 
To use this script simply open a text editor, paste, and save as "tmw-install.sh". (See below the script for directions)
 
<pre>
# This is the tmw STABLE install script, for version 0.0.26 of tmw, and
# 0.8.1 of guichan.
# This script especially made for Ubuntu/Kubuntu 8.04.1 Hardy Heron
# This script is licensed under the GPL v.2
# The contributors and creators to/of this script disclaim
# all warranties and liability, and are not responsible for damages/losses
# of any kind.
# bash, wget, and tar are required for this script.
 
sudo apt-get install build-essential libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl1.2-dev libphysfs-dev zlib1g-dev libxml2-dev libcurl4-gnutls-dev
mkdir ~/programs
mkdir ~/programs/tmw
mkdir ~/src
cd ~/src
wget http://guichan.googlecode.com/files/guichan-0.8.1.tar.gz
tar -vzxf guichan-0.8.1.tar.gz
cd guichan-0.8.1
./configure --prefix=$HOME/programs/tmw
make
make install
cd ~/src
wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.26.tar.gz
tar -vzxf tmw-0.0.26.tar.gz
cd tmw-0.0.26
export LDFLAGS="$LDFLAGS -L$HOME/programs/tmw/lib"
export CPPFLAGS="$CPPFLAGS -I$HOME/programs/tmw/include"
./configure --prefix=$HOME/programs/tmw
make
make install
cd ~
</pre>
 
First we need to get it so that it can be used, type this in the nearest terminal:
 
<pre>
chmod u+x tmw-install.sh
</pre>
 
Then type this:
 
<pre>
./tmw-install.sh
</pre>
 
And ta-da! Wait for it to finish running and then run tmw using this command: (see below for directions)
 
<pre>
# This is the tmw STABLE run script, for version 0.0.26 of tmw
# This script is licensed under the GPL v.2
# The contributors and creators to/of this script disclaim
# all warranties and liability, and are not responsible for damages/losses
# of any kind.
# bash is required for this script.
 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/programs/tmw/lib &&
$HOME/programs/tmw/bin/tmw
</pre>
 
Now copy, paste into a text editor, and save as tmw.sh.
 
Then run this:
<pre>
chmod u+x tmw.sh
</pre>
 
and now you can start tmw simply by typing:
 
<pre>
./tmw.sh
</pre>

Latest revision as of 00:06, 10 December 2008

As many of you know, compiling software can be difficult for new users to Linux, so I have devised shell scripts to solve this issue.

(K)Ubuntu

http://forums.themanaworld.org/viewtopic.php?p=45092#p45092