在Ubuntu上设置编译环境的时候,使用vim .bashrc打开是空白的。后来发现使用以下指令可以解决。 sudo ls -al ~/ | grep bashrc sudo vim ~/.bashrc 在使用arm交叉编译的时候,发现arm-none-linux-gnueabi-gcc未找到命令。使用以下命令 source /etc/profile arm-none-linux-gnueabi-gcc -o helloworld helloworld.c -static 新手入门!