my experience trying to install arduino on Ubuntu

Ah yes, you'll need rxtx as well. I think you should be able to install it with apt-get, and just delete the one in the Arduino distribution (you'll probably want to get rid of the rxtxcomm.jar too, as one should come with the Ubuntu package).

sudo apt-get install rxtx

generates:

E: Couldn't find package rxtx

... I found a similar thread (rxtx .so for AMD64) in a Processing forum, btw, via a Google search. I've now found my way to www.rxtx.org by searching for "download rxtx."

Their server is not responding well to my download attempts. Do you happen to know of any mirror, or other source? I guess I'll try their CVS.

Running 64-bit Feisty Fawn. To get Arduino up and running:

Note: I installed Java 5 because I didn't want to install Java 6 - personal preference, not a technical one.

  • rename or remove the RXTXcomm.jar and librxtxSerial.so from lib directory where you installed arduino-0009

Edit the arduino script:

  • change the "lib/RXTXcomm.jar" to "/usr/share/java/RXTXcomm.jar" in the CLASSPATH line
  • add ":/usr/lib" to the end of the LD_LIBRARY_PATH line

Cool, thanks for the directions, Stoner. Were you able to use the avrdude that came with Arduino? Or did you need to install your own?

Those directions just get arduino-0009 up and running. To actually interface with the arduino board is a different story. So far, I've been unsuccessful - I'm getting the dreaded : avrdude: Expected signature for ATMEGA168 is 1E 94 06

To get to that point, one needs to rebuild avrdude and to do that you need to install:

  • build-essential (it is assumed this is installed, or you probably wouldn't have been able to install gcc-avr in the first place)
  • bison
  • m4 (bison depends on it)
  • flex
  • libusb-dev

From there, one can download the avrdude source and build it for 64-bit platforms. You need to remove/rename the 'avrdude' binary in arduino-0009/tools and put a symlink in it's place (pointing to where ever you installed avrdude.) The avrdude.conf that comes with arduino-0009 is identical to the source of avrdude - so replacing it isn't necessary.

For fun, I also downloaded the source to uisp and rebuilt that (since the supplied on is 32-bit.)

Yet again, technology makes a liar out of me. It is working and uploading my code to the mega168. It's just really confusing when I get the "Invalid signature.." message. I interpret that as "error, it didn't work."

Is this an actual error that can be resolved or some by-product of the process?

I'll do some more testing. If all goes well, I can come up with a more comprehensive "get your Arduino running with 64-bit Ubuntu" document.

One of the patches that I made to the avrdude-5.4-arduino is required to allow avrdude to read the device signature from the bootloader we have on the Arduino boards. The standard version of avrdude will always get 00 00 00 from our bootloader, but you can still upload if you give it the -F flag that forces it to continue despite signature mismatches.

Can you make the patch available as a separate download - in the event a developer has their own customized avrdude?

Additionally, a feature request:

  • expose the "upload.verbose" setting in the preferences file in the UI. This would allow one to get verbose output from avrdude without having to stop arduino, changing the file and starting arduino back up (and, of course, turn it off when finished debugging.)

I'll try to make a patch when I have a chance.

As for the upload.verbose setting - I'm hoping it's only rarely that users need it, and only when things go wrong, so I'd rather not put it in the interface.

i get arduino recently, and
i get this, too

avrdude: Expected signature for ATMEGA168 is 1E 94 06

what should i do?

ivar, does your Arduino have an ATmega168 on it? What operating system are you on? What serial port is your Arduino on?

in arduino 09, i get an ATmega168 on it, im in macOSX 10.4.10, my serial port is : tty.usbserial-A000PRW
my computer is pb G4 1,67ghz, arduino 09, ( Arduino NG, ATMEGA8-16PU)

You need to chose "ATmega8" from the Tools > Microcontroller menu since there's an ATmega8 on your board.

thx! :slight_smile: it works fine, now!

I'll try to make a patch when I have a chance.

As for the upload.verbose setting - I'm hoping it's only rarely that users need it, and only when things go wrong, so I'd rather not put it in the interface.

I have added a bug for this and attached a patch and a ebuild for Gentoo. :wink:
see 223245 – dev-embedded/avrdude-5.5 ebuild upgrade for arduino

it works very easy on ubuntu 8.04, no need to compile anything.

If you have a standard Ubuntu 10.4 installation you will get openjdk-6-jre installed by default, but arduino-0021 doesn't work with openjdk-6-jre, it needs sun-java6-jre.
Removing openjdk-6-jre by Synaptic packet manager may not remove the openjdk-6-jre configuration files.

It is important to have openjdk-6-jre completely de-installed, which means also the configuration files, otherwise the arduino program may not work.
Check the installation of sun-java and openjdk:

dpkg -l | grep -i java
?
rc openjdk-6-jre
rc openjdk-6-jre-headless
?
ii sun-java6-bin
ii sun-java6-fonts
ii sun-java6-jre
ii sun-java6-plugin

If you find openjdk-6-jre* entries like above you have to remove the configuration files too, try:

sudo dpkg -P openjdk-6-jre openjdk-6-jre-headless

After I did this I got the Arduino IDE starting up without flickering.

I have to revise my last post regarding the flickering, this is not solved with removing openjdk configuration :frowning:

So found a solution to stop flickering of arduino IDE. Simply do a unmaximize (Wiederherstellen) of the IDE window and viola it looks fine. ::slight_smile: