Ubuntu install tcl

Ubuntu install tcl DEFAULT

Install tcl on Ubuntu: sudo apt-get install tcl

How to install tcl on Ubuntu 12.04 LTS?

First of all update your system with the command:

sudo apt-get update


Above command will download the package lists for Ubuntu 12.04 LTS on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If tcl is not installed on your compter then the command 'dpkg -L tcl' will give followin error.

[email protected]:~$ dpkg -L tcl Package `tcl' is not installed. Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. [email protected]:~$

Installing tcl:

After system update use the following command to install tcl:

sudo apt-get install tcl

Above command will confirm before installing the package on your Ubuntu 12.04 LTS Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove tcl from Ubuntu 12.04 LTS?

Now we will see the commands for uninstalling the tcl from Ubuntu 12.04 LTS. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the tcl following command is used:

sudo apt-get remove tcl

Following command is used to remove the tcl package along with its dependencies:

sudo apt-get remove --auto-remove tcl

This will remove tcl and all its dependent packages which is no longer needed in the system.

Completely removing tcl with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge tcl

or you can use following command also:

sudo apt-get purge --auto-remove tcl

Above command will remove all the configuration files and data associated with tcl package. You can can't recover the delete data, so, use this command with care.

Sours: https://www.devmanuals.net/install/ubuntu/ubuntu-12-04-lts-precise-pangolin/install-tcl.html

This information may also apply to other Debian-based Linux distributions. I don't know.

LES in September, 2009: I have been running Ubuntu for some time and, although it has many notable qualities, I don't consider it a very Tcl-friendly distro. What annoys me is that some of the applications available in the official repositories require Tcl and/or Tk as a dependency, and each application requires a certain version of Tcl. Ubuntu will fulfill the requirement exactly, i.e. Tcl 8.4 will be installed if the application requires it even if 8.5 would work just the same. Therefore, you may end up with two versions of Tcl installed. I still haven't run across any application that requires 8.3, but 8.6 is publicly available already. If you decide to install 8.6, you may end up having three versions of Tcl on Ubuntu: 8.4, 8.5 and 8.6.

That is not only messy, there are not many Tcl/Tk packages available in the official repositories, some of them may be outdated or even buggy (e.g. one of my Tk applications plays sounds, but sound stops working after some time and I have to restart the app). You may prefer to install ActiveTcl, for example, for its thourough and up-to-date collection of packages if nothing else. Or you may want to compile from source.

If you install ActiveTcl or compile from source, note that Ubuntu may "overwrite" your installation, i.e. other binaries will be installed (probably not where you chose to install your choice of Tcl distribution) and the system will be updated to refer to those binaries instead of the ones you prefer. You may end up running an older version of Tcl/Tk all the time if you don't pay attention. Conversely, if you fulfill the dependencies first and install your favorite flavor of Tcl/Tk later, Ubuntu will not acknowledge your choice automatically. For that reason, I recommend the following procedure:

  1. Install both Tcl/Tk 8.4 and 8.5 from the official Ubuntu repositories, so you have those dependencies fulfilled in case some application requires them in the future, so Ubuntu won't "overwrite" your installation.
  2. You may want to select and install all Tcl-related packages just in case. I usually don't.
  3. Install ActiveTcl or your favorite distribution or compile source and 'make install'.
  4. Run these command lines as root or with sudo:
update-alternatives --install tclsh tclsh /opt/path/to/Tcl/bin/tclsh8.5 5 update-alternatives --install tclsh wish /opt/path/to/Tcl/bin/wish8.5 5

The trailing number 5 is arbitrary. It determines priority above other choices. I don't think it matters, it just has to be there or the command will not work. Refer to 'man update-alternatives' for more information. After that, run these command lines:

update-alternatives --config tclsh update-alternatives --config wish

In either case, you will be prompted to choose from a menu. Choose the path to the installation you want to have as default on your system, and that's it.

LV Some people find that installing ActiveTcl in a non-OS maintained location keeps the distribution from being overwritten. If you choose that option, be certain to update your $PATH and $MANPATH environment variables to include the new location BEFORE the OS default location. If you choose this option, you may find you also need to update an environmental variable for libraries, such as $LD_LIBRARY_PATH or something similar. If so, please update this page to indicate that.

LES I said "overwrite" in quotes since it it not really overwritten if you avoid the default paths. In my machine, Ubuntu installed Tcl 8.4 in /usr/bin/tclsh8.4, /usr/lib/libtcl8.4.so.0 and a lot of support files in /usr/share/tcltk/tcl8.4/*. The same for 8.5, except the version numbers. It won't touch your binaries if you install them in /opt for example. It just overwrites the settings that determine which installation of Tcl is in force throughout the system.

SEH 20130829 -- I just installed Ubuntu 12.04 on a Windows laptop using the Wubi installer [L1 ]:

Wubi is an official Windows-based free software installer for Ubuntu, which installs the software on an existing Windows partition, thus without need for partitioning. The project's aim is to enable existing Windows users, unacquainted with Linux, to try Ubuntu without risking any data loss (due to disk formatting or partitioning mistakes). It can also safely uninstall Ubuntu from within Windows. It is not a virtual machine, but creates a stand-alone installation within a loopmounted device, also known as a disk image.

I then tried to use the ActiveTcl installer, as I have many times before, to install Active Tcl 8.6. Strangely, it appears that none of the executables in the install distro can recognize the existence of any other files on the pseudo drive on which Ubuntu is installed. When I try to run install.sh, it fails because wish thinks install.tk doesn't exist. When I apt-get installed wish, I could run install.tk and install the distro successfully. But when I try to run any of the shells from the install bin directory, I get a cryptic "not found" error.

Is there some special sauce that has to be added to a compile that allows files to be read from a loop mounted device? And can that sauce be added to Active Tcl?

Sours: https://wiki.tcl-lang.org/page/Installing+Tcl%2FTk+on+Ubuntu
  1. Shop goodwill swfl
  2. Wise exam quizlet
  3. Zebra intelligent cabinets

Package: tcl (8.6.0+9) [universe]

bionic  ] [  focal  ] [  groovy  ] [  hirsute  ] [  impish  ]

[ Source: tcltk-defaults  ]

Links for tcl


Ubuntu Resources:

Download Source Package tcltk-defaults:


Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.

Original Maintainers (usually from Debian):

It should generally not be necessary for users to contact the original maintainer.

Similar packages:

Tool Command Language (default version) - shell

Other Packages Related to tcl

  • dep:tcl8.6 (>= 8.6.0-2)
    Tcl (the Tool Command Language) v8.6 - shell
Sours: https://packages.ubuntu.com/bionic/tcl
How to Dual Boot Ubuntu 20.04 LTS and Windows 10 [ 2020 ]


2015-11-20 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+9) unstable; urgency=medium * Added ${libtclXY:Depends}, ${libtkXY:Depends}, ${libtcl:Depends} and ${libtk:Depends} substitution variables to the tcltk-depends script. * Added support for the stage1 build profile which makes the source package no longer build depend on TeXLive and doesn't build tcl-doc and tk-doc packages (closes: #738130). * Removed subversion from the build dependencies list. * Removed long gone tetex from the build dependencies list. * Added ghostscript to the build dependencies. * Bumped standards version to - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+8) unstable; urgency=low * Upload into unstable.2014-02-20 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+7) experimental; urgency=low * Added new substitution variables ${tclXY:Depends} and ${tkXY:Depends} to tcltk-depends script. * Fixed version comparison in tcl.prerm and tk.prerm. * Updated the Debian Tcl/Tk policy version to 0.3.0. * Bumped standards version to - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+6) experimental; urgency=low * Removed lbtcl-dev and libtk-dev packages after a discussion on debian-devel mailing list.2013-08-24 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+5) experimental; urgency=low * Fixed building architecture dependent packages only.2013-08-24 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+4) experimental; urgency=low * Added conflicts and replaces headers for libtcl-dev and libtk-dev (with tcl-dev and tk-dev respectively) to make the packages upgradable from versions in stable (closes: #720464).2013-08-19 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+3) experimental; urgency=low * Restored tcl-dev and tk-dev dummy packages for better backward compatibility. * Relaxed interdependencies between binary packages (removed unnecessary version restrictions).2013-08-02 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0+2) experimental; urgency=low * Converted to 3.0 (native) source package format. * Changed version scheme from 8.6.0-2 to 8.6.0+2 because the former violates Debian policy (section 5.6.12). * Removed lintian overrides. * Don't use the alternatives mechanism for selecting the default Tcl/Tk version. Use plain symlinks instead. This includes removing all tclsh and wish alternatives in the preinst scripts (closes: #628179). * Renamed tcl-dev and tk-dev packages to libtcl-dev and libtk-dev (providing the former as virtual packages for backward compatibility). * Updated conflicts with tcl/tk 8.3, 8.4, 8.5 and 8.6 packages to the latest versions which stil use alternatives. * Provide tclsh and wish virtual packages (by tcl and tk respectively) for backward compatibility with the older Tcl/Tk policy recommendations. * Rewritten debian/rules to make it work more like a Makefile than like a series of shell scripts. * Bumped standards version to 3.9.4. * Increased debhelper compatibility version to 9. * Added multi-arch support. * Bumped compatible Tcl/Tk version to 8.6.0-2. * Removed tcl from the tk dependencies because the tclsh is not necessary for a windowed applications or shell to run. * Added conflicts and replaces tk-tile headers to the tcl-dev package, acknowledging NMU.2011-09-04 - Sergei Golovan <[email protected]> tcltk-defaults (8.6.0-1) experimental; urgency=low * Changed the default Tcl/Tk version to 8.6 for experimental. * Bumped standards version to 3.9.2. No changes.
Sours: https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/tcl-dev_8.6.0+9_amd64.deb.html

Install tcl ubuntu

Tcl - Environment Setup

Local Environment Setup

If you are willing to set up your environment for Tcl, you need the following two software applications available on your computer −

  • Text Editor
  • Tcl Interpreter.

Text Editor

This will be used to type your program. Examples of a few text editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi.

Name and version of a text editor can vary on different operating systems. For example, Notepad will be used on Windows, and vim or vi can be used on windows as well as Linux or UNIX.

The files you create with your text editor are called source files and contain program source code. The source files for Tcl programs are named with the extension ".tcl".

Before starting your programming, make sure you have one text editor in place and you have enough experience to write a computer program, save it in a file, build it, and finally execute it.

The Tcl Interpreter

It is just a small program that enables you to type Tcl commands and have them executed line by line. It stops execution of a tcl file, in case, it encounters an error unlike a compiler that executes fully.

Let's have a helloWorld.tcl file as follows. We will use this as a first program, we run on a platform you choose.

#!/usr/bin/tclsh puts "Hello World!"

Installation on Windows

Download the latest version for windows installer from the list of Active Tcl binaries available. The active Tcl community edition is free for personal use.

Run the downloaded executable to install the Tcl, which can be done by following the on screen instructions.

Now, we can build and run a Tcl file say helloWorld.tcl by switching to folder containing the file using 'cd' command and then execute the program using the following steps

C:\Tcl> tclsh helloWorld.tcl

We can see the following output.

C:\Tcl> helloWorld

C:\Tcl is the folder, I am using to save my samples. You can change it to the folder in which you have saved Tcl programs.

Installation on Linux

Most of the Linux operating systems come with Tcl inbuilt and you can get started right away in those systems. In case, it's not available, you can use the following command to download and install Tcl-Tk.

$ yum install tcl tk

Now, we can build and run a Tcl file say helloWorld.tcl by switching to folder containing the file using 'cd' command and then execute the program using the following steps −

$ tclsh helloWorld.tcl

We can see the following output −

$ hello world

Installation on Debian based Systems

In case, it's not available in your OS, you can use the following command to download and install Tcl-Tk −

$ sudo apt-get install tcl tk

Now, we can build and run a Tcl file say helloWorld.tcl by switching to folder containing the file using 'cd' command and then execute the program using the following steps −

$ tclsh helloWorld.tcl

We can see the following output −

$ hello world

Installation on Mac OS X

Download the latest version for Mac OS X package from the list of Active Tcl binaries available. The active Tcl community edition is free for personal use.

Run the downloaded executable to install the Active Tcl, which can be done by following the on screen instructions.

Now, we can build and run a Tcl file say helloWorld.tcl by switching to folder containing the file using 'cd' and then execute the program using the following steps −

$ tclsh helloWorld.tcl

We can see the following output −

$ hello world

Installation from Source Files

You can use the option of installing from source files when a binary package is not available. It is generally preferred to use Tcl binaries for Windows and Mac OS X, so only compilation of sources on unix based system is shown below.

  • Download the source files.

  • Now, use the following commands to extract, compile, and build after switching to the downloaded folder.

$ tar zxf tcl8.6.1-src.tar.gz $ cd tcl8.6.1 $ cd unix $ ./configure —prefix=/opt —enable-gcc $ make $ sudo make install

Note − Make sure, you change the file name to the version you downloaded on commands 1 and 2 given above.

Sours: https://www.tutorialspoint.com/tcl-tk/tcl_environment.htm
How to Run rhinestonerose.com in TCLSH ? Both Windows \u0026 Linux - QnA - EP-16

There are several options available for obtaining Tcl/Tk. These are listed below.

Operating System Packages

Most Unix / Linux operating system distributions, as well as Mac OS X, include Tcl/Tk. If not already installed, you can use your system's package manager to install the appropriate packages. For example, on a Debian system, you can type

apt-get install tcl

to install Tcl. Note than some components, even including Tk, man pages and C libraries may be separate packages and installed in a similar manner.

To check the version installed, start Tcl/Tk (usually via running "tclsh" or "wish" from a command line), and typing

info patchlevel

This will tell you what version you're running.

If you do not have privileges to install software or if you need a newer version than the one provided by the system, you may use one of the alternative means of obtaining Tcl as described below.

Binary Distributions

Pre-built Tcl distributions for many common platforms are available for download. These include both traditional installers as well as single file "download and run" executables. See Binary distributions.

Source Distributions

Finally, you always have the option of downloading the Tcl/Tk source distributions and building it yourself. See Source distributions for instructions on downloading and compiling.

Related Software

A very large number of libraries and extensions are available for Tcl/Tk. The most popular and commonly used ones are catalogued in the Great Unified Tcl/Tk Extension Repository. (In other words, get them from the GUTTER.) The Tcler's Wiki is an alternate, but uncategorized, resource for the same.

License Information

Tcl/Tk is open source (based on a BSD-style license), so you can use it and modify it virtually any way you want, including for commercial uses. Here is the Tcl source distribution license, but be sure to check the license for any particular distribution you use.

Sours: https://www.tcl.tk/software/tcltk/

You will also like:

From time to time they kissed, stroked each other and talked. I especially liked her breasts, probably the size of 4-5, she did not fit in my hand and hung heavily to the ground. Large halos, culminating in bright, erect nipples. Have you changed your mind yet.

11429 11430 11431 11432 11433