tce-load -i compiletc curl-dev libarchive-dev jsoncpp-dev expat2-dev ncursesw-dev libuv-dev librhash-dev cd cmake-3.10.2 sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake edit Modules/FindCurses.cmake include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake) set(CURSES_NEED_WIDE TRUE) set(CURSES_FORM_LIBRARY "/usr/local/lib/libformw.so") # Previous versions of FindCurses provided these values. ./configure --prefix=/usr/local --system-libs edit CMakeCache.txt CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE CMAKE_BUILD_TYPE:STRING=Release CMAKE_CXX_FLAGS_RELEASE:STRING=-flto -fuse-linker-plugin -mtune=generic -Os -pipe CMAKE_C_FLAGS_RELEASE:STRING=-flto -fuse-linker-plugin -mtune=generic -Os -pipe [fno-exceptions fails] ln -s /tmp/tcloop/ncursesw-dev/usr/local/include/ncursesw/form.h /usr/local/include make [8m 57.36s] sudo make install -- Using system-installed BZIP2 -- Using system-installed CURL -- Using system-installed EXPAT -- Using system-installed FORM -- Using system-installed JSONCPP -- Using system-installed LIBARCHIVE -- Using system-installed LIBLZMA -- Using system-installed LIBRHASH -- Using system-installed LIBUV -- Using system-installed ZLIB