can not get sketch to upload to DUE

I am using the 1.5.3 IDE to try and upload to an Arduino due but I keep getting this error. ( it makes no difference if the board is actually connected or not) I believe it to be some issue with the IDE or my installation of it.

Hoping for help :)

Arduino: 1.5.3 (Linux), Board: "Arduino Due (Programming Port)"

/home/arduino/Desktop/arduino-1.5.3/hardware/tools/g++arm_none_eabi/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=153 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -DSAM3X8E_ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="Arduino Due" -I/home/arduino/Desktop/arduino-1.5.3/hardware/arduino/sam/system/libsam -I/home/arduino/Desktop/arduino-1.5.3/hardware/arduino/sam/system/CMSIS/CMSIS/Include/ -I/home/arduino/Desktop/arduino-1.5.3/hardware/arduino/sam/system/CMSIS/Device/ATMEL/ -I/home/arduino/Desktop/arduino-1.5.3/hardware/arduino/sam/cores/arduino -I/home/arduino/Desktop/arduino-1.5.3/hardware/arduino/sam/variants/arduino_due_x /tmp/build7336130740493128580.tmp/sketch_oct21a.cpp -o /tmp/build7336130740493128580.tmp/sketch_oct21a.cpp.o

You didn't paste an error.

i am getting a "cannot run program " error from the "g++_arm_none_eabi/bin/arm-none-eabi-g++" java.io.IOExceptions: error=2 No such file or directory.

I navigated to the dir and there is clearly the file in place.......

Try putting the “arduino-1.5.3” folder as a root folder on the drive.

No need to install, just download the ZIP file, unzip, and cut-and-paste
the folder to the root of the drive.

Try using version 1.5.4r2 (or the latest).

I get the error even if i just try to compile the sketch too

The "line" you pasted in the first post shows that the arduino-1.5.3 folder is "burried" in three higher folders, which are repeated several times in this very long "command", quite possibly making it too long to process.

So, move (cut and paste) the arduino-1.5.3 folder to the root of the drive (not in any other directory), and it will probably work.

can any one help tell me the procedure to "how to upload the code to arduino due board"

Start with the Due not connected to anything else. Connect the Due Programming Port to the PC USB port. Using the Arduino IDE version 1.5.4r2 (for Due), select the Board as Due Programming Port, and the Comm Port that the OS allocated to your Due. Compile and load the Blink Sketch.

Previously, you should have downloaded the zip file of the IDE and unzipped it, and moved the "arduino-1.5.4" folder to the root of your hard drive (in Windows).

The first attachment of the Due will look for a driver, as I recall. For the download, Google Arduino IDE for Due and follow the instructions here: http://arduino.cc/en/Main/Software And, for the Due, read this: http://arduino.cc/en/Guide/ArduinoDue

Hopefully,this will help. If not, please ask more specific questions. Cheers, Gary