install Tcl-8.5.10

來源:互聯網
上載者:User
文章目錄
  • Package Information
  • Additional Downloads
  • Short Descriptions
Introduction to Tcl

The Tcl package contains the Tool Command Language, a robust general-purpose scripting language.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information
  • Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz

  • Download (FTP): ftp://mirror.ovh.net/gentoo-distfiles/distfiles/tcl8.5.10-src.tar.gz

  • Download MD5 sum: a08eaf8467c0631937067c1948dd326b

  • Download size: 4.3 MB

  • Estimated disk space required: 47 MB (includes documentation installation)

  • Estimated build time: 0.4 SBU

Additional Downloads

Optional Documentation

  • Download (HTTP): http://downloads.sourceforge.net/tcl/tcl8.5.10-html.tar.gz

  • Download MD5 sum: 3b5cf7f3dffe534bda80fb826937034a

  • Download size: 912 KB

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tcl

Installation of Tcl

This package is also installed in LFS during the bootstrap phase. As it is not installed during Chapter 6 of LFS, installation instructions are included here in BLFS.

If you downloaded the optional documentation, unpack the tarball by issuing the following command:

tar -xf ../tcl8.5.10-html.tar.gz --strip-components=1

Install Tcl by running the following commands:

cd unix && ./configure --prefix=/usr \ --enable-threads \ --mandir=/usr/share/man && make && sed -i \ -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ tclConfig.sh

To test the results, issue: make test.

Now, as the root user:

make install && make install-private-headers && ln -v -sf tclsh8.5 /usr/bin/tclsh && chmod -v 755 /usr/lib/libtcl8.5.so

If you downloaded the optional documentation, install it by issuing the following commands as the root user:

install -v -m755 -d /usr/share/doc/tcl-8.5.10 && cp -v -R ../html/* /usr/share/doc/tcl-8.5.10
Command Explanations

--enable-threads: This switch forces the package to build with thread support.

make install-private-headers: This command is used to install the Tcl library interface headers used by other packages if they link to the Tcl library.

ln -v -sf tclsh8.5 /usr/bin/tclsh: This command is used to create a compatibility symbolic link to the tclsh8.5 file as many packages expect a file named tclsh.

sed -i -e ... tclConfig.sh: The Tcl package expects that its source tree is preserved so that packages depending on it for their compilation can utilize it. This sedremoves the references to the build directory and replaces them with saner system-wide locations.

ContentsInstalled Programs:tclsh and tclsh8.5Installed Libraries:libtcl8.5.so and libtclstub8.5.aInstalled Directories:/usr/lib/tcl8, /usr/lib/tcl8.5, /usr/share/man/mann, and optionally, /usr/share/doc/8.5.10Short Descriptions

tclsh

is a symlink to the tclsh8.5 program.

tclsh8.5

is a simple shell containing the Tcl interpreter.

libtcl.so

contains the API functions required by Tcl.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.