如何安装SWIG? [英] How to install SWIG?

查看:580
本文介绍了如何安装SWIG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Noob前面的问题...

Noob question ahead...

我正在尝试在Windows上安装SWIG.根据安装文件,我必须

I'm trying to install SWIG on Windows. According to the INSTALL document, I have to

cd到包含软件包源代码的目录,然后键入./configure为系统配置软件包.

cd to the directory containing the package's source code and type ./configure to configure the package for your system.

我在根目录和/CCache目录中都尝试了该命令(这是仅有的具有configureconfigure.in文件的命令),但是,shell会报告该情况

I tried the command in both the root directory and in the /CCache directory (these are the only ones that have the configure and configure.in files), however, the shell reports back that

C:\swigwin-2.0.4>./configure
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\swigwin-2.0.4>./configure
'.' is not recognized as an internal or external command,
operable program or batch file.

我想念什么?

推荐答案

页面 http://www. swig.org/download.html 具有Windows的特定下载版本,带有swig.exe的预构建版本.您可以下载它,而无需自己编写Swig的麻烦.

The page http://www.swig.org/download.html has a specific download for Windows with a pre-built version of swig.exe. You can download it and avoid the hassle of compiling swig by yourself.

如果确实需要,可以查阅Doc/Manual/Windows.html文件,该文件包含Windows特定的构建SWIG的说明.

If you really need to, you can consult the file Doc/Manual/Windows.html that contain Windows-specific instructions to build SWIG.

最后,回答您的特定问题,语法

Finally, to answer your specific question, the syntax

./configure

是UNIX风格的命令,表示在当前目录中执行名为configure的程序"(点).

is a UNIX-style command that means 'execute the program named configure in the current directory' (the dot)

在Windows上,您将输入

On Windows, you would type

.\configure

甚至更简单,因为所有文件都只能在Windows上执行

or even simpler, as all files are executable on Windows, only

configure

...但是,由于上述配置"脚本是bash脚本,因此无法在Windows shell中运行.

... BUT this will not work as the said 'configure' script is a bash script that will not run in a Windows shell.

这篇关于如何安装SWIG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