R_install_packages_car

本文介绍如何在Linux环境下安装R的car包及其所需的nlopt和nloptr依赖包。通过使用特定的安装命令,确保安装过程顺利进行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

install.packages("car", dependencies=TRUE, INSTALL_opts = c('--no-lock'))


# 安装R的car包之前需要安装nlopt和nloptr,linux下需要在terminal上执行以下命令

sudo su -c "R -e \"install.packages('nloptr', dependencies = TRUE, repo = 'https://cran.rstudio.com')\""
* Executing task: catkin_make --directory /home/ubuntu/work_ws -DCMAKE_BUILD_TYPE=RelWithDebInfo Base path: /home/ubuntu/work_ws Source space: /home/ubuntu/work_ws/src Build space: /home/ubuntu/work_ws/build Devel space: /home/ubuntu/work_ws/devel Install space: /home/ubuntu/work_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/ubuntu/work_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/work_ws/devel -- Using CMAKE_PREFIX_PATH: /home/ubuntu/work_ws/devel;/home/ubuntu/realsense_ws/devel;/opt/ros/noetic -- This workspace overlays: /home/ubuntu/work_ws/devel;/home/ubuntu/realsense_ws/devel;/opt/ros/noetic -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Using PYTHON_EXECUTABLE: /usr/bin/python3 -- Using Debian Python package layout -- Using empy: /usr/lib/python3/dist-packages/em.py -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/ubuntu/work_ws/build/test_results -- Forcing gtest/gmock from source, though one was otherwise available. -- Found gtest sources under '/usr/src/googletest': gtests will be built -- Found gmock sources under '/usr/src/googletest': gmock will be built -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- Using Python nosetests: /usr/bin/nosetests3 -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - work_car -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'work_car' -- ==> add_subdirectory(work_car) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- work_car: 0 messages, 1 services -- Installing devel-space wrapper /home/ubuntu/work_ws/src/work_car/scripts/find_face.py to /home/ubuntu/work_ws/devel/lib/work_car -- Installing devel-space wrapper /home/ubuntu/work_ws/src/work_car/scripts/project_work.py to /home/ubuntu/work_ws/devel/lib/work_car -- Installing devel-space wrapper /home/ubuntu/work_ws/src/work_car/scripts/find_run.py to /home/ubuntu/work_ws/devel/lib/work_car -- Installing devel-space wrapper /home/ubuntu/work_ws/src/work_car/scripts/arm_three.py to /home/ubuntu/work_ws/devel/lib/work_car -- Installing devel-space wrapper /home/ubuntu/work_ws/src/work_car/scripts/car_drive.py to /home/ubuntu/work_ws/devel/lib/work_car CMake Error at /opt/ros/noetic/share/catkin/cmake/catkin_install_python.cmake:86 (message): catkin_install_python() called with non-existing file '/home/ubuntu/work_ws/src/work_car/scripts/find_server.py'. Call Stack (most recent call first): work_car/CMakeLists.txt:160 (catkin_install_python) -- Configuring incomplete, errors occurred! See also "/home/ubuntu/work_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/ubuntu/work_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:698: cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed * The terminal process "/usr/bin/bash '-c', 'catkin_make --directory /home/ubuntu/work_ws -DCMAKE_BUILD_TYPE=RelWithDebInfo'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.
最新发布
08-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值