8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

/bin/sh: 1: ./make.py: 权限被拒绝

ATK 2月前

96 0

我在 docker 中构建 onlyoffice 时遇到了这个编译错误。有人知道原因是什么吗?我正在使用 root 用户启动的 Docker,make.py 可以确认它已执行...

我在 docker 中构建 onlyoffice 时遇到了这个编译错误。有人知道原因是什么吗?我正在使用 root 用户启动的 Docker,make.py 可以确认它具有执行权限。

这是我的编译环境:

1.重现问题的步骤:

python3./automate.py 服务器

2.build_tools基础repo版本:

起源/发布/v8.1.0

3.操作系统:

Linux 版本 4.4.0-186-generic (buildd@lcy01-amd64-002) (gcc 版本 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ) #216-Ubuntu SMP 2020 年 7 月 1 日星期三 05:34:05 UTC

4.编译器版本:

主版本

5.docker文件

FROM ubuntu:16.04

ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Update the sources.list to use the mirror closet to you
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://free.nchc.org.tw/ubuntu/|g' /etc/apt/sources.list

RUN apt-get -y update && \
    apt-get -y install software-properties-common && \
    add-apt-repository ppa:openjdk-r/ppa && \
    apt-get -y update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y install python \
                                    python3 \
                                    sudo \
                                    openjdk-11-jdk \
                                    openjdk-11-jdk-headless \
                                    openjdk-11-jre \
                                    openjdk-11-jre-headless \
                                    git \
                                    openssh-client

RUN rm /usr/bin/python && ln -s /usr/bin/python2 /usr/bin/python

VOLUME ["/work"]
WORKDIR /work

# Set the default command
CMD ["bash"]

错误日志输出

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>

HEAD is now at be6df45... [|attr] crash &&  memory leak
Cloning into 'hunspell'...
Note: checking out '8a2fdfe5a6bb1cbafc04b0c8486abcefd17ad903'.

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>

HEAD is now at 8a2fdfe... replace archaic &std::vector::operator[0] with c++11 std::vector::data
/bin/sh: 1: ./make.py: Permission denied
[fetch & build]: boost
[fetch & build]: cef
[fetch & build]: icu
[fetch & build]: openssl
gn gen out.gn/linux_64 --args="v8_static_library=true is_component_build=false v8_monolithic=true v8_use_external_startup_data=false use_custom_libcxx=false treat_warnings_as_errors=false target_cpu=\"x64\" v8_target_cpu=\"x64\" is_debug=false is_clang=true use_sysroot=false"
[fetch & build]: hunspell
[fetch & build]: harfbuzz
Error (./make.py): 126
install dependencies...
---------------------------------------------
build branch: release-v8.1.0
---------------------------------------------
---------------------------------------------
build modules: server
---------------------------------------------
Error (./make.py): 1
root@2148240c5bd1:/work/build_tools/tools/linux# ls

虽然尝试使用“chmod -X make.py”重新添加对“make.py”文件的权限,但对我来说不起作用

帖子版权声明 1、本帖标题:/bin/sh: 1: ./make.py: 权限被拒绝
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由ATK在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 我在装有 Ubuntu 操作系统的机器上安装了 Docker。当我运行:sudo docker run hello-worldAll 时没问题,但我想隐藏 sudo 命令以使命令更短。如果我写命令

    我在装有 Ubuntu 操作系统的机器上安装了 Docker。
    当我跑步时:

    sudo docker run hello-world
    

    一切正常,但我想隐藏命令 sudo 以使命令更短。
    如果我写命令时不带 sudo

    docker run hello-world
    

    显示以下内容:

    docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'.
    

    当我尝试运行时也会发生同样的事情:

    docker-compose up
    

    我该如何解决这个问题?

返回
作者最近主题: