Ubuntu install/uninstall scripts for TMW stable

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

SUPPORT FOR OTHER LINUX DISTRIBUTIONS IN THE SCRIPT HAS BEEN DROPPED AS OF 12/9/08! UBUNTU SUPPORT REMAINS

---------

THE FILE STRUCTURE FOR THE INSTALL SCRIPT HAS CHANGED, THIS HAS BEEN ADDRESSED IN THE SCRIPTS FOR UNINSTALLING AND UPGRADING. YOU MUST USE THE FULL UNINSTALL SCRIPT FOR TMW 0.0.27 IF YOU INSTALLED PRIOR TO 12/24/08, AND THEN USE THE INSTALL SCRIPT BELOW!

--------

These scripts do not include tmw's music


INDEX:

Installing The Mana World 0.0.27
Uninstalling 0.0.26 & Updating to 0.0.27 (If you used the script before 12/24/08)
Completely removing The Mana World & Guichan (If you used the script before 12/24/08)
Completely removing The Mana World & Guichan (If you used the script after 12/23/08)
Migrating to the new file structure in version 0.0.27 (Required for future versions of the scripts)

-----------

This is the script for installing The Mana World 0.0.27 on Ubuntu:

Code: Select all

# This is the tmw STABLE install script, for version 0.0.27 of tmw, and
# 0.8.1 of guichan.
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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 ~/.programs/src
cd ~/.programs/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 ~/.programs/src
wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.27.tar.gz
tar -vzxf tmw-0.0.27.tar.gz
cd tmw-0.0.27
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 ~
Now open a text editor, and save as "tmw27-install.sh" to your home folder, and then run this command in a terminal:

Code: Select all

chmod u+x tmw27-install.sh
now run the script using this command:

Code: Select all

./tmw27-install.sh
Now wait for it to finish and use this script to run:

Code: Select all

# This is the tmw STABLE run script, for version 0.0.27 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
Open a text editor, save as "tmw.sh" to your home folder, and then run this command:

Code: Select all

chmod u+x tmw.sh
then you can simply run tmw by running this command:

Code: Select all

./tmw.sh
Last edited by kr0n05931 on 24 Dec 2008, 21:08, edited 14 times in total.
Lazy bum.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Uninstalling 0.0.26 and updating to 0.0.27

--------
If you installed via 'sudo apt-get install tmw' please run this instead of this script, and use the script in the above post for installing:

Code: Select all

sudo apt-get remove tmw
--------

This guide is for those interested in updating their The Mana World installation if they used the former 0.0.26 script.

First use the uninstall script for 0.0.26:

Code: Select all

# This is the tmw STABLE uninstall script, for version 0.0.26 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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 and make are required for this script.

cd ~/src/tmw-0.0.26
make uninstall
cd ~/src/guichan-0.8.1
make uninstall
cd ~/src
rm -rf tmw-0.0.26
rm -rf tmw-0.0.26.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
Now open a text editor, save as "tmw26-uninstall.sh" to your home folder, and then run this command in a terminal:

Code: Select all

chmod u+x tmw26-uninstall.sh
now run the script:

Code: Select all

./tmw26-uninstall.sh
Now simply wait for it to stop and finish uninstalling. Note that this does not remove the guichan library, this script assumes that you plan on updating to 0.0.27.

After that use this script:

Code: Select all

# This is the tmw STABLE crossover install script, for version 0.0.27 of tmw, and
# 0.8.1 of guichan.
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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, 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, and tar are required for this script.

mkdir ~/.programs
mkdir ~/.programs/tmw
mkdir ~/.programs/src
cd ~/.programs/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 ~/.programs/src
wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.27.tar.gz
tar -vzxf tmw-0.0.27.tar.gz
cd tmw-0.0.27
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 ~
Now open a text editor, save as "tmw27-upgrade.sh" to your home folder, and run this command in a terminal:

Code: Select all

chmod u+x tmw27-upgrade.sh
Now execute the script:

Code: Select all

./tmw27-upgrade.sh
and simply wait for it to finish installing. Afterwards you can run it using the very same script used to run your previous installation:

Code: Select all

# This is the tmw STABLE run script, for version 0.0.27 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
Open a text editor, save as "tmw.sh" to your home folder, and then run this command in a terminal:

Code: Select all

chmod u+x tmw.sh
and now you can simply run version 0.0.27 of TMW using this command:

Code: Select all

./tmw.sh
Last edited by kr0n05931 on 24 Dec 2008, 21:06, edited 9 times in total.
Lazy bum.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Completely uninstalling The Mana World and Guichan:

Completely uninstalling The Mana World 0.0.26 and Guichan 0.8.1:

Uninstall script:

Code: Select all

# This is the tmw STABLE uninstall script, for version 0.0.26 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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 and make are required for this script.

