"avr-gcc: command not found" on Ubuntu
Answer a question
I'm trying to work on an Arduino project from home. However, when I attempt to run the example code, I get the error:
avr-gcc: Command not found
This program runs fine on the university computers. However, isn't working at all on my Ubuntu virtual machine. I'm completely new to this. So, I honestly have no idea what's wrong.
Answers
avr-gcc: Command not found
This means precisely what it says: The avr-gcc command can't be found.
A search on avr-gcc quickly reveals the AVR Libc project:
AVR Libc is a Free Software project whose goal is to provide a high quality C library for use with GCC on Atmel AVR microcontrollers.
Together, avr-binutils, avr-gcc, and avr-libc form the heart of the Free Software toolchain for the Atmel AVR microcontrollers.
That sounds promising since Arduino uses Atmel CPUs.
Adding ubuntu to the search terms finds the gcc-avr package. Running sudo apt-get install gcc-avr on your VM should install the package.
更多推荐
所有评论(0)