jeff-hughes / shellcaster

Terminal-based podcast manager built in Rust
GNU General Public License v3.0
199 stars 13 forks source link

Cannot build from source on Alpine Linux v3.12 #13

Closed stephen-hill closed 4 years ago

stephen-hill commented 4 years ago

Hi

I'm having trouble compiling from source on alpine linux.

The main error appears to be error: linking withccfailed: exit code: 1.

Here is the full output.

Many Thanks Stephen

stephen@stephen ~> rustup-init

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

It will add the cargo, rustc, rustup and other commands to
Cargo's bin directory, located at:

  /home/stephen/.cargo/bin

This can be modified with the CARGO_HOME environment variable.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/stephen/.rustup

This can be modified with the RUSTUP_HOME environment variable.

This path will then be added to your PATH environment variable by
modifying the profile file located at:

  /home/stephen/.profile

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:

   default host triple: x86_64-unknown-linux-musl
     default toolchain: stable
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-musl
info: syncing channel updates for 'stable-x86_64-unknown-linux-musl'
info: latest update on 2020-08-03, rust version 1.45.2 (d3fb005a3 2020-07-31)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std'
 15.1 MiB /  15.1 MiB (100 %)   8.5 MiB/s in  2s ETA:  0s
info: downloading component 'rustc'
 60.9 MiB /  60.9 MiB (100 %)   8.5 MiB/s in  8s ETA:  0s
info: downloading component 'rustfmt'
  3.4 MiB /   3.4 MiB (100 %)   2.6 MiB/s in  1s ETA:  0s
info: installing component 'cargo'
  5.0 MiB /   5.0 MiB (100 %)   4.9 MiB/s in  1s ETA:  0s
info: installing component 'clippy'
info: installing component 'rust-std'
 15.1 MiB /  15.1 MiB (100 %)   4.8 MiB/s in  3s ETA:  0s
