Go Down

Topic: Arduino on Fedora 11 64bit (Read 4878 times) previous topic - next topic


Oct 12, 2009, 06:20 am Last Edit: Oct 12, 2009, 07:50 am by action_owl Reason: 1
There seems to be different instructions for 64bit linux and for Fedora 11 I'm not sure which to follow so I'm just curios if anyone else has Arduino working on 64bit Fedora 11?

I have a feeling this isn't going to work (easily) and Arduino is about the only reason I use my windows partition anymore.

So far I have installed:

and followed the guide here:
How to get Arduino 0017 working on 64 bit Linux

I keep getting the following error when verifying:
Code: [Select]

Cannot run program "avr-g++" java.io.IOException: error=2, No such file or directory

Thanks for any feedback.


Oct 13, 2009, 01:45 pm Last Edit: Oct 14, 2009, 04:14 am by tytower Reason: 1
I get the same error running normal 32 bit Mandriva 2009 system , and have been trying for months on and off, so ,I too do it on Windows, reluctantly.

I'm starting to think its in the Java version perhaps. I've experimented with various versions of the programs you have above with no joy . All of the Arduino window seems to work but it just won't compile.

I bought the CD for Fedora11 today to give it a run on that , your post was not good news


Sorry to be the bearer of bad news...

I'm going to try to get it running on Archlinux 32bit, I'll let you know if I have any success, you would think that open source hardware using open source software would go hand in hand with linux.

I may try using the Ruby compiler for the arduino sketches that someone made... somewhere...


Oct 14, 2009, 04:11 am Last Edit: Oct 14, 2009, 12:41 pm by tytower Reason: 1
Good stuff thanks. I looked at your link above and noticed a similarity to a reference document for Fedora 11 on Arduino.cc   
I found both of these of interest in case you have not seen them,

I'm sure there will be someone here who knows why this error message comes up.

In passing though you have the same message as me and I am trying to run the 32bit version, you the 64. Now that should give us a clue.

On the page I listed above the fix for 64 bit was to remove the two files in the arduino-0017/lib/ directory called librxtxSerial.so and RXTXcomm.jar and insert links to the same files in the /usr/share/java/   and /usr/lib64/rxtx/ directories respectively.

Now I dont have those /usr/....  files in Mandriva (I've gotta check that on a second machine I have been working on -I'll edit if need be .)

It suggests to me that the cause for the compiler message may not be related to a 64 bit problem at all


Arduino relies on both C (avr-gcc) and C++ (avr-g++).  Because there's only partial support for C++ on the AVR, some Linux distributions only provide avr-gcc, not avr-g++.  You may need to compile avr-g++ yourself (from the avr-gcc source code distribution).


Oct 15, 2009, 05:39 am Last Edit: Oct 15, 2009, 05:42 am by tytower Reason: 1
Yes Thanks for that mellis ,I assume its David.

Ive tried a multitude of avr-gcc including avr-g++ and avr-g++ separately .
With that message the answer is there somewhere obviously with avr-g++. But it ain't clear yet .
Recompiling avr-gcc- fc10.src takes an hour I also have conpiled and tried gcc4.3.1/2 and 3  and have installed everything offered by Mandrivas repositories updated by URPMI so there's no more .

As I said above I  suspect this is to do with the Java version not finding the library or perhaps avrdude itself. But well see ,I'm going to get Fedora11 installed on a machine and see what happens there .

However I suspect you will see a few more of these posts with the same error . Wish I could say how to fix it but I can't yet .


Oct 15, 2009, 02:29 pm Last Edit: Oct 15, 2009, 02:34 pm by ChrisL Reason: 1
Sometimes all technical solutions fail .Then you just have to close your eyes and pray .

Hope this helps .


As an adjunct I found some more Unix style stuff on adafruits site which I hav'nt tried but I will and will post back if it helped  . There is another thread dealing with the preferences.txt file in arduino so I am going to look at that too




Fedora puts avr-g++ in a separate package called avr-gcc-c++.  As root, run the command

yum install avr-gcc-c++ -y

to install the package.  It exists for 32 and 64 bit systems.


Nov 04, 2009, 11:03 pm Last Edit: Nov 04, 2009, 11:26 pm by tytower Reason: 1

I have just installed Fedora11 32bit version and then Arduino . (Thanks jpgr87,   I used that after I installed .)
Before doing all or any of the other stuff I gave it a try.

I got the normal window and it all looked good but compiling any program seemed to give the same error which was

