高博十四讲中第六章非线性优化 ceres安装libcxsparse3.1.2报错

在学习《视觉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'

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

参考:https://blog.csdn.net/neptune4751/article/details/79327562#commentBox

你可能感兴趣的:(SLAM)