cd ~/src/tmw-0.0.26
make uninstall
cd ~/src/guichan-0.8.1
make uninstall
cd ~/src
rm -rf tmw-0.0.26
rm -rf tmw-0.0.26.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
To run this script open a text editor, save as "tmw26-uninstall-full.sh" save to your home folder, and then run this command:

Code: Select all

chmod u+x tmw26-uninstall-full.sh
then to run the script run:

Code: Select all

./tmw26-uninstall-full.sh
Wait for it to finish and you have completely uninstalled The Mana World 0.0.26 and Guichan 0.8.1.

---------------


Completely uninstalling The Mana World 0.0.27 and Guichan 0.8.1 (If you used the install script before 12/24/08):

Uninstall script:

Code: Select all

# This is the tmw STABLE uninstall script, for version 0.0.27 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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 and make are required for this script.

cd ~/src/tmw-0.0.27
make uninstall
cd ~/src/guichan-0.8.1
make uninstall
cd ~/src
rm -rf tmw-0.0.27
rm -rf tmw-0.0.27.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
To run this script open a text editor, save as "tmw27-uninstall-full.sh" save to your home folder, and then run this command:

Code: Select all

chmod u+x tmw27-uninstall-full.sh
then to run the script run:

Code: Select all

./tmw27-uninstall-full.sh
Wait for it to finish and you have completely uninstalled The Mana World 0.0.27 and Guichan 0.8.1.
Last edited by kr0n05931 on 24 Dec 2008, 21:05, edited 5 times in total.
Lazy bum.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Completely uninstalling The Mana World 0.0.27 and Guichan 0.8.1 (If you used the install script after 12/23/08):

Uninstall script:

Code: Select all

# This is the tmw STABLE uninstall script, for version 0.0.27 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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 and make are required for this script.

cd ~/.programs/src/tmw-0.0.27
make uninstall
cd ~/.programs/src/guichan-0.8.1
make uninstall
cd ~/.programs/src
rm -rf tmw-0.0.27
rm -rf tmw-0.0.27.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
To run this script open a text editor, save as "tmw27-uninstall-full.sh" save to your home folder, and then run this command:

Code: Select all

chmod u+x tmw27-uninstall-full.sh
then to run the script run:

Code: Select all

./tmw27-uninstall-full.sh
Wait for it to finish and you have completely uninstalled The Mana World 0.0.27 and Guichan 0.8.1.
Last edited by kr0n05931 on 24 Dec 2008, 21:05, edited 2 times in total.
Lazy bum.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Migrating to the new file structure:

Open a text editor and paste this into it:

Code: Select all

# This is the tmw STABLE move script, for version 0.0.27 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# 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, 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, and tar are required for this script.

cd ~/src/tmw-0.0.27
make uninstall
cd ~/src/guichan-0.8.1
make uninstall
cd ~/src
rm -rf tmw-0.0.27
rm -rf tmw-0.0.27.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
mkdir ~/.programs
mkdir ~/.programs/tmw
mkdir ~/.programs/src
cd ~/.programs/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 ~/.programs/src
wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.27.tar.gz
tar -vzxf tmw-0.0.27.tar.gz
cd tmw-0.0.27
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 ~
save it as "tmw-move.sh" to your home directory and use this command after you save it:

Code: Select all

chmod u+x tmw-move.sh
then run the script like so:

Code: Select all

./tmw-move.sh
Wait for it to stop and you now have migrated to the new file structure, which is required for future versions of the scripts.

Now open your text editor again and save this as "tmw.sh" to your home directory:

Code: Select all

# This is the tmw STABLE run script, for version 0.0.27 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
Give it permissions:

Code: Select all

chmod u+x tmw.sh
and now you can run tmw simply by typing this in a terminal:

Code: Select all

./tmw.sh
Last edited by kr0n05931 on 26 Jan 2009, 22:40, edited 3 times in total.
Lazy bum.
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Intrepid Ibex support has been added.
Lazy bum.
BobSongs
Peon
Peon
Posts: 8
Joined: 07 Jan 2009, 15:51

Re: Ubuntu install/uninstall scripts for TMW stable

Post by BobSongs »

My results with Ubuntu GNU/Linux, Hardy Heron:

I copied the text and created the .sh files, as described. The installation failed. Undaunted, I decided to try a line-by-line approach in the Terminal at the command prompt.

specifics:
Operating System: Ubuntu Ultimate 1.9, based on Hardy Heron (8.04).

Everything worked fine until this command was entered:

Code: Select all

./configure --prefix=$HOME/.programs/tmw
The first error thrown:
checking for PHYSFS_init in -lphysfs... no
configure: error: *** Unable to find PhysFS library (icculus.org/physfs/)
Opening Synaptic Package Manager, the following were installed:
  • libphysfs-1.0-0
  • libphysfs-dev
configure accepted these two entries and carried on.

