【问题标题】:curl make error: "missing separator (did you mean TAB instead of 8 spaces?)"curl 出错:“缺少分隔符(您的意思是 TAB 而不是 8 个空格?)”
【发布时间】:2014-12-28 16:15:36
【问题描述】:

我正在尝试在 debian wheezy 上构建 curl 7.38.0,并在运行 ./configure 后不断收到此错误。

$ make
Making all in lib
make[1]: Entering directory '/home/abc/curl-7.38.0/lib'
Makefile:2833: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.
make[1]: Leaving directory '/home/abc/curl-7.38.0/lib'
Makefile:846: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

我尝试查看/查看第 2833 或 846 行是否有多余的空格,但没有发现任何问题。一切看起来都很好,所以我不明白为什么会有任何问题。非常感谢任何帮助!

【问题讨论】:

    标签: shell curl compilation makefile debian


    【解决方案1】:

    我之前遇到过几次这个错误。错误消息可能有点误导。我发现源目录中文件的时间戳对我来说搞砸了,所以我用touch 来更新它们。

    touch ./*
    

    如果这不起作用,请尝试更新除Makefile 之外的所有文件。

    for i in ./*; do [[ $i != ./Makefile ]] && touch $i; done
    

    然后运行make,config.status 应该重新检查并继续编译。

    【讨论】:

    • 这真的有效吗?太棒了。另外不要解析ls的输出。尤其是在这种情况下,for i in *; do 也可以正常工作。
    • ./* 将获取您的./Makefile 作为路径。
    猜你喜欢
    • 1970-01-01
    • 2013-03-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-15
    • 2010-10-29
    相关资源
    最近更新 更多