Install the geographiclib dataset出错Syntax error: newline unexpected,Unable to establish SSL

安装mavros时,出现UAS:GeographicLib exception: File not readable…或Install the geographiclib dataset出错:./install_geographiclib_datasets.sh: 8: ./install_geographiclib_datasets.sh: Syntax error: newline unexpected,Unable to establish SSL connection.Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443… failed: Connection refused.解决方案

wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh

这步会显示错误raw.githubusercontent.com无法连接或者
wget https://raw.github Unable to establish SSL connection.

**解决:**换为wget https://github.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh
接着

chmod +x install_geographiclib_datasets.sh
sudo ./install_geographiclib_datasets.sh

这步又会有错:
/install_geographiclib_datasets.sh: 8: ./install_geographiclib_datasets.sh: Syntax error: newline unexpected

查了很久都没有解决方法,或许只有我遇到了呜呜呜
之后解决:要把这步换为:

sudo /opt/ros/kinetic/lib/mavros/install_geographiclib_datasets.sh
注意这里的ros版本是kinetic。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值