如何解决编译守望者因“语法无效”而失败
我正在尝试创建一个包含 watchman 的 docker 容器,但不幸的是,编译在很早的阶段就失败了,并显示以下消息:
Step 8/13 : RUN cd /tmp && git clone https://github.com/facebook/watchman.git watchman --depth 1 -b ${WATCHMAN_TAG}
---> Running in b3b97816dc40
cloning into 'watchman'...
Note: checking out '9312386414e1d0309f4ee815b70cef461b846c00'.
You are in 'detached HEAD' state. You can look around,make experimental
changes and commit them,and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create,you may
do so (Now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Removing intermediate container b3b97816dc40
---> fddd6f6c7324
Step 9/13 : RUN cd /tmp/watchman && ./autogen.sh && ./configure && make && make install && cd $HOME && rm -rf /tmp/*
---> Running in e37d2af112e7
+ PREFIX=/usr/local
+ python3 build/fbcode_builder/getdeps.py build --src-dir=. watchman --project-install-prefix=watchman:/usr/local
File "build/fbcode_builder/getdeps.py",line 578
f"Will reconfigure cmake because {dep_file} is newer than {built_marker}"
^
SyntaxError: invalid Syntax
WATCHMAN_TAG 是“v2021.03.22.00”,我也安装了 python-dev(也试过 python3-dev 包):
RUN apt-get update && apt-get install -y automake autoconf build-essential libtool libssl-dev pkg-config python3-dev
有谁知道我如何解决这个问题?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。