info: installing component 'rustc'
 60.9 MiB /  60.9 MiB (100 %)   4.3 MiB/s in 13s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable'

  stable installed - rustc 1.45.2 (d3fb005a3 2020-07-31)

Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell run source $HOME/.cargo/env
stephen@stephen ~> cargo install shellcaster
    Updating crates.io index
  Downloaded shellcaster v1.0.0
  Downloaded 1 crate (398.4 KB) in 2.04s
  Installing shellcaster v1.0.0
  Downloaded ident_case v1.0.1
  Downloaded textwrap v0.12.1
  Downloaded strsim v0.9.3
  Downloaded sanitize-filename v0.2.1
  Downloaded rusqlite v0.21.0
  Downloaded rss v1.9.0
  Downloaded libc v0.2.74
  Downloaded regex v1.3.9
  Downloaded qstring v0.7.2
  Downloaded darling_macro v0.10.2
  Downloaded strsim v0.8.0
  Downloaded unicode-xid v0.2.1
  Downloaded pancurses v0.16.1
  Downloaded quick-xml v0.17.2
  Downloaded ncurses v5.99.0
  Downloaded ansi_term v0.11.0
  Downloaded quote v1.0.7
  Downloaded unicode-width v0.1.8
  Downloaded tinyvec v0.3.3
  Downloaded log v0.4.11
  Downloaded lazy_static v1.4.0
  Downloaded matches v0.1.8
  Downloaded toml v0.5.6
  Downloaded time v0.1.43
  Downloaded num-integer v0.1.43
  Downloaded opml v0.2.4
  Downloaded vec_map v0.8.2
  Downloaded xmlparser v0.13.2
  Downloaded url v2.1.1
  Downloaded openssl v0.10.30
  Downloaded chrono v0.4.15
  Downloaded unicode-bidi v0.3.4
  Downloaded unicode-normalization v0.1.13
  Downloaded serde v1.0.115
  Downloaded clap v2.33.3
  Downloaded syn v1.0.38
  Downloaded regex-syntax v0.6.18
  Downloaded idna v0.2.0
  Downloaded libsqlite3-sys v0.17.3
  Downloaded shellexpand v2.0.0
  Downloaded strong-xml-derive v0.6.0
  Downloaded strong-xml v0.6.0
  Downloaded thread_local v1.0.1
  Downloaded textwrap v0.11.0
  Downloaded entities v1.0.1
  Downloaded ureq v1.4.0
  Downloaded escaper v0.1.0
  Downloaded jetscii v0.4.4
  Downloaded encoding_rs v0.8.23
  Downloaded percent-encoding v2.1.0
  Downloaded openssl-probe v0.1.2
  Downloaded native-tls v0.2.4
  Downloaded aho-corasick v0.7.13
  Downloaded serde_derive v1.0.115
  Downloaded pkg-config v0.3.18
  Downloaded num-traits v0.2.12
  Downloaded foreign-types-shared v0.1.1
  Downloaded foreign-types v0.3.2
  Downloaded fnv v1.0.7
  Downloaded dirs v2.0.2
  Downloaded bitflags v1.2.1
  Downloaded autocfg v1.0.0
  Downloaded linked-hash-map v0.5.3
  Downloaded fallible-streaming-iterator v0.1.9
  Downloaded fallible-iterator v0.2.0
  Downloaded dirs-sys v0.3.5
  Downloaded cc v1.0.58
  Downloaded proc-macro2 v1.0.19
  Downloaded openssl-sys v0.9.58
  Downloaded cfg-if v0.1.10
  Downloaded atty v0.2.14
  Downloaded memchr v2.3.3
  Downloaded lru-cache v0.1.2
  Downloaded dirs-next v1.0.1
  Downloaded derive_builder v0.9.0
  Downloaded darling_core v0.10.2
  Downloaded darling v0.10.2
  Downloaded base64 v0.12.3
  Downloaded dirs-sys-next v0.1.0
  Downloaded derive_builder_core v0.9.0
  Downloaded chunked_transfer v1.2.0
  Downloaded 81 crates (7.6 MB) in 2.14s (largest was `libsqlite3-sys` at 2.3 MB)
   Compiling libc v0.2.74
   Compiling proc-macro2 v1.0.19
   Compiling pkg-config v0.3.18
   Compiling autocfg v1.0.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling cc v1.0.58
   Compiling cfg-if v0.1.10
   Compiling memchr v2.3.3
   Compiling lazy_static v1.4.0
   Compiling bitflags v1.2.1
   Compiling ident_case v1.0.1
   Compiling fnv v1.0.7
   Compiling strsim v0.9.3
   Compiling log v0.4.11
   Compiling serde_derive v1.0.115
   Compiling openssl v0.10.30
   Compiling serde v1.0.115
   Compiling foreign-types-shared v0.1.1
   Compiling tinyvec v0.3.3
   Compiling encoding_rs v0.8.23
   Compiling jetscii v0.4.4
   Compiling matches v0.1.8
   Compiling percent-encoding v2.1.0
   Compiling derive_builder v0.9.0
   Compiling unicode-width v0.1.8
   Compiling native-tls v0.2.4
   Compiling regex-syntax v0.6.18
   Compiling openssl-probe v0.1.2
   Compiling linked-hash-map v0.5.3
   Compiling xmlparser v0.13.2
   Compiling strsim v0.8.0
   Compiling base64 v0.12.3
   Compiling fallible-streaming-iterator v0.1.9
   Compiling entities v1.0.1
   Compiling ansi_term v0.11.0
   Compiling chunked_transfer v1.2.0
   Compiling vec_map v0.8.2
   Compiling fallible-iterator v0.2.0
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling libsqlite3-sys v0.17.3
   Compiling thread_local v1.0.1
   Compiling foreign-types v0.3.2
   Compiling unicode-normalization v0.1.13
   Compiling unicode-bidi v0.3.4
   Compiling qstring v0.7.2
   Compiling textwrap v0.11.0
   Compiling textwrap v0.12.1
   Compiling openssl-sys v0.9.58
   Compiling ncurses v5.99.0
   Compiling lru-cache v0.1.2
   Compiling escaper v0.1.0
   Compiling idna v0.2.0
   Compiling quote v1.0.7
   Compiling time v0.1.43
   Compiling dirs-sys v0.3.5
   Compiling dirs-sys-next v0.1.0
   Compiling atty v0.2.14
   Compiling aho-corasick v0.7.13
   Compiling quick-xml v0.17.2
   Compiling url v2.1.1
   Compiling dirs v2.0.2
   Compiling dirs-next v1.0.1
   Compiling clap v2.33.3
   Compiling rusqlite v0.21.0
   Compiling regex v1.3.9
   Compiling pancurses v0.16.1
   Compiling shellexpand v2.0.0
   Compiling darling_core v0.10.2
   Compiling chrono v0.4.15
   Compiling sanitize-filename v0.2.1
   Compiling strong-xml-derive v0.6.0
   Compiling darling_macro v0.10.2
   Compiling ureq v1.4.0
   Compiling darling v0.10.2
   Compiling toml v0.5.6
   Compiling strong-xml v0.6.0
   Compiling derive_builder_core v0.9.0
   Compiling opml v0.2.4
   Compiling rss v1.9.0
   Compiling shellcaster v1.0.0
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-m64" "-nostartfiles" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/crt1.o" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/crti.o" "-L" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.0.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.1.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.10.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.11.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.12.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.13.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.14.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.15.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.2.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.3.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.4.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.5.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.6.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.7.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.8.rcgu.o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.shellcaster.cl7jfd8b-cgu.9.rcgu.o" "-o" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3" "/tmp/cargo-installYGxFgZ/release/deps/shellcaster-cdebd9c6336995c3.2zlkippc5r3ehgz5.rcgu.o" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/tmp/cargo-installYGxFgZ/release/deps" "-L" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/tmp/cargo-installYGxFgZ/release/deps/libureq-aaf78e72d7b8f9d4.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libbase64-70e8c11156d6263b.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libnative_tls-fcab3a6965aaaf12.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libopenssl_probe-76565c61f9233847.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libopenssl-56fa3f0c796e0cf1.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libopenssl_sys-6910805d06080c6f.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libforeign_types-b25d41d4d1f7ee89.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libforeign_types_shared-5687188bc2063b12.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libchunked_transfer-6edd8e0dd08de5b6.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libqstring-5da6f6c7bf66ff83.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liburl-7713e0bcbf1fe78f.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libpercent_encoding-ce47587b3d5290ac.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libidna-2ed47c8db6625129.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libunicode_normalization-88557251162c4b43.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libtinyvec-f29e010334259a7b.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libunicode_bidi-51e5e42d112e6970.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libmatches-598fb25f61f28fd3.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libescaper-775c26962d314b13.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libentities-d8348c77f6477ac5.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libtextwrap-163d9f64d54dec6d.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libshellexpand-b7469c9fa589ea22.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libdirs-dd048ed205610d98.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libdirs_sys-e4c955271d2b8636.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libdirs_next-5a86e8cf4ef0d66b.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libdirs_sys_next-c1e123ad673f99a4.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libtoml-8538b5ddab5420ee.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libopml-b260815fe3f9539d.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libstrong_xml-667c5c6fd7a06a04.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libjetscii-ae52c7fd1452a960.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libxmlparser-2d11f47de52abded.rlib" "/tmp/cargo-installYGxFgZ/release/deps/librss-bd482e95cb428aa3.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libquick_xml-3fd41a8c78b5f52b.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libencoding_rs-1f59c678aced04f8.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libchrono-97da7b1b17d48d50.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libnum_integer-c0fde6dd487fbd72.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libnum_traits-bf43a7df28591d5d.rlib" "/tmp/cargo-installYGxFgZ/release/deps/librusqlite-7ed27f514812a19a.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libtime-1d2257c3d8c1ae7f.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libfallible_streaming_iterator-ebb5518c495289f3.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libfallible_iterator-04b6fe69b9b9b094.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblru_cache-1cf8317efd02d77b.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblinked_hash_map-6d12c442f89254d3.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblibsqlite3_sys-3d0f1474cea6c150.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libpancurses-28095804ad8baf34.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libncurses-185d377c9db22605.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblog-94ee2d2ce3e53e71.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libcfg_if-80d14f460812f8ea.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libserde-4e16e15ecdd92e18.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libsanitize_filename-136a4836b0b8a737.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libregex-3fe564b8ca04d573.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libthread_local-38dd5cc7e40a1332.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblazy_static-ca1f4e90aa8beb38.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libregex_syntax-20ac347ed7871be0.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libaho_corasick-65eef30f47ae7672.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libmemchr-89182d73c9d063a6.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libclap-21112fde4d56e1c7.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libvec_map-d40ffe29a94202e9.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libtextwrap-0d67744419967485.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libunicode_width-0917a8de8c4c564c.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libstrsim-56f3a30871d1fd46.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libbitflags-0a090a8bc3306fb2.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libatty-72db4e3008bb83b6.rlib" "/tmp/cargo-installYGxFgZ/release/deps/liblibc-75d6b2309c5390aa.rlib" "/tmp/cargo-installYGxFgZ/release/deps/libansi_term-5942f4a397ebe9cc.rlib" "-Wl,--start-group" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-6d58bc9e45052f27.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-d2218d0a05f2afa4.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-e4fbfa7f0925f555.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-45e930b3f2c7be7a.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libbacktrace-4b06cfc5dc3a204d.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libbacktrace_sys-7b6eb6aba8256c00.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-b6f9554cef162dd4.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-3cb00da2592899c7.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-9dcf53fe1317e1fd.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-10941a21a88666ce.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-b852c17779cb8fc7.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-69c2a9e8ef492771.rlib" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-6914d93bde38d1ce.rlib" "-Wl,--end-group" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-24e199ab374497dd.rlib" "-Wl,-Bdynamic" "-lssl" "-lcrypto" "-lsqlite3" "-lncursesw" "/home/stephen/.rustup/toolchains/stable-x86_64-unknown-linux-musl/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o"
  = note: /usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lsqlite3
          collect2: error: ld returned 1 exit status

error: aborting due to previous error

error: failed to compile `shellcaster v1.0.0`, intermediate artifacts can be found at `/tmp/cargo-installYGxFgZ`

Caused by:
  could not compile `shellcaster`.

To learn more, run the command again with --verbose.
stephen@stephen ~ [101]> cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.12.0
PRETTY_NAME="Alpine Linux v3.12"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
jeff-hughes commented 4 years ago

Hi Stephen,

It looks like you didn't install all the dependencies as listed here: https://github.com/jeff-hughes/shellcaster#on-other-linux-distributions-and-macos

In particular, it seems to be complaining about sqlite3 being missing, but it could be pkg-config, which is used to establish the linkage with sqlite3. I don't use Alpine, but doing a quick search it seems like it may be called pkgconfig in the Alpine package manager. And the sqlite3 dev headers look like they are in sqlite-libs. That's about the best I can do -- all these packages get named differently from distro to distro, unfortunately.

Alternatively, if that's giving you problems, you can try compiling with the sqlite_bundled feature enabled, like so:

cargo install shellcaster --features "sqlite_bundled"

That will use a bundled version of the sqlite library instead of linking with the system version. However, that does mean that the sqlite database used won't be updated with the rest of your system -- you'll be on the update schedule of the people maintaining the rusqlite crate. So I'd tend to recommend linking with the one in the Alpine repos if you can.

jeff-hughes commented 4 years ago

I'm going to assume that you either got things working or gave up and moved on, so I'm going to close this issue. If you still have issues, feel free to reopen and we can continue to troubleshoot.

stephen-hill commented 4 years ago

@jeff-hughes Sorry. Yes, I gave up. On my slow server the build times were very long because of all the dependencies, and even after making sure I had all relevant packages installed, it would still not build.

I may come back to this as I would like this running on Apline, but right now it's not a priority for me.

Thank you for your help though 👍