首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Node-js移除ros旋律桌面满

安装Node-js移除ros旋律桌面满
EN

Ask Ubuntu用户
提问于 2021-01-31 20:26:08
回答 1查看 568关注 0票数 0

我试图安装npm,但是我得到了一个错误: npm :依赖: not (>= 0.10.9),但是它不会被安装。

于是我在互联网上找到了一个答案:npm :取决于: not (>= 0.10.9),但它不会被安装

我写

代码语言:javascript
复制
sudo apt-get install nodejs-dev node-gyp libssl1.0-dev

到控制台,它移除了很多东西,下面是几个:

代码语言:javascript
复制
Removing ros-melodic-desktop-full (1.4.1-0bionic.20201117.033441) ...
Removing ros-melodic-perception (1.4.1-0bionic.20201017.183309) ...
Removing ros-melodic-perception-pcl (1.7.1-1bionic.20201017.165332) ...
Removing ros-melodic-pcl-ros (1.7.1-1bionic.20201017.110355) ...
Removing ros-melodic-pcl-conversions (1.7.1-1bionic.20201017.091410) ...
Removing libpcl-dev (1.8.1+dfsg1-2ubuntu2.18.04.1) ...
Removing libvtk6-qt-dev (6.3.0+dfsg1-11build1) ...
Removing libvtk6-dev (6.3.0+dfsg1-11build1) ...
Removing ros-melodic-desktop (1.4.1-0bionic.20201117.032830) ...
Removing ros-melodic-urdf-sim-tutorial (0.4.0-0bionic.20201117.031256) ...
Removing ros-melodic-urdf-tutorial (0.4.0-0bionic.20201117.030856) ...
Removing ros-melodic-simulators (1.4.1-0bionic.20201117.032332) ...
Removing ros-melodic-gazebo-ros-pkgs (2.8.7-1bionic.20201017.165057) ...
Removing ros-melodic-gazebo-plugins (2.8.7-1bionic.20201017.110903) ...
Removing ros-melodic-gazebo-ros-control (2.8.7-1bionic.20201017.110855) ...
Removing ros-melodic-robot (1.4.1-0bionic.20201029.172055) ...
dpkg: libignition-fuel-tools1-dev:amd64: dependency problems, but removing anyway as you requested:
 libgazebo9-dev:amd64 depends on libignition-fuel-tools1-dev.

现在,ros项目没有运行,我使用的是PX4-Autopilot,现在它没有运行。

代码语言:javascript
复制
$ make px4_sitl gazebo

产出如下:

代码语言:javascript
复制
[0/5] Performing build step for 'sitl_gazebo'
[0/1] Re-running CMake...
-- install-prefix: /usr/local
-- cmake build type: RelWithDebInfo
-- Using C++17 standard
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- Boost version: 1.65.1
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
CMake Error at CMakeLists.txt:47 (find_package):
  By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gazebo", but
  CMake did not find one.

  Could not find a package configuration file provided by "gazebo" with any
  of the following names:

    gazeboConfig.cmake
    gazebo-config.cmake

  Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set
  "gazebo_DIR" to a directory containing one of the above files.  If "gazebo"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/sahin/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/sahin/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
FAILED: build.ninja 
/usr/bin/cmake -H/home/sahin/PX4-Autopilot/Tools/sitl_gazebo -B/home/sahin/PX4-Autopilot/build/px4_sitl_default/build_gazebo
ninja: error: rebuilding 'build.ninja': subcommand failed
[1/5] Generating ../../logs
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build 
cd /home/sahin/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build /home/sahin/PX4-Autopilot/build/px4_sitl_default/build_gazebo -- -j1
ninja: build stopped: subcommand failed.
Makefile:224: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 1

这一切为什么要发生?如果我重新安装Ros和其他软件包,他们会删除节点吗?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-05-07 19:00:47

具体的冲突是ROS旋律和称为libcurl4-gnutls-dev的NPM依赖之间的冲突。这是依赖链: NPM ->节点-gyp -> nodejs -> libssl1.0-dev -> libcurl4-gnutls-dev

此链接展示了如何安装NodeJS以便在ROS旋律中使用(虽然没有NPM,但是catkin将尝试在未安装时在构建过程中获取包):https://answers.ros.org/question/339940/try-to-use-npm-with-ros-melodic-on-ubuntu-1804/

此链接显示如何在python虚拟环境:https://stackoverflow.com/questions/65519982/can-not-install-npm-along-side-with-the-ros-melodic中安装NodeJS/NPM。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1312530

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档