【解决】CMake was unable to find a build program corresponding to “Unix Makefiles“.

本人在进行cmake测试时候出现了以下错误:

在这里插入图片描述
经过资料查阅,出现该问题的原因是 : 【当前系统未安装 make】,这个原因可能是本人在安装 cmake 时候直接下载的编译版本,未进行原生编译造成的,运行下面的命令:

sudo apt-get install make

在这里插入图片描述
安装成功,再进行运行 cmake 命令,则正常输出,完美解决!
在这里插入图片描述

(01_py36) eaibot@EAI_LEO:~$ pip install PyMuPDF opencv-python-headless --no-cache-dir Requirement already satisfied: PyMuPDF in ./miniconda3/envs/01_py36/lib/python3.6/site-packages (1.18.19) Collecting opencv-python-headless Downloading opencv-python-headless-4.11.0.86.tar.gz (95.2 MB) |████████████████████████████████| 95.2 MB 3.8 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy>=1.13.3 in ./miniconda3/envs/01_py36/lib/python3.6/site-packages (from opencv-python-headless) (1.19.5) Building wheels for collected packages: opencv-python-headless Building wheel for opencv-python-headless (pyproject.toml) ... error ERROR: Command errored out with exit status 1: command: /home/eaibot/miniconda3/envs/01_py36/bin/python /home/eaibot/miniconda3/envs/01_py36/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp2qjf8_mk cwd: /tmp/pip-install-9xmfwwvn/opencv-python-headless_1c1dbdd61e574966bd2df529ca7b0201 Complete output (692 lines): -------------------------------------------------------------------------------- -- Trying 'Ninja' generator -------------------------------- --------------------------- ---------------------- ----------------- ------------ ------- -- Not searching for unused variables given on the command line. CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! -- ------- ------------ ----------------- ---------------------- --------------------------- -------------------------------- -- Trying 'Ninja' generator - failure -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Trying 'Unix Makefiles' generator -------------------------------- --------------------------- ---------------------- ----------------- ------------ ------- -- Not searching for unused variables given on the command line. -- The C compiler identification is GNU 9.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- The CXX compiler identification is GNU 9.4.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /tmp/pip-install-9xmfwwvn/opencv-python-headless_1c1dbdd61e574966bd2df529ca7b0201/_cmake_test_co
最新发布
03-21
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值