jeff-hughes / shellcaster

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

Can't build from source on Ubuntu 18.04 #11

Closed thunderbiscuit closed 4 years ago

thunderbiscuit commented 4 years ago

Here's my error. ncurses seems to be the problem.

error: failed to run custom build command for `ncurses v5.99.0`

Caused by:
  process didn't exit successfully: `/home/br/repos/shellcaster/target/debug/build/ncurses-1406731c976b3c24/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rustc-link-lib=ncurses
OPT_LEVEL = Some("0")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")

--- stderr
/home/br/repos/shellcaster/target/debug/build/ncurses-02a91be7fef58b4a/out/chtype_size.c:6:10: fatal error: ncurses.h: No such file or directory
 #include <ncurses.h>
          ^~~~~~~~~~~
compilation terminated.
thread 'main' panicked at 'assertion failed: command.status().expect("compilation failed").success()', /home/br/.cargo/registry/src/github.com-1ecc6299db9ec823/ncurses-5.99.0/build.rs:105:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

warning: build failed, waiting for other jobs to finish...
error: build failed
thunderbiscuit commented 4 years ago

Sorry I didn't have the dependencies. You can close this. The following solved all issues:

sudo apt install gcc pkg-config libncurses-dev libssl-dev libsqlite3-dev
jeff-hughes commented 4 years ago

I'll add this to the "needs better documentation" list!

jeff-hughes commented 4 years ago

There we go -- I've updated the readme to clarify the dependencies needed and clarify the instructions for compiling.