首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在google cloud run上安装jsonnet失败

在google cloud run上安装jsonnet失败
EN

Stack Overflow用户
提问于 2020-12-26 21:51:30
回答 1查看 485关注 0票数 1

我正在尝试构建一个镜像,用于在运行jsonnet python包的谷歌云上部署代码,它无法安装jsonnet,并出现以下错误。我能做些什么来解决这个问题呢?

代码语言:javascript
复制
Running setup.py install for jsonnet: started
Running setup.py install for jsonnet: finished with status 'error'
[91m    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/setup.py'"'"'; __file__='"'"'/tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3h0ew2u0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/jsonnet
         cwd: /tmp/pip-install-omf9pb8l/jsonnet_ec2d6dbf69014cee8b4fe5227a52a519/
    Complete output (4 lines):
    running install
    running build
    running build_ext
    error: [Errno 2] No such file or directory: 'make'
    ----------------------------------------
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-27 20:45:29

正如DazWilkin先生所说,这个错误与编译有关。要解决此问题,必须安装带有apt-get -y install build-essentialmake

例如RUN apt update -y && apt -y install build-essential git && git clone https://github.com/google/jsonnet.git && cd jsonnet && make

For more information

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65457061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档