为 openldap 配置线路
我在 Windows XP 中使用命令提示符为 OpenLDAP 运行此行。
我已经进入包含配置文件的目录,但是当我输入 ./configure
时,它给了我
'.'不被识别为内部或外部命令、可运行程序或批处理文件。
当我输入 gcc ./configure
它给了我
./configure:文件无法识别:文件格式无法识别collect2:id返回1退出状态。
有人可以帮助我理解这些错误吗?
I’m using the command prompt in Windows XP to run this line for OpenLDAP.
I’ve gone to the directory containing the configure file, but when I input ./configure
, it gives me
'.' is not recognized as an internal or external command, operable program or batch file.
When I input gcc ./configure
it gives me
./configure:file not recognized:file format not recognized collect2:id returned 1 exit status.
Can somebody help me understand these errors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 UNIX 环境中:
将运行当前目录“.”中的“配置”脚本。
在Windows中,斜杠('/')通常用作开关分隔符,而不是目录说明符,在Windows中您需要使用反斜杠('\')。您收到第一个错误的原因是因为 Windows 试图调用“.”(这是一个目录)并向其传递参数“/configure”。
您可能可以通过运行来解决您的问题:
但是,这可能会失败,因为 Windows 不知道使用什么类型的应用程序来运行“配置”,因为它没有扩展名(尽管它可能是一个可执行文件,我不知道)。
当您尝试将configure传递给gcc时,您会收到错误,因为configure不是源文件,它通常是某种脚本或其他脚本,尽管它可能是二进制文件,但我没有使用过openldap。
配置文件的前 5 行包含什么内容?配置文件有扩展名吗?
In UNIX environments:
Would run the 'configure' script in the current directory '.'.
In windows, a slash ('/') is usually used as a switch delimiter, rather than a directory specifier, in windows you need to use a backslash ('\'). The reason you're getting your first error, is because windows is trying to invoke '.', which is a directory and pass it the arguments '/configure'.
It's possible, that you may be able to solve your problem by running:
However, this may fail because windows doesn't know what type of application to use to run 'configure', since it doesn't have an extension (although it may be an executable, I don't know).
When you try passing configure to gcc, you're getting an error because configure isn't a source file, it's usually a script of somekind or other, although it may be a binary, I've not used openldap.
What do the first 5 lines of the configure file contain? Does the configure file have an extension?
你的问题中没有提到 Cygwin - 所以我怀疑你距离让它发挥作用还有很长的路要走。 (周/月/年)
我建议:
http://www.userbooster.de/en/download/openldap-for -windows.aspx
它不是最新的 - 但它拥有您需要的一切。
there is no mention of Cygwin in your question - so I suspect you are a long way away from getting this to work. (weeks/months/years)
I suggest this:
http://www.userbooster.de/en/download/openldap-for-windows.aspx
it's not the latest - but it's got everything you'll need.