5

我正在尝试使用 netbeans c/c++ IDE 从 Windows 编译星号。因为我想在现有代码中添加一些功能。

当我运行配置文件时,出现以下错误

cygwin warning:
  MS-DOS style path detected: .\configure
  Preferred POSIX equivalent is: ./configure
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
configure: error: cannot run /bin/sh ./config.sub

我对跨平台开发很陌生。请帮我解决这个问题

4

1 回答 1

3

第一部分似乎只是说,您应该调用 configure 不是 as.\configure而是 as ./configure。最后一行是真正的错误。正如它所说,它无法运行 /bin/sh ./config.sub 您应该检查两个文件是否正确且存在。

执行ls -l ./config.sub以查看文件是否存在并且您的用户是否可以读取并file ./config.sub确保它是一个 shell 脚本。

如果 config.sub 看起来正确,请执行

ls -l /bin/sh

确保解释器存在并且是可执行的。

于 2010-09-30T13:11:11.187 回答