问题描述
我正在尝试创建一个包含 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 (将#修改为@)