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

fatal error: ncurses.h: No such file or directory #65

Closed
rivertam opened this issue Jul 4, 2019 · 2 comments
Closed

fatal error: ncurses.h: No such file or directory #65

rivertam opened this issue Jul 4, 2019 · 2 comments

Comments

@rivertam
Copy link

rivertam commented Jul 4, 2019

I can't build the example. cargo run --example chat -- initiator results in the following errors:

error: failed to run custom build command for `ncurses v5.99.0`
process didn't exit successfully: `/home/ben/saltyrtc-client-rs/target/debug/build/ncurses-1f9ca53704032ffe/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rustc-link-lib=ncursesw
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")

/home/ben/saltyrtc-client-rs/target/debug/build/ncurses-97110365ef2ce7aa/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/ben/.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

I'm sure the issue is just that I need to install ncurses globally or something, but I don't see this documented anywhere in the repo.

@rivertam
Copy link
Author

rivertam commented Jul 4, 2019

Resolved on Ubuntu with sudo apt install libncursesw5-dev. There may be other implicit dependencies.

@rivertam rivertam closed this as completed Jul 4, 2019
dbrgn pushed a commit that referenced this issue Jul 5, 2019
@dbrgn
Copy link
Member

dbrgn commented Jul 5, 2019

README updated.

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