vigna / ne

ne, the nice editor
http://ne.di.unimi.it/
GNU General Public License v3.0
473 stars 33 forks source link

curses.h #112

Closed IntelligenceInside closed 5 months ago

IntelligenceInside commented 1 year ago

hi, on compile on alpine 3.17, i'm getting error,

ln -sf ../doc/version.texinfo c99 -std=c99 -Wall -Wno-parentheses -fno-strict-aliasing -flto=auto -ffat-lto-objects -Wp,-D_FORTIFY_SOURCE=2 -D_REGEX_LARGE_OFFSETS -D_GNU_SOURCE -DSTDC_HEADERS -DHAVE_SNPRINTF -O3 -DNDEBUG -c -o actions.o actions.c In file included from actions.c:22: ne.h:44:10: fatal error: curses.h: No such file or directory 44 | #include | ^~~~~~ compilation terminated. make[1]: *** [: actions.o] Error 1

utoddl commented 1 year ago

How are you invoking make, and from what directory (the top of the project or src)?

Is there anything else on alpine 3.17 that influences the build?

Although it may not apply on alpine, the ne.spec file (which controls rpm builds) lists the following requirements:

Requires: ncurses
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: make
BuildRequires: bash
BuildRequires: perl
BuildRequires: texinfo
BuildRequires: sed

Alpine likely has equivalently named packages. It sounds like you may need to install the alpine equivalent of ncurses-devel.

utoddl commented 1 year ago

I'm guessing "ncurses-dev":

https://pkgs.alpinelinux.org/package/edge/main/armhf/ncurses-dev