安装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。