First we will need to download the tarball for SCID, which is a chess game. Here is the link for this tarball. This game has no PPA or .deb for installation so we will have to build it from the tarball source. WE will have to also modify the configure file that is extracted to get this game up and going for users using a 64 bit Linux Mint or Ubuntu build. http://scid.sourceforge.net/download.html
Next we will have to extract that tarball to a folder, I extracted mine in my home folder. You can use the included archive manager to extract this tarball or you can extract it in your terminal with the following command.
Code: Select all
tar -zxvf scid-4.3.tar.bz2
After we have extracted this tarball, to get this game to run on 64 bit, will will need to include some tools from the apt-get. To compile Scid for Linux or other Unix operating systems, you must have Tcl/Tk (8.5 or newer is required) and a C++ compiler if they are not already installed. So lets do that to make sure. If the tools are already on your system, you will get a prompt in your terminal saying they are already installed. Tcl/Tk are some tools used to build your app Scid. They are GUI tools needed for that app to give you a user interface.
Code: Select all
sudo apt-get install tcl8.5-dev tk8.5-dev
Code: Select all
gcc -v
Code: Select all
sudo apt-get update && sudo apt-get install gcc
Now if you try to compile your app "SCID" before getting those tcl/tk tools and modifying your configure file for SCID, you will get errors, because the author did not update his included configure file to work on 64 bit linux machines. You will get errors saying tcl/tk is not found and other errors saying "Location of X11 library: not found. " BUT we have X11 on our machine !! its just not in the right path for the configure file to see it though for SCID. To see if X11 is installed it should be in the /usr/lib/x86_64-linux-gnu PATH. If it is not installed we can get that package too through the apt-get if you need it. "X11" is a window system you will need for your app to come up inside of a window environment on your linux machine. X11 should be installed by default for Linux Mint 14.1 or ubuntu 12.10, as this windows system is used for other programs and apps you will want to install. If it is not use the code below.
Code: Select all
sudo apt-get install libx11-dev
Next lets modify our PATH variable inside of the configure file for SCID that was extracted inside of the "scid" folder earlier inside of your home folder where we extracted it. It will be named "configure." Open up that file with a text editor. We are now going to modify the configure file to find the X11 path variable since by default for 64 bit linux machines its saved to a different path. Mine was at the location /usr/lib/x86_64-linux-gnu. Check and make sure this is the correct path for you by copy pasting that path variable inside of your terminal. It should say "is a directory." Remember to save your changes below by saving the changes in your text editor upon exiting out. The code lines below will help you find the right lines to modify.
Open up the "configure" file for SCID and now go down to lines 210-217. You should see something like this in your configure script for this app.
Code: Select all
# x11Path: List of common locations of the X11 library files.
set x11Path {
/usr/lib
/usr/X11/lib
/usr/X11R6/lib
/usr/local/X11/lib
/usr/local/X11R6/lib
/usr/X/lib
/usr/local/X/lib
/usr/openwin/lib
}
Code: Select all
# x11Path: List of common locations of the X11 library files.
set x11Path {
/usr/lib/x86_64-linux-gnu
/usr/lib
/usr/X11/lib
/usr/X11R6/lib
/usr/local/X11/lib
/usr/local/X11R6/lib
/usr/X/lib
/usr/local/X/lib
/usr/openwin/lib
}
Lets use the cd command to "mount" that file we extracted earlier. Mine was extracted into the /home/meteorrock/scid directory.
Code: Select all
cd /home/meteorrock/scid
~~~~~~~~~~~~~~~~
To finish building this app we can now run some commands in the terminal. I will list them here for you. Lets configure and build this app to the /usr/local/bin/ so it can get other files this app might need to run properly.
Code: Select all
./configure BINDIR=/usr/local/bin
Code: Select all
sudo make install
To run this app SCID for later press Alt+F2, type scid and press enter.
Enjoy. As always, my work is free to distribute and change. No permissions needed. Feel free to plug this work anywhere and everywhere on the internet.
........................................