This error occurs when CMake is unable to find the 'curses' library, which is a dependency for the 'readline' package. To fix this error, you need to install the appropriate 'curses' library package for your Linux distribution.

For Debian/Ubuntu, run the following command:

sudo apt-get install libncurses5-dev

For Redhat and derivatives, run the following command:

sudo yum install ncurses-devel

Once the package is installed, remove the CMakeCache.txt file and rerun cmake. The error should be resolved.

CMake Error: Curses Library Not Found - How to Fix

原文地址: http://www.cveoy.top/t/topic/nZyI 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录