error in invoking target 'install' of makefile

时间: 2023-08-10 10:00:36 浏览: 62
在使用Makefile时,如果出现"error in invoking target 'install' of makefile"的错误提示,通常有两种可能的原因: 1. 缺少权限:在执行"make install"命令时,可能当前用户没有足够的权限进行安装操作。在Linux或macOS系统中,可以尝试在命令前加上"sudo",例如"sudo make install",然后输入管理员密码进行安装。如果是在Windows系统上,可能需要使用管理员权限来运行命令。 2. 缺少依赖:这个错误也可能是由于缺少依赖所致。在编译和安装软件时,可能需要预先安装一些依赖库或工具。通常,在项目的README文件或官方文档中会提供安装所需依赖的说明。需要根据提示手动安装缺少的依赖,并确保已正确配置相关环境变量。 如果以上两种情况都已排除,可以尝试以下操作: 1. 清理编译文件:执行"make clean"命令,将之前生成的中间文件和可执行文件删除。然后尝试重新执行"make install"命令。 2. 更新Makefile:检查原始的Makefile文件是否存在错误或者是否需要进行更新。可以尝试重新下载或者使用更新的Makefile文件替换原始文件,然后重新编译和安装软件。 如果以上方法仍然无法解决问题,可以搜索或者向相关社区或开发者咨询,以获取更准确的帮助和解决方案。
相关问题

Error in invoking target 'install' of makefile '/data/oracle/app/oracle/product/11.2.0/db_1/ctx/lib/ins_ctx.mk

根据提供的引用内容,您在安装Oracle 11g数据库时遇到了一个错误。错误信息是"Error in invoking target 'install' of makefile '/data/oracle/app/oracle/product/11.2.0/db_1/ctx/lib/ins_ctx.mk'"。这个错误通常是由于缺少一些必要的依赖项或配置问题导致的。 解决这个问题的一种方法是检查您的系统是否满足Oracle 11g的安装要求,并确保所有必要的依赖项已经安装。您可以参考Oracle官方文档或安装指南来获取详细的安装要求和依赖项列表。 另外,您还可以查看错误日志文件'/home/oracle/app/oraInventory/logs/installActions2020-01-02_11-43-42AM.log',以获取更多关于错误的详细信息。该日志文件通常包含有关安装过程中发生的错误的详细信息,可以帮助您更好地理解和解决问题。 请注意,由于我无法访问您的系统或查看完整的错误日志文件,因此无法提供更具体的解决方案。建议您根据错误信息和相关文档进行进一步的研究和排查。

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:100 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Try the 'catkin_make_isolated' command instead. Call Stack (most recent call first): CMakeLists.txt:69 (catkin_workspace) -- Configuring incomplete, errors occurred! See also "/home/q/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/q/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:1020: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

这个错误是因为你的工作空间中包含非catkin包,而catkin不能在没有隔离的情况下构建非同质化的工作空间。你可以尝试使用 `catkin_make_isolated` 命令来代替 `catkin_make`,这样可以在隔离的环境中构建你的工作空间。你可以按照以下步骤操作: 1. 进入你的工作空间目录 ``` cd /home/q/catkin_ws ``` 2. 删除 build 和 devel 目录 ``` rm -rf build/ rm -rf devel/ ``` 3. 运行 `catkin_make_isolated` ``` catkin_make_isolated --install --use-ninja ``` 这应该会在你的工作空间目录中创建一个 build_isolated 目录,你可以在其中找到构建的二进制文件和库。

相关推荐

