[GH-ISSUE #1076] [Bug] Can't build development environment #428

Closed
opened 2026-03-23 20:36:29 +00:00 by mirror · 2 comments
Owner

Originally created by @dadyarri on GitHub (Sep 17, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1076

Describe the bug
While executing install_linux.sh script at compiling diesel_cli i'm getting following error:

error: linking with `cc` failed: exit status: 1
...
= note: /usr/bin/ld: cannot find -lsqlite3
          collect2: error: ld returned 1 exit status


error: could not compile `diesel_cli` due to previous error
error: failed to compile `diesel_cli v2.0.0`, intermediate artifacts can be found at `/tmp/cargo-install4xWPP3`

Expected behavior
Successful build

Desktop (please complete the following information):

  • OS: Fedora 36

Additional context

❯ flutter doctor -v
[✓] Flutter (Channel stable, 3.3.2, on Fedora Linux 36 (KDE Plasma) 5.19.8-200.fc36.x86_64, locale ru_RU.UTF-8)
    • Flutter version 3.3.2 on channel stable at /home/dadyarri/projects/community/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (3 дня назад), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.5 (Fedora 14.0.5-1.fc36)
    • cmake version 3.22.2
    • ninja version 1.10.2
    • pkg-config version 1.8.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at /home/dadyarri/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.3739.54
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.71.2)
    • VS Code at /usr/share/code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Fedora Linux 36 (KDE Plasma) 5.19.8-200.fc36.x86_64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 3 categories.
❯ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/dadyarri/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.63.0 (4b91a6ea7 2022-08-08)
Originally created by @dadyarri on GitHub (Sep 17, 2022). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1076 **Describe the bug** While executing `install_linux.sh` script at compiling `diesel_cli` i'm getting following error: ``` error: linking with `cc` failed: exit status: 1 ... = note: /usr/bin/ld: cannot find -lsqlite3 collect2: error: ld returned 1 exit status error: could not compile `diesel_cli` due to previous error error: failed to compile `diesel_cli v2.0.0`, intermediate artifacts can be found at `/tmp/cargo-install4xWPP3` ``` **Expected behavior** Successful build **Desktop (please complete the following information):** - OS: Fedora 36 **Additional context** ``` ❯ flutter doctor -v [✓] Flutter (Channel stable, 3.3.2, on Fedora Linux 36 (KDE Plasma) 5.19.8-200.fc36.x86_64, locale ru_RU.UTF-8) • Flutter version 3.3.2 on channel stable at /home/dadyarri/projects/community/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision e3c29ec00c (3 дня назад), 2022-09-14 08:46:55 -0500 • Engine revision a4ff2c53d8 • Dart version 2.18.1 • DevTools version 2.15.0 [✗] Android toolchain - develop for Android devices ✗ Unable to locate Android SDK. Install Android Studio from: https://developer.android.com/studio/index.html On first launch it will assist you in installing the Android SDK components. (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). If the Android SDK has been installed to a custom location, please use `flutter config --android-sdk` to update to that location. [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Linux toolchain - develop for Linux desktop • clang version 14.0.5 (Fedora 14.0.5-1.fc36) • cmake version 3.22.2 • ninja version 1.10.2 • pkg-config version 1.8.0 [!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions). [✓] IntelliJ IDEA Ultimate Edition (version 2022.2) • IntelliJ at /home/dadyarri/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.3739.54 • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.71.2) • VS Code at /usr/share/code • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected device (1 available) • Linux (desktop) • linux • linux-x64 • Fedora Linux 36 (KDE Plasma) 5.19.8-200.fc36.x86_64 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 3 categories. ``` ``` ❯ rustup show Default host: x86_64-unknown-linux-gnu rustup home: /home/dadyarri/.rustup stable-x86_64-unknown-linux-gnu (default) rustc 1.63.0 (4b91a6ea7 2022-08-08) ```
Author
Owner

@richardshiue commented on GitHub (Sep 17, 2022):

Looks like you are missing the development headers and library for sqlite3. Run sudo dnf install libsqlite3x-devel to install them.

If there are more similar error messages, run

sudo dnf install make automake gcc gcc-c++ kernel-devel curl libsqlite3x-devel openssl1.1-devel clang cmake ninja-build pkg-config gtk3-devel unzip keybinder3-devel perl-FindBin

Hope this helps!

<!-- gh-comment-id:1250019532 --> @richardshiue commented on GitHub (Sep 17, 2022): Looks like you are missing the development headers and library for sqlite3. Run `sudo dnf install libsqlite3x-devel` to install them. If there are more similar error messages, run ``` sudo dnf install make automake gcc gcc-c++ kernel-devel curl libsqlite3x-devel openssl1.1-devel clang cmake ninja-build pkg-config gtk3-devel unzip keybinder3-devel perl-FindBin ``` Hope this helps!
Author
Owner

@dadyarri commented on GitHub (Sep 17, 2022):

@richardshiue, thanks, that helps

<!-- gh-comment-id:1250020970 --> @dadyarri commented on GitHub (Sep 17, 2022): @richardshiue, thanks, that helps
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
AppFlowy-IO/AppFlowy#428
No description provided.