怎么在linux上安装tcl tk
发布网友
发布时间:2022-04-19 19:49
我来回答
共3个回答
热心网友
时间:2023-07-15 07:58
tcl
[user@localhost 桌面]$ ls tcl8.5.9-src.tar.gz
tcl8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tcl8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tcl8.5.9-src.tar.gz
[root@localhost src]# cd tcl8.5.9/
[root@localhost tcl8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tcl/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tcl/bin/tclsh8.5
% exit
[root@localhost unix]#
tk
[user@localhost 桌面]$ ls tk8.5.9-src.tar.gz
tk8.5.9-src.tar.gz
[user@localhost 桌面]$ su
密码:
[root@localhost 桌面]# cp tk8.5.9-src.tar.gz /usr/local/src/
[root@localhost 桌面]# cd /usr/local/src/
[root@localhost src]# tar -zxvf tk8.5.9-src.tar.gz
[root@localhost src]# cd tk8.5.9/
[root@localhost tk8.5.9]# cd unix/
[root@localhost unix]# ./configure --prefix=/usr/local/tk/ --with-tcl=/usr/local/tcl/lib/ --enable-shared
[root@localhost unix]# make
[root@localhost unix]# make install
[root@localhost unix]# /usr/local/tk/bin/wish8.5
/usr/local/tk/bin/wish8.5: error while loading shared libraries: libtcl8.5.so: cannot open shared object file: No such file or directory
[root@localhost unix]# ln -s /usr/local/tcl/lib/libtcl8.5.so /usr/local/tk/lib/libtcl8.5.so
[root@localhost unix]# /usr/local/tk/bin/wish8.5
% exit
[root@localhost unix]#
热心网友
时间:2023-07-15 07:58
set tcl_patchLevel
热心网友
时间:2023-07-15 07:58
http://blog.csdn.net/makebuaa/article/details/6709140