arduino on linux.

when i open the arduino program i get this error:

what i need to install? and how?
help me :cry:

Do you have avr-gcc and avr-libc installed at all? Some linux specific install guide are at the playground.

i have found a solution.

So why does the linux version require that the compiler be installed separately, while (for instance) the MacOSX version includes the appropriate compiler binaries as part of the arduino package? In theory, avr-gcc and etc could have been separately installed on the Mac as well. (is it that difficult to build a compiler binary that works across multiple versions of linux?)

On a lot of Linux distributions, you can install avr-gcc from a package manager, and I get the impression that distributed pre-compiled binaries is generally considered a bit "unclean". With Mac OS X, you can build a binary that will work across all (modern) machines, and distributing binaries is the norm. If you build a binary distribution of avr-gcc that will work across Linux distributions, we could include it with the Arduino software. Do you think it's possible?

I don't know if a single binary for linux is possible. My experience with source distribution suggests that package managers have made things too easy, and as a result source level dependencies are seriously out of control. Installing "gerbv" on my mac (using fink) required downloading some 1.6Gbyte of "other stuff" including (believe it or not) TeX and Ghostscript, for example. I REALLY appreciated how easy it was to install the Arduino IDE and the tools that came with it on my mac... Hopefully something text-mode like a compiler is easier to install on linux, and you can achieve similar ease of install at the package-manager level or something.

Do you think it's possible?

Should be possible to statically link the toolchain.
Thats how stuff like VMware and Google Earth work without recompiling.

Would that work on any version of Linux? Any 32-bit version of Linux? Do we need to worry about libc compatibility, or would that be linked into the binaries? How much bigger would these files be?

Anyway, if someone wants to take a shot at it, it would be interesting, but for the moment, I think it's okay asking people to use the package manager.

I did have a question about avrdude, though, since Arduino uses a custom version of it. In that case, is it better to distribute a pre-compiled binary that works on some platforms? Or make it equal for everyone by making everyone compile it from source?

Hi,
since the Forums are not full of "How do I install the IDE on Linux?" topics, please stay away from that idea.
The installation-procedure is documented in the Playground for almost every Linux-Distro. The few people who don't read docs before doing, will be taken care of in the forums.
Who wants to create and build the new packages, when any of the any tools are updated?
Lets be lazy and let the package-manager take care of external tools.
If someone has spare time, he could have a look if the Playground-docs need some overhaul instead :-).

Eberhard

Would that work on any version of Linux? Any 32-bit version of Linux? Do we need to worry about libc compatibility, or would that be linked into the binaries? How much bigger would these files be?

Yeah it would work on any moderately recent 32bit version of Linux.
Not sure how much bigger the files would be.

I'll poke around a bit and see if I can get it going.