Sunday, 28 January 2007

Xscrabble For Ubuntu

Xscrabble is a game based on the popular board game Scrabble.It was written for the UNIX system as a student project by Matt Chapman way back in 1994.It has been packaged in RPM format for some Distros and it has been ported for the Mac X variety of UNIX.In Linux it runs on the X Window system.

To date there is not a package available for Debian /Ubuntu(Debian based) -I submitted a request to Ubuntu asking them if they could come up with a version-which means using the tarball package written for UNIX.


I have tried various ways of getting this nice little game on Ubuntu.


I tried the latest tarball version downloaded from a Linux software site

but it did not install.

I tried using the 'alien' package to convert the rpm package to deb. With some rpm's the conversion worked well enough to allow an install but the actual program failed.

I installed all the libXaw libraries (needed I believe to work the widgets) using the software installer package and libXaw8 from Ubuntu's download page (Ubuntu -- Package Download Selection)and tried all of the above again. I even tried adjusting the makefile according to the instructions written as Linux guru stuff on the web.


Eventually I came across a tarball downloaded from Matt Chapman's web page the writer of the xscrabble program back in 1994.

Found at:

http://www.belgarath.org/programs


and this worked. You will note that this is version 1 and not the 2 series which I believe has been amended by someone else.

Once extracted using the archive roller-I just extracted to my Desktop -it extracts to a folder called xscrabble-the readme file in the extracted folder needs to be read!

If like me you are not a Linux guru it can at first glance be a bit intimidating but in actual fact is quite straightforward.


First change directory in your terminal program to where you extracted the tarball.In my case this was

cd / home/ross/Desktop/xscrabble -note the capital D for Desktop.

then run

sudo xmkmf

make Makefiles

make


Once the build process was run I copied the three files OSPD3.gz, scrabble permutations and xscrabble.scores from the Desktop folder xscrabble to my home directory in a folder I called xscrabble(different from the one on my desktop). As instructed in the readme file I renamed Xscrabble.ad to Xscrabble and I simply placed this in my home directory outwith the xscrabble folder that I had created.

During the build process two executable files are created in the src folder in the extracted folder-xscrabble- on your desktop. These are xscrab and xscrabble I copied these to folder

/usr/games -you will need to use sudo nautilus in the terminal command line to allow you to do this(gives nautilus super user rights). This puts the two executables in a directory contained in the $PATH variable .


The game works by typing xscrabble in the terminal command line.

You might see some warnings written about fonts when the program initiates but the program seems to work well enough and will do me until some wizard comes up with a tailor made for Debian/Ubuntu.

1 comment:

Mohan said...

Why don't you have a look at Quackle?