Uploading code to RA plus on MBP
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Uploading code to RA plus on MBP
I get the following error message when I tried to upload a sketch generated by the wizard using my old MacBook Pro
java.io.IOException: Cannot run program "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude": error=86, Bad CPU type in executable
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:125)
at processing.app.debug.AvrdudeUploader.avrdude(AvrdudeUploader.java:318)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1857)
at processing.app.Sketch.exportApplet(Sketch.java:1810)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.io.IOException: error=86, Bad CPU type in executable
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 11 more
java.io.IOException: Cannot run program "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude": error=86, Bad CPU type in executable
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:125)
at processing.app.debug.AvrdudeUploader.avrdude(AvrdudeUploader.java:318)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
at processing.app.Sketch.upload(Sketch.java:1857)
at processing.app.Sketch.exportApplet(Sketch.java:1810)
at processing.app.Sketch.exportApplet(Sketch.java:1783)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2357)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.io.IOException: error=86, Bad CPU type in executable
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 11 more
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: Uploading code to RA plus on MBP
I think it is because it is too old cpu
I believe the compilation requires a 64bit cpu.
We may be able to get around it though.
You will need to use another version of avrdude that is made for 32bit.
Try this:
http://mac.softpedia.com/progDownload/A ... 41689.html
You must overwrite the one inside the Arduino app.
Go to your Applications folder and right click Arduino and choose "Show package contents"
Then, navigate to "Contents/Resources/Java/hardware/tools/avr/bin"
Overwrite avrdude from that folder with the one you downloaded.
I believe the compilation requires a 64bit cpu.
We may be able to get around it though.
You will need to use another version of avrdude that is made for 32bit.
Try this:
http://mac.softpedia.com/progDownload/A ... 41689.html
You must overwrite the one inside the Arduino app.
Go to your Applications folder and right click Arduino and choose "Show package contents"
Then, navigate to "Contents/Resources/Java/hardware/tools/avr/bin"
Overwrite avrdude from that folder with the one you downloaded.
Roberto.
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: Uploading code to RA plus on MBP
I went ahead and borrowed the bosses laptop (my wife) and now get the following error:
dyld: Library not loaded: /usr/lib/libedit.3.dylib
Referenced from: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Reason: image not found
Its a macbook running 10.6.8
dyld: Library not loaded: /usr/lib/libedit.3.dylib
Referenced from: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Reason: image not found
Its a macbook running 10.6.8
Last edited by Rodasphoto on Mon Apr 15, 2013 1:46 pm, edited 1 time in total.
Re: Uploading code to RA plus on MBP
Please look at this thread:
http://forum.reefangel.com/viewtopic.php?p=11123#p11123
http://forum.reefangel.com/viewtopic.php?p=11123#p11123
Roberto.
Re: Uploading code to RA plus on MBP
Just to make sure we never loose reference should that page ever go offline, this is the relevant piece of the article:
Luckily, there’s an easy fix to the problem. Open up the Terminal, and issue the following commands:
cd /usr/lib
sudo ln -s libedit.2.dylib libedit.3.dylib
All you’re doing is navigating to the directory where the debugger is looking for libedit.3.dylib, and creating a symbolic link to libedit.2.dylib named libedit.3.dylib. So when the debugger looks for the latter, it’ll get pointed to the former. After you enter the second command, you’ll have to enter your password.
Roberto.
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: Uploading code to RA plus on MBP
I navigated to the arduino library in the terminal and when I went to upload the changes got the following:
dyld: Library not loaded: /usr/lib/libedit.3.dylib
Referenced from: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Reason: image not found
dyld: Library not loaded: /usr/lib/libedit.3.dylib
Referenced from: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude
Reason: image not found
Re: Uploading code to RA plus on MBP
Did you type those 2 commands in the terminal application?
Roberto.
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: Uploading code to RA plus on MBP
yes. the first one is used to navigate the library used for the arduino, and the second is to reference the file.
Re: Uploading code to RA plus on MBP
Oh no...
not libraries for arduino...
you need to type them exactly as it is posted above.
not libraries for arduino...
you need to type them exactly as it is posted above.
Roberto.
Re: Uploading code to RA plus on MBP
Like this:
- Attachments
-
- terminal.png (16.87 KiB) Viewed 6461 times
Roberto.
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: Uploading code to RA plus on MBP
I did not. I substituted user with the name of the user account and used the library of the arduino. But did it verbatim as you have it and presto it worked. Many thanks for the prompt responses and your help. You and this forum have made using this controller far easier than I was expecting.
Need Help Re: Uploading code to RA plus on MBP
Can anyone help me ? I have the same problem but when I inputted the terminal code on my MacBook (10.6.8 OS) and my desktop Mac (running Lion 10.6 OS), I get a prompt for my password, but both computers won't let me type anything. The keyboard won't respond! What gives?
Also, exactly what Mac Computer and or Operating System does Arduino run on error free? Any help is appreaciated! I'm really trying to like this controller!
Also, exactly what Mac Computer and or Operating System does Arduino run on error free? Any help is appreaciated! I'm really trying to like this controller!
Re: Uploading code to RA plus on MBP
When you run the sudo command it does nit echo anything on the screen as you type your password. But it is working...so type in your password and hit enter.
Re: Uploading code to RA plus on MBP
Thanks....but after typing in my password it says " ln: exists: no such file or directory"... What now?
Re: Uploading code to RA plus on MBP
Sounds like an error in the command, can you post a screenshot?
Re: Uploading code to RA plus on MBP
I decided to uninstall Arduino and re-install. I installed Arduino 1.0.1 on my MacBook 10.6.8 OS. Next I replaced the "bin" folder with the Avrdude folder. Now when I try to upload a sketch it says "Cannot run program "/Aplications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++":error=2,No such file or directory.
WHAT NOW?
Frustrated in Louisiana!
WHAT NOW?
Frustrated in Louisiana!
Re: Uploading code to RA plus on MBP
You have to install the Arduino that comes with Reef Angel Installer.
The arduino release from the arduino.cc website will not work.
Please read the user manual for installation of the Mac version.
The arduino release from the arduino.cc website will not work.
Please read the user manual for installation of the Mac version.
Roberto.
Re: Uploading code to RA plus on MBP
Hey...exactly where can I find this Arduino w RA Installer. When I used the manual to direct me to the Mac arduino download, it takes me to where I originally was when I downloaded it earlier. Re-installed again. Replaced "bin" folder, re-booted, same problem:"Cannot run program"
Re: Uploading code to RA plus on MBP
http://www.reefangel.com/download.aspx
There is no need to replace bin folder. Not sure why you are trying to replace it.
There is no need to replace bin folder. Not sure why you are trying to replace it.
Roberto.
Re: Uploading code to RA plus on MBP
Well, on the 1st page of this forum, Rodasphoto is using the same Mac OS 10.6.8 as I. And you commented, "I think it is because it is too old cpu
I believe the compilation requires a 64bit cpu.
We may be able to get around it though.
You will need to use another version of avrdude that is made for 32bit.
Try this:
http://mac.softpedia.com/progDownload/A ... 41689.html
You must overwrite the one inside the Arduino app.
Go to your Applications folder and right click Arduino and choose "Show package contents"
Then, navigate to "Contents/Resources/Java/hardware/tools/avr/bin"
Overwrite avrdude from that folder with the one you downloaded."
So I gave it a shot....So I'll give this a shot also! Thanks...
I believe the compilation requires a 64bit cpu.
We may be able to get around it though.
You will need to use another version of avrdude that is made for 32bit.
Try this:
http://mac.softpedia.com/progDownload/A ... 41689.html
You must overwrite the one inside the Arduino app.
Go to your Applications folder and right click Arduino and choose "Show package contents"
Then, navigate to "Contents/Resources/Java/hardware/tools/avr/bin"
Overwrite avrdude from that folder with the one you downloaded."
So I gave it a shot....So I'll give this a shot also! Thanks...
Re: Uploading code to RA plus on MBP
There was a fix posted already with a symlink for a library that needs to be replaced. Only one person who tried it and it didst work for never followed up with a screenshot of what they did. I don't remember where the post is, but it was an easy fix and I'm quite sure something was not done correctly.
Re: Uploading code to RA plus on MBP
Ok ....gave it a shot and now I get the same error as Rotasphoto (top of page 1) error=86 "........."
Thanks, I'll check around for that post, hopefully I'll find an answer!
Thanks, I'll check around for that post, hopefully I'll find an answer!