[ 2%] Generating dynamic reconfigure files from cfg/Depth.cfg: /home/ubuntu/new_workspace/devel/include/depthimage_to_laserscan/DepthConfig.h /home/ubuntu/new_workspace/devel/lib/python2.7/dist-packages/depthimage_to_laserscan/cfg/DepthConfig.py Generating reconfiguration files for Depth in depthimage_to_laserscan Wrote header file in /home/ubuntu/new_workspace/devel/include/depthimage_to_laserscan/DepthConfig.h [ 2%] Built target depthimage_to_laserscan_gencfg Scanning dependencies of target lslidar_serial_x10 [ 2%] Building CXX object lsx10/lslidar_x10_driver/CMakeFiles/lslidar_serial_x10.dir/src/lsiosr.cpp.o [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/liblslidar_serial_x10.so [ 2%] Built target lslidar_serial_x10 Scanning dependencies of target lslidar_input_x10 [ 2%] Building CXX object lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o In file included from /home/ubuntu/new_workspace/src/lsx10/lslidar_x10_driver/src/input.cc:18:0: /home/ubuntu/new_workspace/src/lsx10/lslidar_x10_driver/include/lslidar_x10_driver/input.h:32:10: fatal error: pcap.h: No such file or directory #include ^~~~~~~~ compilation terminated. lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/build.make:62: recipe for target 'lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o' failed make[2]: *** [lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/src/input.cc.o] Error 1 CMakeFiles/Makefile2:10548: recipe for target 'lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/all' failed make[1]: *** [lsx10/lslidar_x10_driver/CMakeFiles/lslidar_input_x10.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/libDepthImageToLaserScan.so [ 2%] Built target DepthImageToLaserScan [ 2%] Linking CXX shared library /home/ubuntu/new_workspace/devel/lib/libsba.so [ 2%] Built target sba Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

In file included from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/apollo_app.h:46:0, from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/src/apollo_app.cc:33: /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/log.h:40:10: fatal error: glog/logging.h: No such file or directory #include <glog/logging.h> ^~~~~~~~~~~~~~~~ compilation terminated. apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/build.make:62: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/apollo_app.cc.o' failed make[2]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/apollo_app.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/adapters/adapter_manager.h:48:0, from /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/src/adapters/adapter_manager.cc:33: /home/acceler/code/apollo_ros/apollo_ros/src/apollo.ros-1.0.0-master/apollo_common/include/apollo_common/adapters/adapter.h:49:10: fatal error: glog/logging.h: No such file or directory #include <glog/logging.h> ^~~~~~~~~~~~~~~~ compilation terminated. apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/build.make:110: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/adapters/adapter_manager.cc.o' failed make[2]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/src/adapters/adapter_manager.cc.o] Error 1 CMakeFiles/Makefile2:3894: recipe for target 'apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/all' failed make[1]: *** [apollo.ros-1.0.0-master/apollo_common/CMakeFiles/apollo_common.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 54%] Linking CXX executable /home/acceler/code/apollo_ros/apollo_ros/devel/lib/IntegratedNavigation/IntegratedNavigation_node [ 54%] Built target IntegratedNavigation_node [ 55%] Linking CXX executable /home/acceler/code/apollo_ros/apollo_ros/devel/lib/TimeSynchronierProcess/timeSynchronierProcess_node [ 55%] Built target timeSynchronierProcess_node Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

/root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In destructor ‘virtual usb_cam::AbstractV4LUSBCam::~AbstractV4LUSBCam()’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:231:5: error: ‘av_packet_free’ was not declared in this scope av_packet_free(&avpkt); ^~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:231:5: note: suggested alternative: ‘av_packet_ref’ av_packet_free(&avpkt); ^~~~~~~~~~~~~~ av_packet_ref /root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In static member function ‘static bool usb_cam::AbstractV4LUSBCam::init_decoder()’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:371:13: error: ‘av_packet_alloc’ was not declared in this scope avpkt = av_packet_alloc(); ^~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:371:13: note: suggested alternative: ‘av_image_alloc’ avpkt = av_packet_alloc(); ^~~~~~~~~~~~~~~ av_image_alloc /root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In static member function ‘static bool usb_cam::AbstractV4LUSBCam::decode_ffmpeg(const void*, int, usb_cam::camera_image_t*)’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:771:8: error: ‘avcodec_send_packet’ was not declared in this scope if(avcodec_send_packet(avcodec_context, avpkt) < 0) ^~~~~~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:771:8: note: suggested alternative: ‘avcodec_get_name’ if(avcodec_send_packet(avcodec_context, avpkt) < 0) ^~~~~~~~~~~~~~~~~~~ avcodec_get_name /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:784:9: error: ‘avcodec_receive_frame’ was not declared in this scope if (avcodec_receive_frame(avcodec_context, avframe_camera) < 0) ^~~~~~~~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:784:9: note: suggested alternative: ‘avcodec_free_frame’ if (avcodec_receive_frame(avcodec_context, avframe_camera) < 0) ^~~~~~~~~~~~~~~~~~~~~ avcodec_free_frame usb_cam/CMakeFiles/v4l_driver.dir/build.make:110: recipe for target 'usb_cam/CMakeFiles/v4l_driver.dir/src/camera_driver.cpp.o' failed make[2]: *** [usb_cam/CMakeFiles/v4l_driver.dir/src/camera_driver.cpp.o] Error 1 CMakeFiles/Makefile2:656: recipe for target 'usb_cam/CMakeFiles/v4l_driver.dir/all' failed make[1]: *** [usb_cam/CMakeFiles/v4l_driver.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

[ 12%] Building CXX object usb_cam/CMakeFiles/v4l_driver.dir/src/camera_driver.cpp.o /root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In destructor ‘virtual usb_cam::AbstractV4LUSBCam::~AbstractV4LUSBCam()’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:239:5: error: ‘av_packet_free’ was not declared in this scope av_packet_free(&avpkt); ^~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:239:5: note: suggested alternative: ‘av_packet_ref’ av_packet_free(&avpkt); ^~~~~~~~~~~~~~ av_packet_ref /root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In static member function ‘static bool usb_cam::AbstractV4LUSBCam::init_decoder()’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:379:13: error: ‘av_packet_alloc’ was not declared in this scope avpkt = av_packet_alloc(); ^~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:379:13: note: suggested alternative: ‘av_image_alloc’ avpkt = av_packet_alloc(); ^~~~~~~~~~~~~~~ av_image_alloc /root/catkin_uc/src/usb_cam/src/camera_driver.cpp: In static member function ‘static bool usb_cam::AbstractV4LUSBCam::decode_ffmpeg(const void*, int, usb_cam::camera_image_t*)’: /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:779:8: error: ‘avcodec_send_packet’ was not declared in this scope if(avcodec_send_packet(avcodec_context, avpkt) < 0) ^~~~~~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:779:8: note: suggested alternative: ‘av_append_packet’ if(avcodec_send_packet(avcodec_context, avpkt) < 0) ^~~~~~~~~~~~~~~~~~~ av_append_packet /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:792:9: error: ‘avcodec_receive_frame’ was not declared in this scope if (avcodec_receive_frame(avcodec_context, avframe_camera) < 0) ^~~~~~~~~~~~~~~~~~~~~ /root/catkin_uc/src/usb_cam/src/camera_driver.cpp:792:9: note: suggested alternative: ‘avcodec_free_frame’ if (avcodec_receive_frame(avcodec_context, avframe_camera) < 0) ^~~~~~~~~~~~~~~~~~~~~ avcodec_free_frame usb_cam/CMakeFiles/v4l_driver.dir/build.make:110: recipe for target 'usb_cam/CMakeFiles/v4l_driver.dir/src/camera_driver.cpp.o' failed make[2]: *** [usb_cam/CMakeFiles/v4l_driver.dir/src/camera_driver.cpp.o] Error 1 CMakeFiles/Makefile2:656: recipe for target 'usb_cam/CMakeFiles/v4l_driver.dir/all' failed make[1]: *** [usb_cam/CMakeFiles/v4l_driver.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

最新推荐

recommend-type

android手机应用源码Imsdroid语音视频通话源码.rar

android手机应用源码Imsdroid语音视频通话源码.rar
recommend-type

营销计划汇报PPT,市场品牌 推广渠道 产品 营销策略tbb.pptx

营销计划汇报PPT,市场品牌 推广渠道 产品 营销策略tbb.pptx
recommend-type

JavaScript_超过100种语言的纯Javascript OCR.zip

JavaScript
recommend-type

JavaScript_跨平台React UI包.zip

JavaScript
recommend-type

node-v16.17.0-headers.tar.xz

Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

可见光定位LED及其供电硬件具体型号,广角镜头和探测器,实验设计具体流程步骤,

1. 可见光定位LED型号:一般可使用5mm或3mm的普通白色LED,也可以选择专门用于定位的LED,例如OSRAM公司的SFH 4715AS或Vishay公司的VLMU3500-385-120。 2. 供电硬件型号:可以使用常见的直流电源供电,也可以选择专门的LED驱动器,例如Meanwell公司的ELG-75-C或ELG-150-C系列。 3. 广角镜头和探测器型号:一般可采用广角透镜和CMOS摄像头或光电二极管探测器,例如Omron公司的B5W-LA或Murata公司的IRS-B210ST01。 4. 实验设计流程步骤: 1)确定实验目的和研究对象,例如车辆或机器人的定位和导航。
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。