Pages: [1] 2   Go Down
Author Topic: Cant Get Compiler to Complete 0022 OSX 10.6.7  (Read 1893 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anybody ever seen this or have any ideas for me??
Logged

Miers 46500 France
Offline Offline
Sr. Member
****
Karma: 14
Posts: 316
EmbeddedAT .. From Concept to Prototype to Production
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Sr. Member
****
Karma: 14
Posts: 316
EmbeddedAT .. From Concept to Prototype to Production
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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/bin

Am 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 Offline
Faraday Member
**
Karma: 71
Posts: 6146
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
"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.


Quote
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

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Miers 46500 France
Offline Offline
Sr. Member
****
Karma: 14
Posts: 316
EmbeddedAT .. From Concept to Prototype to Production
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
"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   smiley-red

Pete.
Logged

EmbeddedAT .. From Concept to Prototype to Production

Electronics and firmware design and project mentoring

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 71
Posts: 6146
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, my user is administrator.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 71
Posts: 6146
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Pages: [1] 2   Go Up
Jump to: