mac配置riscv-none-embed交叉编译工具遇到的坑

1、安装riscv-none-embed(xpack版)=>安装xpm=>安装npm

2、安装npm

坑1、没有npm命令
解决方案:brew install node
坑2、安装node提示xcode环境报错
解决方案:重装xcode command line tools
apple deverlop官网下载对应xcode版本的commandlinetools安装包
sudo rm -rf $(xcode-select --print-path)
xode-select --install

3、xpm安装riscv-none-embed

xpm install --global @xpack-dev-tools/riscv-none-embed-gcc

posted @ 2021-08-11 09:50  qsBye  阅读(446)  评论(0编辑  收藏  举报