If you get a compiler error while trying to compile a source that has dependencies for libtinfo you might encounter an error similar to below on CentOS 6.
cc -g -O2 -o ncdu src/browser.o src/delete.o src/dirlist.o \
src/dir_common.o src/dir_export.o src/dir_import.o src/dir_mem.o \
src/dir_scan.o src/exclude.o src/help.o src/main.o src/path.o \
src/util.o -lncursesw
/cs/local/bin/ld: src/util.o: undefined reference to symbol 'acs_map'
/lib64/libtinfo.so.5: error adding symbols: DSO missing from command \
line
There are multiple fixes already out there such as
- undefined reference to symbol 'keypad'
- Undefined reference to symbol 'acs_map' when running makeconfig
My solution to the issue was to add the compiler flag -ltinfo
. Modify the parameter LIBS
in the Makefile
to reflect the change.
i.e:
LIBS = -llncursew -ltinfo