configure then threw this error:
checking for curl_global_init in -lcurl... no
configure: error: *** Unable to find CURL library (http://curl.haxx.se/)
A search was done in Synaptic Package Manager. Synaptic says these packages are installed:
  • libcurl3
  • libcurl3-gnutls
...and these are available:
  • libcur3-dbg
  • libcurl4-gnutls-dev
  • libcurl4-openssl-dev
  • libcurl-ocaml
  • libcurl-ocaml-dev
  • libflickcurl0
  • libflickcurl0-dev
Since compiling depends on the -dev files, I tried installing them. However, Synaptic gives this error message:
libcurl-ocaml-dev:
Depends: libcurl4-gnutls-dev but it is not going to be installed
The only other difference made to the installation, that might help others, is that Ubuntu requires make install to be run by a super user:

Code: Select all

./configure --prefix=$HOME/.programs/tmw
make
sudo make install
Now, while playing The Mana World, I encountered a player who said he managed to install 0.27 in Hardy Heron, but he tweaked something (sadly, I didn't catch it - yes, I should have written it down). So, I know it's possible.

Any ideas on how to get some kind of libcurl3-dev installed?
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

libcurl-ocaml-dev:
Depends: libcurl4-gnutls-dev but it is not going to be installed
The only other difference made to the installation, that might help others, is that Ubuntu requires make install to be run by a super user:

Code: Select all

./configure --prefix=$HOME/.programs/tmw
make
sudo make install
Actually, it doesn't, as the script is installing The Mana World to your home directory.

...Which script did you use? As the packages the script provides are the ones required. On top of that, these scripts are strictly for the *buntus provided by Canonical, and no one else.

The package you need for cURL is:
libcurl4-gnutls-dev
Which is provided in the script. You must have ran the wrong script.

I must obviously stress this: You cannot skim through this guide or omit parts of the script, as otherwise the script will not work.
Lazy bum.
BobSongs
Peon
Peon
Posts: 8
Joined: 07 Jan 2009, 15:51

Re: Ubuntu install/uninstall scripts for TMW stable

Post by BobSongs »

Ahh. I see.

It's Ubuntu Ultimate.

Not distributed by Canonical, per se. My understanding was that it was was Hardy Heron with a whole lot of extra programs pre-installed, such as Inkscape.

I was not aware it would affect libraries to any deep degree, or be considered a fork like Mint.

Your scripts were followed to the letter. No need for "stress". But I did make it clear in this post that I'm running "Ubuntu Ultimate".

Thanks for the help.
Zorofroozo
Peon
Peon
Posts: 5
Joined: 21 Jan 2009, 13:59

Re: Ubuntu install/uninstall scripts for TMW stable

Post by Zorofroozo »

I am trying to port your scripts to Linpus Lite for the Acer Aspire One. I will credit your work in the script with a many thanks note. Is that alright?

thx in advance
Zorofroozo
User avatar
kr0n05931
Knight
Knight
Posts: 652
Joined: 26 Jul 2008, 01:59
Location: United Socialist States of America
Contact:

Re: Ubuntu install/uninstall scripts for TMW stable

Post by kr0n05931 »

Zorofroozo wrote:I am trying to port your scripts to Linpus Lite for the Acer Aspire One. I will credit your work in the script with a many thanks note. Is that alright?

thx in advance
Zorofroozo
No need to ask, it is licensed under the GNU General Public License v.2, that means that you can modify, copy, and redistribute it provided that you keep it under the same license. You may credit it, but you do not have to. If you do credit me, please also credit Platyna, from whose guide this was originally based off of, and please don't credit in a way that suggests either of us endorse the modifications. ;)

I am quite glad to see someone getting involved for helping the people who don't know how to compile, I wish you luck! :mrgreen:
Lazy bum.
Zorofroozo
Peon
Peon
Posts: 5
Joined: 21 Jan 2009, 13:59

Re: Ubuntu install/uninstall scripts for TMW stable

Post by Zorofroozo »

just tought it to be polite;) grtzz
Xeyide
Peon
Peon
Posts: 1
Joined: 01 Feb 2009, 23:47

Re: Ubuntu install/uninstall scripts for TMW stable

Post by Xeyide »

Hi! I get to the first "make" in the script and get

Code: Select all

...
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
Makefile:120: *** missing separator. Stop.

I know I didn't make it too far down but everything until that point seems to run ok! Thanks!!
knulfine
Novice
Novice
Posts: 79
Joined: 27 Mar 2009, 01:05

Re: Ubuntu install/uninstall scripts for TMW stable

Post by knulfine »

HI there
Today i installed tmw on linux (was playing it on windows before)
i used apt-get install tmw
First of all, I know that it's old and has no support
but
I tried that skript before and it didn't work. One of the signs you need... it's the one after mkdir ... this linething. hope you know what i mean.
So is there another way to install tmw correctly?

Of course I tried to run tmw as it appeared on my pc after istalling. At the moment I am inside a cave and can't leave it. I think this is part of the problems you have with this older version.

help?

yours knulfine

EDIT: solved. thanks to those who helped :-)
Post Reply