Using Raspbian Stretch.
I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says
Marlin requires C++11 support (gcc>= 4.7, Arduino IDE>= 1.6.8). Please upgrade your toolchain.
How do I make Arduino IDE use the correct version of GCC?
-
I think this is a question to ask on Debian forum and not here.Filip Franik– Filip Franik2018年07月26日 16:14:58 +00:00Commented Jul 26, 2018 at 16:14
-
Why on earth did you install such an ancient version? Delete it and download the current (i.e., released this decade) version.Majenko– Majenko2018年07月26日 16:15:21 +00:00Commented Jul 26, 2018 at 16:15
-
@Majenko, these are the newest versions. packages.debian.org/stretch/gcc packages.debian.org/stretch/arduinoDmitry Fedorkov– Dmitry Fedorkov2018年07月26日 16:17:17 +00:00Commented Jul 26, 2018 at 16:17
-
1No, those are versions that were submitted to Debian years ago. You don't install Arduino from the Debian repositories. You haven't done for many many years. Download the Arduino IDE from the Arduino website.Majenko– Majenko2018年07月26日 16:17:55 +00:00Commented Jul 26, 2018 at 16:17
2 Answers 2
As Majenko pointed out, I should have used a tarball from the official site instead of the repositories. Which makes me wonder why that package wasn't deprecated or something...
Installing the Arduino package from the Debian repository (or the one for derived distros like Ubuntu) performs the useful purpose of setting up all the necessary permissions for the Arduino IDE to work. Those permissions are NOT automatically removed when you uninstall the package.
The simplest way to get a working Arduino install:
1. Install Arduino from the repo
2. Immediately uninstall it
3. Get a current version of Arduino from arduino.cc and install that
Explore related questions
See similar questions with these tags.