Skip to content

linux install error in sqlite dev dependency not installed #17

@maks

Description

@maks

running: cargo install git-branchless gives:

[snip...]

stlib/x86_64-unknown-linux-gnu/lib/libcore-1395c6db3d116086.rlib" "-Wl,--end-group" "/home/maks/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b4bd87926720b651.rlib" "-Wl,-Bdynamic" "-lsqlite3" "-lncursesw" "-ltinfo" "-lz" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc"
  = note: /usr/bin/ld: cannot find -lsqlite3
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: failed to compile `git-branchless v0.3.1`, intermediate artifacts can be found at `/tmp/cargo-installNtxzqk`

Caused by:
  could not compile `git-branchless`

On Ubuntu, it was enough to use: sudo apt install libsqlite3-dev to install the required sqlite dependency to then successfully install git-branchless.
Perhaps cargo has some way of checking for the native sqlite lib to be installed? Ortherwise might be worth documenting this dependency for installs via cargo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions