Closed stephen-hill closed 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.
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.
@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 👍
Hi
I'm having trouble compiling from source on alpine linux.
The main error appears to be
error: linking with
ccfailed: exit code: 1
.Here is the full output.
Many Thanks Stephen