Skip to content
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

[Bug] Can't build development environment #1076

Closed
dadyarri opened this issue Sep 17, 2022 · 2 comments
Closed

[Bug] Can't build development environment #1076

dadyarri opened this issue Sep 17, 2022 · 2 comments

Comments

@dadyarri
Copy link
Contributor

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)
@richardshiue
Copy link
Collaborator

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!

@dadyarri
Copy link
Contributor Author

@richardshiue, thanks, that helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants