====================================
Cygwin下tcl脚本(应用程序)的配置方法
====================================
1. wish启动后,可识别的PATH是cygwin下的/usr,因此必须将/usr/local/bin/下的可执行文件链接到/bin/下
2. tcl脚本通常的头部如下:
#!/bin/sh
# the next line restarts using wish /
exec wish $0 $@
但是在cygwin下,同1,由于只识别windows路径,因此必须修改如:
#!/bin/sh
# the next line restarts using wish /
exec wish e:/cygwin/usr/local/bin/xspin510.tcl -- $*
3. 在tcl脚本中的exec命令,后面的可执行命令名,也必须加上路径。如exec $CC 需要修改为exec /bin/$CC
4. 与bash相对应的一些常用的命令:
copy | file copy <source> <target>
mv | file rename <source> <target>
rm | file delete <source> <target>
${CC%% -w} | regexp {([^ ]*)} $CC $CC0
5. tcl中的命令管道使用方法如下:
update
set fd [open "|/bin/$SPIN $s_options" r+]
catch "flush $fd"
update
这段代码用于更新fd对应文件,及时回写,完美数据流风格结构
====================================
Cygwin下源代码方式安装软件的方法
====================================
6. makefile中的install目标一般修改为:
install:
cp spin /usr/local/bin/
ln -s /usr/local/bin/spin /bin/
cp ../xspin5.1/xspin* /usr/local/bin/
#for cygwin
rm /bin/gcc
ln -s /bin/gcc-3.exe /bin/gcc
详细解决方案
Cygwin+ Tcl 笔记
热度:52 发布时间:2023-12-08 09:28:12.0
相关解决方案
- cygwin 測試問題解决方案
- 0.4.11 nodejs + cygwin + win7 安装有关问题解决
- Eclipse cygwin 配备
- 配置NDK Cygwin .bash_profile:行47: 语法异常: 未预期的文件结尾 syntax error: unexpected end of file 解决
- Cygwin,NDK编译动态库有关问题
- cygwin make未找到命令
- Ubuntu /Cygwin 的抉择
- Cygwin+ Tcl 笔记
- 编译OpenJDK8:Your cygwin is too old. You are running but at least cygwin 1.7 is required
- 【Cygwin】安装后修改默认用户名
- 每周一记之新的计划--gitHub/cygwin
- 如何让 cygwin 1.7.15-1 终端中显示的中文改成英文 (原发于:2012-07-15 16:38:35)