Pages: [1]   Go Down
Author Topic: Can't compile  (Read 598 times)
0 Members and 1 Guest are viewing this topic.
Davie, Fl
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just installed the latest (1.0) arduino ide on linux.  I had built the avr gcc tools from a script on AVRfreaks.net
The tools were installed in /usr/local/avr/bin/...
I got the error avr-g++ file not found when I tried to compile.  I thought the path the tools were installed in might not be
correct for the IDE (though that path is in my shell path variable), so I copied all of the avr* files in the
/usr/local/avr/bin directory to /usr/bin.  I now get the following compile error:
avr-g++: error trying to exec 'cclplus': execvp: No such file or directory.

So how DO I install the arduino IDE in linux, where are the AVR-GCC tools SUPPOSED to be installed, and what do
I do?
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Generally, you should use a package manager rather than install things from source. Also, copying files from one place to another is a good way to screw some things up.

What distro do you have? How does it suggest to install packages?
Logged

Davie, Fl
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Generally, you should use a package manager rather than install things from source. Also, copying files from one place to another is a good way to screw some things up.

What distro do you have? How does it suggest to install packages?
I'm running Linux Mint.  The reason for installing from source was to have the latest version of AVR-GCC (4.5.1) as I also use this for other projects besides Arduino.  It seems that the Arduino IDE expects the tools to be in a certain directory or path, but I don't know what that is.  Linux Mint uses a similar package manager to Ubuntu to install packages.
Logged

Davie, Fl
Offline Offline
Newbie
*
Karma: 0
Posts: 28
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I used the Linux Mint package manager to install avr-gcc, avr-bin-utils, etc.  Now it works.  But these packages duplicate what I built from source so it is only the paths that were wrong.  I'd like to find out exactly WHAT was installed by the binary packages and WHERE the files ended up so I can fix the build script for the source package.
Logged

Pages: [1]   Go Up
Jump to: