在用 [MinGW] 的时候发现了一个问题, 拿到一个 wget 的 native binary 以后, 就把把它扔到了 msys 里面的 bin 下, wget 怎么都不能用, 然后就在 dos box 中跑(PATH 中已经包含 msys/1.0/bin), 是没有问题的. 然后就把它放在别的地方(非 msys 内), 并加入到 PATH 中, 这样跑就没什么问题. 也放在 MinGW/bin 下也试过, 没问题. 这样就太诡异了. 后来用其他程序也是验证了, yasm 和 ledger, 其中 yasm 是从其官方网站上下的, ledger 是我自己在 MinGW 中编译的. 看 MinGW 主页上的说明如下:
-
MinGW: A collection of freely available and freely distributable
-
Windows specific header files and import libraries combined with
-
GNU toolsets that allow one to produce native Windows programs
-
that do not rely on any 3rd-party C runtime DLLs.
-
-
MSYS: A Minimal SYStem to provide POSIX/Bourne configure scripts
-
the ability to execute and create a Makefile used by make.
为什么这两者之间会有这样的差别? 还是只有我这里有这个毛病?
不过现在至少知道问题所在, 知道了解决方法, 这样就不用再开一个 DOS box 了.




wget
wget 在 dos box 和 MinGW 下表现地不一样 :) 有点意思.
Post new comment