Installing TCL on Linux

Source: Internet
Author: User

1. First download the installation package, the recommended download ACTIVETCL (TCL source code is precompiled, installation steps simple). Open the URL http://activestate.com find ACTIVETCL Community Edition (Community Edition is free, find the Linux platform under the. tar.gz package, direct point download can be downloaded. I downloaded the 8.6.4 version of activetcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz)

2. Extract the installation package with the TAR-ZXVF activetcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz command to get the file activetcl8.6.4.1.299124-linux-x86 _64-threaded, open this file to see there is a bunch of install files, which have a file called install.sh.

3. Run the install.sh file with the./install.sh command. (Tips: If you do not have a Linux-based children's shoes, you can refer to the following operations, if there are some words skip, go straight to the 4th step.) The installation package I downloaded was placed under the/home/flyer/packages file).
The complete Linux operation is:
Cd/home/flyer/packages
TAR-ZXVF activetcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz
CD activetcl8.6.4.1.299124-linux-x86_64-threaded
./install.sh
4. The following is the most critical installation step, if it is on the desktop graphics version of the Linux installation, there will be Windows-Like Install wizard window, this situation is best. If it is not, or through a remote connection, such as a Xshell connection, you have to be honest with the black box. Because it will give a bunch of information, such as whether to agree to the agreement, press A to agree, prompting you to choose the installation path, the first path according to the default no tube also line (like/opt/), the second path must be specified, or even if you enter Yes, it will not go to the next step, You will still be prompted to enter a different path. I have set up a directory/home/flyer/tcl as my installation path, the following prompt operation is to confirm by yes, after completion will come out a successful installation of the Finish option, exit can exit (before the finish option there will be a piece of code, Prompts you to set the environment variables yourself after the installation is complete)
5. This time the input tclsh still does not respond, need to modify environment variables and link library.
To achieve the effect of permanent settings, you can edit the. bashrc file.
VI. BASHRC
Press the I key to enter edit mode and enter these four sentences at the end of the file:
Path= $PATH:/home/flyer/tcl/bin
Export PATH
Db_library_path= $DB _library_path:/home/flyer/tcl/lib
Export Db_library_path
Last press: Wq Save and exit. (Note: At the beginning of the time I only changed the path of the environment variable, the results run Tclsh will not find the lib.so, such as the prompt information, but also in the Internet to find information to know that the link library is not set the reason)
6. If the input tclsh will appear the% information, the description has been done, you can enter a simple code, test it.
%exp 1 + 2
Will output: 3
7. The following is the wish command, which is an important tool to connect the TK toolset for graphical programming. If the input wish appears with the following message (application initialization failed:no display name and no $DISPLAY environment variable), This can be done with one of the following commands:
Export display=:0.0
8. Now the input wish also appears as a% prompt, indicating normal.
Finally add: I that display only when effective, the next reboot also have to input to use wish, I do not know how to configure a permanent, a little trouble, make sure it is no problem. And this operation is also related to TTY, if more than one device terminal, maybe 0.0 is not appropriate, will conflict, if encountered, you will understand what I said. (Bad smile on the face)

2017-04-05

Installing TCL on Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.