lnav is a great log file viewer. To use its latest features, we need to fetch the source code and compile manually.
When compiling lnav using make
, following error is appeared
listview_curses.cc: In member function ‘virtual void listview_curses::do_update()’: listview_curses.cc:293:76: error: ‘mvwin_wchnstr’ was not declared in this scope mvwin_wchnstr(this->lv_window, y, this->lv_x, row_ch, width - 1); ^ listview_curses.cc:297:77: error: ‘mvwadd_wchnstr’ was not declared in this scope mvwadd_wchnstr(this->lv_window, y, this->lv_x, row_ch, width - 1);
I have installed all requirements stated in documentation.
Solution
The lnav documentation only said ncurses library is needed, but not mention which version.
My current installed ncurses library is libncurses5-dev. Changing to libncursesw5-dev fixed this issue.
apt install libncursesw5-dev
(This command is for apt package manager, please change to corresponding command according to the package manager you use.)
The post ‘mvwin_wchnstr’ was not declared in this scope when compiling lnav appeared first on Redino blog.