Offline
Newbie
Karma: 0
Posts: 16
|
 |
« on: June 07, 2011, 10:00:55 pm » |
Hi all, sorry for the noob question.. I just installed 0022 on my MacBook Pro. When i try to compile the Example 'Blink' i get the following:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++: line 6: /../avr-4/bin/g++: No such file or directory /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++: line 6: exec: /../avr-4/bin/g++: cannot execute: No such file or directory /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ returned 126
My avr-g++ is installed in: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin so i am not sure why it can't find it??
Any help would be greatly appreciated!!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #1 on: June 09, 2011, 08:42:42 pm » |
Anybody ever seen this or have any ideas for me??
|
|
|
|
|
Logged
|
|
|
|
|
Miers 46500 France
Offline
Full Member
Karma: 0
Posts: 104
EmbeddedAT .. From Concept to Prototype to Production
|
 |
« Reply #2 on: June 10, 2011, 07:57:11 am » |
Hi,
I was having a few problems when I had sketches in folders with spaces in the names of them. I see you have a folder with a stop in the name "Arduino.app" perhaps this is causing a problem. Try changing the folder name to have an underscore and not a stop in it like this "Arduino_app".
This may work for you.
Cheers Pete.
|
|
|
|
« Last Edit: June 10, 2011, 08:25:37 am by Bainesbunch »
|
Logged
|
EmbeddedAT .. From Concept to Prototype to Production
Electronics and firmware design and project mentoring
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #3 on: June 10, 2011, 02:04:10 pm » |
Thanks Pete, The Arduino.app is not a folder but the application package itself?? At least that is my take after digging a lil in Finder. Not sure if the application package will work if i loose the .app???
Anybody can confirm or deny this??
Thanks Again
|
|
|
|
|
Logged
|
|
|
|
|
Sydney, OZ
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #4 on: June 12, 2011, 08:55:22 pm » |
What I would do is drag the whole app from your Applications directory to the trash.
Reload 0022 and let it install to where it want to install it to.
You should find that Arduino.app will reside back in the Applications folder and it should create a save folder in your Documents/Arduino folder.
As this program is so small and simple, reloading it isn't really a problem. You will not lose anything you have samed if it has saved it to the Users/Documents/Arduino folder
Cheers,
Sugar
|
|
|
|
|
Logged
|
There are 10 kinds of people in this world, those that understand binary and those that don't.
|
|
|
|
Miers 46500 France
Offline
Full Member
Karma: 0
Posts: 104
EmbeddedAT .. From Concept to Prototype to Production
|
 |
« Reply #5 on: June 13, 2011, 03:38:46 am » |
The Arduino.app is not a folder but the application package itself?? Aghh i though you said that it was in the folder My avr-g++ is installed in: /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/binAm i misunderstanding the installation location here ... Cheers Pete.
|
|
|
|
|
Logged
|
EmbeddedAT .. From Concept to Prototype to Production
Electronics and firmware design and project mentoring
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5166
CMiYC
|
 |
« Reply #6 on: June 13, 2011, 12:09:43 pm » |
"Arduino.app" perhaps this is causing a problem. That has nothing to do with the issue. The ".app" extension tells the filesystem that a folder is an Application Bundle. Right-clicking on an application and selecting "Show Package Contents" will show everything inside of the Bundle. My avr-g++ is installed in... Is the user you are running, running as an Administrator? It is possible your installation got corrupted. Try deleting your download, drag the existing app the trash, re-downloading, and re-"installing". Just for grins, you might move the Arduino application to another folder (like the Desktop) and see if it will run correctly from there.
|
|
|
|
|
Logged
|
|
|
|
|
Miers 46500 France
Offline
Full Member
Karma: 0
Posts: 104
EmbeddedAT .. From Concept to Prototype to Production
|
 |
« Reply #7 on: June 13, 2011, 01:46:14 pm » |
"Arduino.app" perhaps this is causing a problem. That has nothing to do with the issue. The ".app" extension tells the filesystem that a folder is an Application Bundle. Right-clicking on an application and selecting "Show Package Contents" will show everything inside of the Bundle. I just realised that this is NOT a windows installation .... please erase EVERYTHING I have misled you with from your memories  Pete.
|
|
|
|
|
Logged
|
EmbeddedAT .. From Concept to Prototype to Production
Electronics and firmware design and project mentoring
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #8 on: June 13, 2011, 06:49:32 pm » |
Hey Guys, Thanks for the input.. So i re-downloaded and tried to install (by copying the Arduino.app) in the root hard drive directory, in applications and even the desktop. Whenever i do the same file seems to be problematic. The only thing that changes in the error is the path depending on where it was installed. I know that the Arduino doesn't like a path where there are any spaces. My hard drive is called "Macintosh HD", I am afraid to remove the space, as the OS is installed on that drive. In my recent past life i was a Windows guy and doing something like removing a space in the name of the hard drive would cause certain disaster..
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5166
CMiYC
|
 |
« Reply #9 on: June 13, 2011, 07:25:57 pm » |
The space in the volume name doesn't matter. The file system is relative to root (/), not the volume's name. Changing the volume name usually doesn't break things since programs since it gets mounted to an alias anyway.
Regardless, mine is named "Core Memory", so it is unlikely to be related to spaces.
Again, are you running this user as a administrator or regular user?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #10 on: June 13, 2011, 08:29:29 pm » |
Yes, my user is administrator.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #11 on: June 17, 2011, 09:33:06 pm » |
So does anybody else have this g++ file problem?? Is this a Unix problem that may be troubleshoot in Terminal?
Or can anyone refer me to someone who can help??
Thanks, i appreciate all the help so far!!
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5166
CMiYC
|
 |
« Reply #12 on: June 18, 2011, 09:35:09 am » |
For more troubleshooting ideas, try downloading 0018 and see if it works. Don't even drag the file out of the disk image, just run it from there. If 0018 works, move up one at a time until you get the errors again.
Don't worry about compiling for the correct board, just see if you can get past the complier errors.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #13 on: June 21, 2011, 08:57:27 am » |
Tried i few different versions and ran them from the archive and even from a bunch of different locations, always the same g++ file fail. Took it to the Genius Bar last night hoping those guys might be able to help me. No dice. Ran the compiler perfectly on a Mac Mini at the Apple store which was disturbing.. :-(
|
|
|
|
|
Logged
|
|
|
|
|
Sydney, OZ
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #14 on: June 22, 2011, 05:37:51 am » |
Based on all of the above.............. I would think that this is not an Arduino issue. It would more than likely be an OSX issue where you have either a corrupt or missing file within the OSX that Arduino is looking for.
Do you have another Apple or a mate with one to try it on? I bet 2cents Aust it works.
|
|
|
|
|
Logged
|
There are 10 kinds of people in this world, those that understand binary and those that don't.
|
|
|
|
|