-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"/bin/sh: 1: ./build_luisa.sh: not found" while trying to build the Docker image #397
Comments
我在windows中构建的时候也遇到了这个问题 |
This usually happens on Windows because the shell script has DOS/Windows CRLF line endings rather than Unix LF line endings. Even though you see the file in ls -l and have executed chmod +x, the Docker build environment (which is Linux-based) treats the carriage return (\r) as part of the filename or a bad interpreter directive, causing the not found error. You can fix it by changing CRLF line editing to LF line editing on VSCode |
Thank you very much, I made the change of CRLF to LF, and the image-building process did proceed, and it came across another issue later down the path: =================
|
Switched from CRFL to LF and it works. thank @alanahmet @git523 open the file, switch to LF and than save the file. Run the build again. |
Thank you @SphaeroX , I tried again and still could not move forward, each time the error message differs a little though. I am not sure if it could be related to the downloading process(?).... ========= 106.2 1295 | fn gen_instr(&mut self, node: NodeRef) {
|
Just a quick follow-up: I gave up on installing it into the Ubuntu environment through Microsoft App store, and switched to virtualbox and installed a fresh new Ubuntu environment. I was able to install the program with no issues there. (I did came across other issues when running the examples, and i will start a new thread). Thanks again to @SphaeroX and @alanahmet |
I was trying to build the Docker image, and came across the following error. Not sure if anyone has this before, thanks for your help:
D:\Genesis-docker\github>docker build -t genesis -f docker/Dockerfile docker
[+] Building 819.7s (19/26) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 4.50kB 0.0s
=> [internal] load metadata for docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel 0.4s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 1.75kB 0.0s
=> [builder 1/11] FROM docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel@sha256:e8e63dd7baca894ba11fe1ba48a52a550793c8974f89b533d697784dd20a4dc0 0.0s
=> => resolve docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel@sha256:e8e63dd7baca894ba11fe1ba48a52a550793c8974f89b533d697784dd20a4dc0 0.0s
=> CACHED [stage-1 2/12] RUN apt-get update && apt-get install -y --no-install-recommends tmux git curl wget bash-completion 0.0s
=> [stage-1 3/12] WORKDIR /workspace 0.0s
=> CACHED [builder 2/11] RUN apt-get update && apt-get install -y --no-install-recommends build-essential manpages-dev libvulkan-dev 0.0s
=> CACHED [builder 3/11] RUN add-apt-repository ppa:ubuntu-toolchain-r/test && apt update && apt install -y --no-install-recommends gcc- 0.0s
=> CACHED [builder 4/11] RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 && update-alternatives --install /usr/bin/g++ g+ 0.0s
=> [builder 5/11] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 77.4s
=> [stage-1 4/12] RUN pip install --no-cache-dir open3d 409.0s
=> [builder 6/11] RUN pip install "pybind11[global]" 2.4s
=> [builder 7/11] RUN wget https://github.com/Kitware/CMake/releases/download/v3.31.0-rc2/cmake-3.31.0-rc2-linux-x86_64.sh && chmod +x cmake-3. 32.8s
=> [builder 8/11] WORKDIR /workspace 0.0s
=> [builder 9/11] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && git submodule update --init --recursiv 706.2s
=> CANCELED [stage-1 5/12] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && pip install . && pip inst 410.1s
=> [builder 10/11] COPY build_luisa.sh /workspace/build_luisa.sh 0.1s
=> ERROR [builder 11/11] RUN chmod +x ./build_luisa.sh && ./build_luisa.sh 3.11 0.3s
Dockerfile:52
50 | git submodule update --init --recursive
51 | COPY build_luisa.sh /workspace/build_luisa.sh
52 | >>> RUN chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}
53 |
54 | # ===============================================================
ERROR: failed to solve: process "/bin/sh -c chmod +x ./build_luisa.sh && ./build_luisa.sh ${PYTHON_VERSION}" did not complete successfully: exit code: 127
The text was updated successfully, but these errors were encountered: