如何使用Cygwin在Windows上运行Linux软件TkGate?

时间:2016-10-13 16:27:53

标签: installation cygwin tcl tk

我需要使用名为TkGate的程序进行单项工作,但它是针对Linux制作的,只有在我可以使用Cygwin的情况下才适用于Windows。

我安装了Cygwin,确保选择tcl和tk包作为TkGate的先决条件。

然后我下载了tkgate-1.8.5.tgz,并尝试将其解压缩到:C:\ cygwin \ home \ Patrick \ tkgate-1.8.5。但是,这样做时收到此错误消息:

Extraction error

我决定继续尝试安装软件,所以我启动了Cygwin终端并cd到该文件夹​​。 README文件说运行配置脚本./configure,所以我这样做了,但是,我收到一条警告消息说无法找到tcl / tk组件:

Config error

README继续说:

  

通常,配置将完全自动进行,但是   如果某些组件(如tcl / tk)位于非标准位置   可能需要编辑config.h并添加所需的目录   TKGATE_INCDIRS和TKGATE_LIBDIRS。

所以我试图在config.h文件中编辑这些值,但它没有任何区别。如果有人能告诉我哪里出错了,我将非常感激。

编辑:好的,所以我设法解压缩tar.gz文件并更改配置文件中的路径变量,以便运行配置。但是,现在运行./configure时会出现很多错误。这是运行时的输出,包括配置结果:

$ ./configure
C compiler: gcc
Auto-configuring language to 'en' (LANG=en_US.UTF-8).
Tcl/Tk Version: 8.5
Configuring for Western language support.
Tcl script files found in: /usr/lib/tcl8.5
Tk script files found in: /usr/lib/tk8.5
bison found
which: no lex in (/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/ImageMagick-6.9.3-Q16:/cygdrive/c/ProgramData/Oracle/Java/javapath:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program Files/Intel/iCLS Client:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/cygdrive/c/Program Files (x86)/EgisTec BioExcess/x64:/cygdrive/c/Program Files (x86)/EgisTec BioExcess:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)/Java/jre1.8.0_45/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit:/cygdrive/c/Program Files (x86)/GtkSharp/2.12/bin:/cygdrive/c/Program Files (x86)/Skype/Phone:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/Client SDK/ODBC/130/Tools/Binn:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/130/Tools/Binn:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/130/DTS/Binn:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/130/Tools/Binn/ManagementStudio:/cygdrive/c/WINDOWS/system32/config/systemprofile/.dnx/bin:/cygdrive/c/Program Files/Microsoft DNX/Dnvm:/cygdrive/c/Users/Patrick/AppData/Local/Microsoft/WindowsApps:/usr/lib/lapack)
flex found
lex test OK.
yyrestart found.
found X11/Xlib.h in: /usr/include
long long supported
getopt uses optreset.
WARNING: getopt does handle switches after file names.
*** updating config.h
tail: cannot open '+377' for reading: No such file or directory
*** doing xmkmf
In file included from ./Imakefile:19:0,
                 from /usr/lib/X11/config/Imake.tmpl:2194,
                 from Imakefile.c:15:
./config.h:385:0: error: #endif without #if
 #endif
 ^
./config.h:387:0: error: #endif without #if
 #endif
 ^
imake: Exit code 1.
  Stop.
In file included from ./Imakefile:2:0,
                 from /usr/lib/X11/config/Imake.tmpl:2194,
                 from Imakefile.c:15:
./../../config.h:385:0: error: #endif without #if
 #endif
 ^
./../../config.h:387:0: error: #endif without #if
 #endif
 ^
imake: Exit code 1.
  Stop.
In file included from ./Imakefile:18:0,
                 from /usr/lib/X11/config/Imake.tmpl:2194,
                 from Imakefile.c:15:
./../../config.h:385:0: error: #endif without #if
 #endif
 ^
./../../config.h:387:0: error: #endif without #if
 #endif
 ^
imake: Exit code 1.
  Stop.
In file included from ./Imakefile:2:0,
                 from /usr/lib/X11/config/Imake.tmpl:2194,
                 from Imakefile.c:15:
./../../config.h:385:0: error: #endif without #if
 #endif
 ^
./../../config.h:387:0: error: #endif without #if
 #endif
 ^
imake: Exit code 1.
  Stop.
In file included from ./Imakefile:18:0,
                 from /usr/lib/X11/config/Imake.tmpl:2194,
                 from Imakefile.c:15:
./../../config.h:385:0: error: #endif without #if
 #endif
 ^
./../../config.h:387:0: error: #endif without #if
 #endif
 ^
imake: Exit code 1.
  Stop.
*** doing includes
Makefile:8: *** missing separator.  Stop.
*** doing dependencies
Makefile:8: *** missing separator.  Stop.
*************************************************************
Configuration Results:
  Language Support: Western (English and European)
  C Compiler:       gcc
  Tcl/Tk Version:   8.5
  Library Path:      -L/usr/lib
  Include Path:      -I/usr/include
  Libraries:         -ltk8.5 -ltcl8.5 -lX11 -ldl -lm
  Primary Home:     /usr/X11R6/lib/tkgate-1.8.5
  Secondary Home:   /home/Patrick/build/tkgate-1.8.5
  optreset usage:   1
  long long usage:  1
  Ephemeral Signal: 1
  Use sigset:       0
  Yacc:             bison -y
  Lex:              flex -l
  No yyrestart:     0
*************************************************************
* Configuration complete - type 'make' to compile.
*************************************************************

当我尝试运行make命令时,我收到此消息说Makefile的第8行有问题:

Makefile error

0 个答案:

没有答案