Arduino 0017 on Fedora 10 - no avr-g++ on compile?

Folks,

Any idea why Fedora 10 is missing avr-g++? The message I see is 'Cannot run program "avr-g++":j ava.io.IOException:Error=2: No such file or directory' - when I compile a sketch.

I'm compiling using 0017 running on a Linux box with a vanilla Fedora Core 10 install, the Sun Java 1.6.0 runtime (downloaded from Sun, not the linux Blackdown build), and the avr packages recommended on the Fedora install pages here at arduino.cc/playground/Linux/Fedora - which I followed to get the environment set up correctly.

I did a find / -name avr-g++ -print to see if this executable was on the machine but in the wrong folder, and it isn't found anywhere on the box.

To remind you, the ones noted for Fedora 11 in the installation tutorial are:

  • uisp-20050207-5.fc11.i386
  • avr-libc-1.6.4-1.fc11
  • avr-gcc-c++-4.3.3-2.fc11
  • avr-gcc-4.3.3-2.fc11
  • avr-binutils-2.18-4.fc11

Since I'm running on Fedora 10 I have a couple of small differences (output from "yum info" follows:-)

Available Packages
Name : uisp
Arch : i386
Version : 20050207
Release : 4.fc10
Size : 60 k
Repo : fedora
Summary : Universal In-System Programmer for Atmel AVR and 8051

...
Name : avr-libc
Arch : noarch
Version : 1.6.4
Release : 1.fc10
Size : 10 M
Repo : installed
From repo : updates
Summary : C library for use with GCC on Atmel AVR microcontrollers

...
Name : avr-gcc-c++
Arch : i386
Version : 4.3.3
Release : 1.fc10
Size : 2.7 M
Repo : updates
Summary : Cross Compiling GNU GCC targeted at avr

....
Name : avr-gcc
Arch : i386
Version : 4.3.3
Release : 1.fc10
Size : 22 M
Repo : installed
From repo : updates
Summary : Cross Compiling GNU GCC targeted at avr

...
Name : avr-binutils
Arch : i386
Version : 2.18
Release : 2.fc9
Size : 8.0 M
Repo : installed
From repo : fedora
Summary : Cross Compiling GNU binutils targeted at avr

Can anyone suggest which package should provide avr-g++ in the Fedora 10 repositories, or if none do, what I'd need to do to compile from src? Google shows a couple of other old posts elsewhere on this, but those are for previous versions of the software. :-/

Thanks!

Jerry

I don't use Fedora anymore (moved to Ubuntu) but you could try:

rpm -q --whatprovides avr-g++

This should tell you what package contains avr-g++.

HTH

Ver

Thanks for the suggestion Ver

rpm -q --whatprovides avr-g++

no package provides avr-g++

:-/

I found this on http://www.rpmfind.net

http://fr2.rpmfind.net//linux/RPM/fedora/updates/10/i386/avr-gcc-c++-4.3.3-1.fc10.i386.html

If you scroll down to the bottom of that page it says it provides avr-g++, If you need the x86-64 version they have that too.

HTH

fixed the url
Ver

Fixed! :smiley:

Thanks Ver!

I've added the solution to Arduino Playground - HomePage

Best regards,

Jerry

In the package info from your first post:

Name : avr-gcc-c++
Arch : i386
Version : 4.3.3
Release : 1.fc10
Size : 2.7 M
Repo : updates
Summary : Cross Compiling GNU GCC targeted at avr

we can see that avr-gcc-c++ was available (from Repo updates) but not installed on your computer. All the other packages are listed as Repo: installed.
So the simple solution should be to just run "yum install avr-gcc-c++"

Jerry's problem was that he knew he needed a file called avr-g++. However, he didn't know which of the packages he listed actually contained that file.

Ver