arduino-0017/hardware/cores/arduino/wiring_analog.c:77: error: expected ')' before 'pin'

Beforei go installing the other stuff does anyone know what causes this? I looked in the program and can see nothing wrong with line 77.

I ask because, from what I have seen so far, Fedora11 installs up to date versions of all the program dependencies that Arduino has.

EDIT:-   All up and operational   At Last!!
did a yum " install avr-libc " after the above and all looks good . Thanks again jpgr87.


uint8_t is not defined
check if you have avr-libc installed on fedora. check any avr installations:
yum search avr


Nov 05, 2009, 12:06 am Last Edit: Nov 05, 2009, 11:08 am by tytower Reason: 1
Yes thanks I edited above but did not see your post first.

I'm not quite out of the woods yet . My serial port is not showing up yet so I'm working on it -the drivers are supposed to be in the latest kernels so it has to be something simple.

This is what I got from the messages log - the last line is interesting

[root@localhost tytower]# sudo tailf /var/log/messages
Nov  5 11:56:59 localhost kernel: usb 3-1: New USB device found, idVendor=0403, idProduct=6001
Nov  5 11:56:59 localhost kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov  5 11:56:59 localhost kernel: usb 3-1: Product: FT232R USB UART
Nov  5 11:56:59 localhost kernel: usb 3-1: Manufacturer: FTDI
Nov  5 11:56:59 localhost kernel: usb 3-1: SerialNumber: A6008eUZ
Nov  5 11:56:59 localhost kernel: usb 3-1: configuration #1 chosen from 1 choice
Nov  5 11:56:59 localhost kernel: ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
Nov  5 11:56:59 localhost kernel: usb 3-1: Detected FT232RL
Nov  5 11:56:59 localhost kernel: usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
Nov  5 11:56:59 localhost NetworkManager: <info>  (ttyUSB0): ignoring due to lack of mobile broadband capabilties

EDIT aparently thats OK the NetworkManager decides it is not a modem so it does not handle it.

Now I noticed that the group of all /dev/ttyS1 to 4 and ttyUSB0  is "dialout" so I'm thinking maybe add my user to that group and it might work but I have stuffed up the system-config-users program some how and the window opens up greyed out and closes immediately. I already have joined "uucp" and changed the permissions to 666


yes, i ran into that problem when i first upgraded from F10.  F11 changes things so it's necessary to be a member of the "dialout" group to manipulate the usb serial ports.  Add yourself and you should be fine.  As practice, I add my user to uucp and dialout every time i configure a new installation.


Nov 05, 2009, 07:59 pm Last Edit: Nov 05, 2009, 08:50 pm by tytower Reason: 1
Nice to have someone who's done it there   jpgr87.
Unfortunately that didn't work for me this time
What a marvelous system that "yum" is ,comparing it to Mandriva's package system. Its fast and clean and it works .I had to remove system-config-users as above and install it again . Done in about 30 seconds .Terrific!
Looks like I'll be staying with Fedora11

Now back to getting Arduino to run.

Success- I have got the thing to upload and send data back down the serial. I suspect when I reboot it will all change again but I now know I have affected it with some of what I have been doing

The important part is when you plug the device in the system creates /dev/bus/usb/005/001,002,003 etc depending on how many times you plug and unplug the device.
It also adds /dev/ttyUSB0and,
It also adds /dev/usbdev5.8-ep00,usbdev5.8ep02,usbdev5.8ep81.
I dont know what that is all about but you can watch them changing as you plug and unplug the device.

Now I changed the ownership of all of these to my user and I changed my user to be in all of the available groups
That got it going.I now have three USB ports

I'll now unplug to see if it 's gone again.Nope-it went and re-appeared when I plugged it back in.
Now to try a logout , and then a reboot. I thiink I will lose them again on a reboot so Ill edit this shortly

BTW I noticed that there is a group called lock and as I made my user of that the terminal errors refering to lock files disappeared

Stone the crows if it didnt work !    Still got all the serial ports and I'm away --Thanks to all.


i guess I also should have commented that I add myself to lock and wheel, but i didn't.

If you've got yourself added to uucp, lock, and dialout, there should be no need to change the ownership of the serial ports.  If you've got multiple serial ports showing up (/dev/ttyUSBx), then you might be unplugging the Arduino while the serial port is still in use (for instance, if the serial monitor is open.)  The serial port will stay until you close all of the programs trying to talk to it.  If you plug it back in again before that, it'll show up as a new device with a different number.

Go Up