Local Tcl

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
First step of course is downloading TCL! Recommended place for doing that is of course the official web page, [http://www.tcl.tk/ www.tcl.tk/], or their Sourceforge page [http://http://sourceforge.net/projects/tcl/ http://sourceforge.net/projects/tcl/].
First step of course is downloading TCL! Recommended place for doing that is of course the official web page, [http://www.tcl.tk/ www.tcl.tk/], or their Sourceforge page [http://http://sourceforge.net/projects/tcl/ http://sourceforge.net/projects/tcl/].
-
Easiest way to download directly to shell is using the command '''[http://en.wikipedia.org/wiki/Wget wget]''':
+
Easiest way to download directly to shell is using the command [http://en.wikipedia.org/wiki/Wget wget]:
  wget http://prdownloads.sourceforge.net/tcl/tcl8.5.5-src.tar.gz
  wget http://prdownloads.sourceforge.net/tcl/tcl8.5.5-src.tar.gz
You should see something like this appear on your screen:
You should see something like this appear on your screen:
Line 32: Line 32:
== Configuring ==
== Configuring ==
 +
First of all, we need to unpack that archive we just downloaded. We can do that by typing
 +
tar -xfz tcl8.5.5-src.tar.gz
 +
You can include ''v'' in -xfz (e.g. -xvfz) if you want to see all the files that are being unpacked from the archive but it's unimportant to us.
 +
 +
You should now have a directory called '''tcl8.5.5''' along with that archive we downloaded.
 +
Next step is
 +
cd tcl8.5.5
 +
to enter that directory. When you are compiling things by hand like we are now, it's generally a good idea to read the README and/or INSTALL file(s) that come with the source. Reading the README file in this case tells us we need to enter subdirectory '''unix'''. Do that
 +
cd unix
 +
There is a README file inside that directory with detailed installation instructions but we'll keep it fast and simple.

Revision as of 12:21, 16 November 2008

As you all know, TCL (official site, wiki page) is needed to compile eggdrop so in this short tutorial I will show you how to install it locally to your shell.

General recommendation is to have the admin of the machine you have a shell on install TCL for you, but if that is not possible, this tutorial might help you.

Let's get started!

Obtaining TCL

First step of course is downloading TCL! Recommended place for doing that is of course the official web page, www.tcl.tk/, or their Sourceforge page http://sourceforge.net/projects/tcl/.

Easiest way to download directly to shell is using the command wget:

wget http://prdownloads.sourceforge.net/tcl/tcl8.5.5-src.tar.gz

You should see something like this appear on your screen:

username@shell:~/down$ wget http://prdownloads.sourceforge.net/tcl/tcl8.5.5-src.tar.gz

--2008-11-16 06:28:25--  http://prdownloads.sourceforge.net/tcl/tcl8.5.5-src.tar.gz
Resolving prdownloads.sourceforge.net... 216.34.181.60
Connecting to prdownloads.sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://voxel.dl.sourceforge.net/sourceforge/tcl/tcl8.5.5-src.tar.gz [following]
--2008-11-16 06:28:25--  http://voxel.dl.sourceforge.net/sourceforge/tcl/tcl8.5.5-src.tar.gz
Resolving voxel.dl.sourceforge.net... 208.122.28.3, 208.122.28.21, 208.122.28.2, ...
Connecting to voxel.dl.sourceforge.net|208.122.28.3|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4405210 (4.2M) [application/x-gzip]
Saving to: `tcl8.5.5-src.tar.gz' 

100%[==================================================================>] 4,405,210   1.12M/s   in 3.8s

2008-11-16 06:28:29 (1.10 MB/s) - `tcl8.5.5-src.tar.gz' saved [4405210/4405210]

Now that we have downloaded the sources we need to configure and compile them.


Configuring

First of all, we need to unpack that archive we just downloaded. We can do that by typing

tar -xfz tcl8.5.5-src.tar.gz

You can include v in -xfz (e.g. -xvfz) if you want to see all the files that are being unpacked from the archive but it's unimportant to us.

You should now have a directory called tcl8.5.5 along with that archive we downloaded. Next step is

cd tcl8.5.5

to enter that directory. When you are compiling things by hand like we are now, it's generally a good idea to read the README and/or INSTALL file(s) that come with the source. Reading the README file in this case tells us we need to enter subdirectory unix. Do that

cd unix

There is a README file inside that directory with detailed installation instructions but we'll keep it fast and simple.

Personal tools