视觉SLAM十四讲 安装libcxsparse3.1.2报错

20 篇文章 0 订阅

经常会暗示自己学会动脑思考,先自己去想解决方法...

在学习《视觉SLAM十四讲》的时候,安装Ceres的依赖项,在安装libcxsparse3.1.2时,出先错误。

即,当

$sudo apt-get install libcxsparse3.1.2   时,出先错误如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libcxsparse3.1.2
E: Couldn't find any package by glob 'libcxsparse3.1.2'
E: Couldn't find any package by regex 'libcxsparse3.1.2'

一开摸不着头脑,查了几遍确定没有输入错误,然后就去“科学搜索”,发现了下面的帖子:

https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-with-apt

按照里面的方法一步一步去找:

First, check if the package actually exists:

  1. Go to packages.ubuntu.com with a web browser.
  2. Scroll down to "Search package directories"
  3. Enter the package which you're trying to install into the "Keyword" field.

    Enable "Only show exact matches:"

    Change the "Distribution" to which version of Ubuntu you're using.

    enter image description here

之后搞明白,其实安装包是存在的,不过libcxsparse3.1.2对应的ubuntu14.04 LTS(trusty),而我用的是ubuntu16.04 LTS(xenial),对应的版本是libcxsparse3.1.4,所以安装之就可以了。

接触快一年ubuntu了,才明白查看安装包要去 packages.ubuntu.com ,惭愧。

还是差的太多,毕竟以前没怎么写过程序,平时事情很杂乱,
  • 34
    点赞
  • 47
    收藏
    觉得还不错? 一键收藏
  • 10
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值