Docker Build error "ffigen is not a command, or not executable" #765

Closed
opened 2026-02-20 23:10:04 -05:00 by deekerman · 1 comment
Owner

Originally created by @topaz2002 on GitHub (Sep 6, 2022).

While building via docker-container i get error

error: failed to run custom build command for `rustdesk v1.1.10 (/home/user/rustdesk)`

Caused by:
  process didn't exit successfully: `/home/user/rustdesk/target/release/build/rustdesk-b236ee71c6208b6b/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=src/flutter_ffi.rs

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ffigen is not a command, or not executable.', build.rs:99:56
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

...

What did you expect to happen instead?

successfully built

How did you install RustDesk?

git clone https://github.com/rustdesk/rustdesk
cd rustdesk
docker build -t "rustdesk-builder" .

RustDesk version and environment
last available

In order to reproduce your issue, please add some information about the environment
in which you're running RustDesk.

-->
docker --version
Docker version 20.10.17, build 100c701

uname -a
Linux 4.14.35-2047.516.2.1.el7uek.x86_64 #2 SMP Wed Aug 17 16:30:09 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Exactly follow the building instruction (Docker version)

Originally created by @topaz2002 on GitHub (Sep 6, 2022). <!-- Hey there, thank you for creating an issue! --> While building via docker-container i get error ``` error: failed to run custom build command for `rustdesk v1.1.10 (/home/user/rustdesk)` Caused by: process didn't exit successfully: `/home/user/rustdesk/target/release/build/rustdesk-b236ee71c6208b6b/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-changed=src/flutter_ffi.rs --- stderr thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ffigen is not a command, or not executable.', build.rs:99:56 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` ... **What did you expect to happen instead?** successfully built **How did you install `RustDesk`?** ``` git clone https://github.com/rustdesk/rustdesk cd rustdesk docker build -t "rustdesk-builder" . ``` **RustDesk version and environment** last available **In order to reproduce your issue, please add some information about the environment in which you're running RustDesk.** --> docker --version Docker version 20.10.17, build 100c701 uname -a Linux 4.14.35-2047.516.2.1.el7uek.x86_64 #2 SMP Wed Aug 17 16:30:09 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux Exactly follow the building instruction (Docker version)
deekerman 2026-02-20 23:10:04 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Sep 6, 2022):

#763

@rustdesk commented on GitHub (Sep 6, 2022): #763
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#765
No description provided.