MinGW 的问题

在用 [MinGW] 的时候发现了一个问题, 拿到一个 wget 的 native binary 以后, 就把把它扔到了 msys 里面的 bin 下, wget 怎么都不能用, 然后就在 dos box 中跑(PATH 中已经包含 msys/1.0/bin), 是没有问题的. 然后就把它放在别的地方(非 msys 内), 并加入到 PATH 中, 这样跑就没什么问题. 也放在 MinGW/bin 下也试过, 没问题. 这样就太诡异了. 后来用其他程序也是验证了, yasm 和 ledger, 其中 yasm 是从其官方网站上下的, ledger 是我自己在 MinGW 中编译的. 看 MinGW 主页上的说明如下:

  1. MinGW: A collection of freely available and freely distributable
  2. Windows specific header files and import libraries combined with
  3. GNU toolsets that allow one to produce native Windows programs
  4. that do not rely on any 3rd-party C runtime DLLs.
  5.  
  6. MSYS: A Minimal SYStem to provide POSIX/Bourne configure scripts
  7. the ability to execute and create a Makefile used by make.

为什么这两者之间会有这样的差别? 还是只有我这里有这个毛病?

不过现在至少知道问题所在, 知道了解决方法, 这样就不用再开一个 DOS box 了.

wget

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

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You can use BBCode tags in the text.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  _                     __     __          ____    _             
| | _ _ __ __ \ \ / / _ __ | __ ) | |__ _ _
| | | | | | \ \ /\ / / \ \ / / | '_ \ | _ \ | '_ \ | | | |
| | | |_| | \ V V / \ V / | | | | | |_) | | | | | | |_| |
|_| \__,_| \_/\_/ \_/ |_| |_| |____/ |_| |_| \__, |
|___/
Enter the code depicted in ASCII art style.