赞
踩
Setting up the Build Environment on Windows 10/11 using WSL1 or WSL2
为了安装调试ardupilot,在Windows10系统里安装了Ubuntu20.04.5子系统,然后按照ardupilot官网步骤设置开发环境,但是在
Tools/environment_install/install-prereqs-ubuntu.sh -y
这一步报错:
error: chmod on /mnt/d/my_dir_name/ardupilot/.git/modules/modules/ChibiOS/config.lock failed: Operation not permitted
fatal: could not set 'core.worktree' to '../../../../modules/ChibiOS'
个人解决办法:
在按照官网步骤设置开发环境时,用git命令下载ardupilot代码以前,要赋予下载目标文件夹以权限:
- cd parent_parent_dir_of_ardupilot
- chmod -R 777 parent_dir_of_ardupilot
- cd parent_dir_of_ardupilot
- git clone https://github.com/your_github_name/your_repository
-
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。