Xcode and gcc problem.

Installed Xcode from AppStore,
but still get the message when i run gcc in terminal:
-sh: gcc: command not found
Anyone?

XeeeNa wrote:
I figured that out now too.
When I last where running an Xcode install I was on SL
and It all worked fine afterwards.
Did not have to add anything in my $PATH.
But now on Lion I have to..
Nope - I'm always running bash.
Just finnised a fresh install of lion an well,
when running as none-superuser i've got bash shell,
but as root sh - apperently. Strange.
baltwo wrote:
AFAIK, that's not true for Xcode 4.3.2. The CL tools are installed inside the Xcode app and don't require a developer account.
Well accorting to what baltwo says that explains why you need to explicitly fix up PATH (to add the appropriate directories withing the xcode bundle).
As for running gcc from your root account?  Why on earth would be running it from there at all?

Similar Messages

  • Please Help: Just upgraded to Xcode 4 and having problems

    Hi folks, I developed a couple of iPhone apps before Xcode 4 was available ( think it was version 3.3.2 ). So I was working on a new app last night with my old Xcode and it was working fine in simulator but I couldn't get my iPhone provisioned because it had an OS that was not supported by that version of Xcode. So I just upgraded to Xcode 4 and now I am having lots of problems.
    1. I cannot build/run the apps I developed in Xcode 3.3.2, any scheme I select results in 'The selected run destination is not valid for this action' - all of the simulator options are grayed out.
    2. The new app builds and runs in simulator but when I try to run it on my provisioned device it says it starts running but then immediately stops running, there are no errors reported that I can find.
    Not sure what to try, any help would be greatly appreciated.
    Thanks,
    Andy

    Quick Update, when I unexpanded the Project on the left-side menu I now see this message when trying to run the app on the provisioned iPhone:
    Target Integrity
    Missing SDK in target projectname
    I understood how to fix this in older Xcode but the new system is foreign to me and I am unclear of what I need to do.
    Thanks,
    Andy

  • Upgrading to xcode and can't connect to the network

    Hi! I use a C++ library in my application which connects to the network (I suppose it uses sockets). I've been using it for months and I was using xcode 3.2.4. Now, I just had the great idea of upgrading to xcode 3.2.5, and I found out my application was crashing with the error:
    If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. 3.2.5
    Ok, couldn't solve it, so went back to 3.2.4, as suggested somewhere. The application is not crashing anymore, but now the library can't connect anymore to the network. Tried to rebuild it (I didn't write the library but I have the sources) and use the new library, but nothing. Still the library can't connect to the network. I tried with every simulator.
    Any idea what there could be wrong and how I may be able to solve this? Can I somehow delete manually everything related to xcode and the simulator and try to start all over again?
    Thanks!

    I've been able to temporarily solve this problem by removing the entire Development directory and installing again xcode 3.2.4. Even with xcode 3.2.4 however, the same happened, and I had to do this procedure again. Now it seems to be working correctly, but it seems something very strange has happened. Hasn't anyone experienced anything similar?
    Thanks!

  • How do i recompile whole system with glibc and gcc from test

    I always run testing and hence upgraded all my system a couple of days back. How ever one pprogram i use very often, BLENDER isn't working after i upgraded glibc and gcc4. I have recompiled it but when I get all this errors when i start it http://bbs.archlinux.org/viewtopic.php?t=21825.
    I think i need to rcompile all its dependant programs with new glibc and gcc from testing also. Problem is I dentifying which programs to compile is proving a pain as the dependant programs also depend on other programs etc...
    Is there a way to recompile my whole system without having to do it one by one?

    if you want to compile everything, gentoo is an option. But abs is excellent too.
    P.S. Gentoo's compilation drove me out of it

  • [SOLVED]gcc-libs and gcc-libs-multilib are in conflict

    Can't update today.
    [glow@GlowArch ~]$ sudo pacman -Syuv
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    catalyst is up to date
    :: Starting full system upgrade...
    warning: android-udev: local (98-1) is newer than community (r100-1)
    resolving dependencies...
    looking for inter-conflicts...
    :: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] n
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: gcc-libs and gcc-libs-multilib are in conflict
    I assume there is some update going on, i will try again in some time.
    Last edited by GloW_on_dub (2014-05-09 14:04:57)

    [glow@GlowArch ~]$ sudo pacman -Syu --ignore gcc-libs
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    catalyst is up to date
    :: Starting full system upgrade...
    warning: android-udev: local (98-1) is newer than community (r100-1)
    resolving dependencies...
    warning: ignoring package gcc-libs-4.9.0-2
    warning: cannot resolve "gcc-libs=4.9.0-2", a dependency of "gcc"
    warning: cannot resolve "gcc=4.9.0-2", a dependency of "gcc-fortran"
    :: The following package cannot be upgraded due to unresolvable dependencies:
    gcc-fortran
    :: Do you want to skip the above package for this upgrade? [y/N] n
    error: failed to prepare transaction (unexpected error)
    You're right, i have indeed a dependency problem because of this aur package, acml-gfortran, wich have in it's dependencies gcc-fortran instead of gcc-fortran-multilib
    The thing i don't understand is how have i been able to install gcc-fortran with acml-gfortran, without trying to install gcc-libs and discovering the conflict at that time,
    and also why the fact that there is a gcc-fortran and gcc-libs update without the corresponding update in the multilib version discover the conflict.
    I've commented the aur package, so the maintainer will soon fix the problem, yet i don't understand fully why this conflict have appeared now.

  • Gcc problems on Solaris 10 X86

    I'm using Solaris 10 x86 and gcc from /usr/sfw/bin and have come across a couple of problems:
    which gcc
    /usr/sfw/bin/gcc
    gcc -v
    Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
    Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure prefix=/usr/sfw with-as=/usr/sfw/bin/gas with-gnu-as with-ld=/usr/ccs/bin/ld without-gnu-ld enable-languages=c,c++ --enable-shared
    Thread model: posix
    gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
    Problem 1
    cat ll.cc
    #include <signal.h>
    int CS;
    gcc -c ll.cc
    ll.cc:2: error: expected unqualified-id before numeric constant
    ll.cc:2: error: expected `,' or `;' before numeric constant
    CS is defined in the file /usr/include/sys/regset.h as:
    #define CS 15
    I've changed the code to use MYCS instead and this gets around the problem. Does anyone have a more elegant solution to the problem?
    Problem 2
    In a g++ compilation I have a file that includes cpp_type_traits.h.
    The compilation fails with:
    /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/bits/cpp_type_traits.h:69: error: expected unqualified-id before "namespace"
    The relevant line in cpp_type_traits.h is:
    namespace __gnu_internal
    Knowing rather little about g++ I've been Googling for an hour but not found anyone else with the same problem.
    Many Thanks
    Andy

    I'm not fully sure what might cause your problems since I'm not a programmer myself. However, I do wonder if the gcc version located in /opt/sfw/bin may do you some good. When all other options fair I'd recommend getting the Studio 11 package and just use the cc compiler provided by Sun themselves. Its free anyway.

  • I am new to xCode and SDK Disks. My Interface Builder will not work and 'quit's unexpecteldy'. What can I do? I really want to create an applicaiton. Thanks

    Hi, I am a new user to xCode and just recently downloaded a SDK Disk image and also an older version of xCode from the Apple Developer site. I opened the 'Interface Builder' for the first time and it worked. Next, when I tried to open it again (with and without the xCode 'Mainmenu.xib' attachment file from xCode) it kept showing the message "it quit unexpectedly".
    I need to create an application for a project I am working on. If anyone who can resolve my problem of why the Interface Builder is not working, that will be great.
    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Thanks.

    If you need additional details (like which versions etc.) please ask, for I am desperate to find an adequate solution to this problem.
    Without intending any disrespect, if you had suspected these would be questions and if you're in a hurry for an answer, then why did you exclude the information?  And yes, knowing the Mac OS X version (preferably Mac OS X 10.5.8 or 10.6.7) , as well as the Xcode version might shed some light on this.  Might.  And I'll presume there's a specific reason you downloaded what I will assume is an Xcode3 version.
    Was this an existing Xcode project, or did you start with a new project here?  If it's an existing project, it could well have a corruption or an incompatibility.
    Initially, I'd probably start with a new project, and load in newly-copied source files.  On the off chance the project is corrupted.
    Failing that, I'd deinstall Xcode using the documented procedures, and would then reload it.  If there was an old version of Xcode around on the system, sometimes wonky stuff can happen with an installation.
    And FWIW, the Apple Developer Forums and the Apple mailing lists tend to see far more developer-related traffic than do these particular forums.  (There's an Xcode users' mailing list around which sees regular traffic, too.)

  • Xcode and older Java projects

    Help!
    Recently I've tried to re-run some older Java Xcode projects and have received this error message:
    "Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation."
    I can get around the problem by copying the old code into a newly created project; however, when I tried to follow the instruction in the error message and consult the Xcode documentation, I could find no information on how to do this. I have tried searching the user docs for all of the terms in the above message with no useful results. Selecting "Upgrade all targets to native" from the Project menu produces a warning that this is not supported in Java.
    I must be missing something really obvious. Can anybody tell me what is going on?
    Thanks, dcl

    Thanks for the quick reply, Karl.
    I should have mentioned that I'm pretty much a beginner with Xcode and Java (actually, with software in general). I get the impression that you don't think that Xcode is a very good way to develop Java. Why is that?
    For my level of programming it works just fine (usually). If I start with a new project there is no problem; however, I can't go back and work on older projects because of the problem I mentioned in the original email.
    Any clues as to what is going on?

  • Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution

    Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution?? please...

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Darwin and GCC

    I have been trying to compile a .c source file (a windows app) in darwin and X11 for quite some time now... however, naturally X11 is supposed to come with some compiler called gcc, I installed X11 off the 3rd disc of Panther and when I try to use automake or type in gcc it doesnt work ( automake gives an error: automake: `configure.ac' or `configure.in' is required) I tried using gcc and this is what I get
    Corys-Computer:~/source/spsofsrc cory$ gcc
    bash: gcc: command not found
    I must be doing something wrong, any help would be great

    X11 is a graphics environment and gcc is a compiler--neither of those entities entails the other. To get the gcc compiler suite, you need to install it (from the XCode disk).

  • Exporting screen layouts made with Creative Cloud for Xcode and Eclipse.

    Hi,
    I would like to know if it is possible to create the screens layouts (User Interface) with Creative Cloud and export the code to my developers in a way they can add additional coding to the screens I've created.
    I am insterested in export to iOS devices (Xcode) and Android (Eclipse).
    Tks,

    You Deserves cookie. YOU DESERVE COOKIE!!!!!
    Adobe could never figure out why people were experiencing the problem, telling them to go to appdata rename this, uninstall this that, and the freaking coresync x64 wouldn't erase.
    I was lucky that I born in the SSD era that it didn't take me that much time restarting my computer, I had to restart my computer so many times...and all my efforts was unnecessary.
    I couldn't find this thread until today. Thanks. Adobe should request Google to move this thread up.

  • Xcode IB Window Problem

    Hello,
    im new to Xcode and have (i think) a simple question. I want to open a new window by pressing a simple push button. I know how to do that. My problem is, that i want to bind it to a condition. When i press a button, there should be a check: for example if textfield 1 = "test123" and textfield 2 = password, then open window x.
    So im just missing the command for opening a window

    This is for iOS but the idea should be similar for OS X:
    .h
    @interface myViewController : UIViewController <UITextFieldDelegate>
        UITextField *aTextField;
    -(void)buttonPressed;
    @property (nonatomic, retain) UITextField *state;
    .m
    @implementation myViewController
    @synthesize aTextField;
    -(void)loadView
        UIView *view = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"An Image.png"]];
        self.view = view;
        [view release];
        self.view.frame = CGRectMake(114, 212, 540, 620);
        aTextField = [[UITextField alloc] initWithFrame:CGRectMake(70, 230, 80, 22)];
       [self.view addSubview:aTextField];
       self.view.userInteractionEnabled = YES;

  • An unexpected and unrecoverable problem has occourred.  Photoshop will now exit.

    Why do I keep getting this error:  An unexpected and unrecoverable problem has occurred.  Photoshop will now exit.  ?  I'm using CS3 on a pentium laptop using osx 10.4.11    after this error occurs, the computer freezes up and i have to force restart.

    Mine is crashing again.  Guess I will have to call Adobe tomorrow. Crashed 5/6 times today so far.
    ADDED: April 19th - Crashed over 25 times tonight - not usable software. Calling Adobe tomorrow morning.  Cant get more than 20 seconds out of it.
    THis is ridiculous.
    I checked my error log and this is what is says:
    2010:10:07 19:30:04 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../sources/UImageStatistics.cpp : 5896 : REQUIRE failed
    2011:03:13 23:48:51 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    2011:03:13 23:48:51 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    2011:03:27 20:19:26 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    2011:03:27 20:19:26 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    2011:04:11 00:50:22 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    2011:04:11 00:50:22 : /Volumes/workarea/PS_10_Mac_Xcode_RIBS_en_US_Daily/20071012.r.1644/photoshop/main/photosh op/xcode/../le/sources/ExifSupport.cpp : 2866 : REQUIRE failed
    (Older info, below)
    Process:         Adobe Photoshop CS3 [22647]
    Path:            /Applications/Adobe Photoshop CS3/Adobe Photoshop CS3.app/Contents/MacOS/Adobe Photoshop CS3
    Identifier:      com.adobe.Photoshop
    Version:         10.0.1 (10.0.1x20071012 [20071012.r.1644 2007/10/12:09:30:00 cutoff; r branch]) (10.0.1)
    Code Type:       PPC (Native)
    Parent Process:  launchd [77]
    Interval Since Last Report:          11939 sec
    Crashes Since Last Report:           2
    Per-App Interval Since Last Report:  11742 sec
    Per-App Crashes Since Last Report:   2
    Date/Time:       2011-04-03 17:16:04.368 -0700
    OS Version:      Mac OS X 10.5.8 (9L31a)
    Report Version:  6
    Anonymous UUID:  089DD08E-48A6-4CBB-8A7C-E4A7BF743203
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000000a
    Crashed Thread:  15
    Message was edited by: CS3jim

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • BOSD, Battery issues and Heating problem after iOS 8 upgrade

    i have upgraded my iPad mini to iOS 8. Ever since I upgraded to iOS 8 am facing blue screen issues and heating problem as well. This is really frustrating even the patch iOS 8.0.2 dint solve the problem. Are you guys listening our complaints. When will you fixing it.

    The same thing happened to me on my 2012 Subaru Outback.  I'm not sure this will help you since you have a Honda, but I'm posting this just in case.
    I paired the audio on my car with my iPhone 6.  However, when I turned the car off and back on again, the iPhone would not pair automatically.  I had to manually connect the iPhone with the car.  Turns out there are two separate bluetooth pairings on my car: one for phone which allows up to 5 devices and one for audio which allows only one device.  So I did the second bluetooth pairing for the phone (had already done the audio), and that fixed it.  YMMV

Maybe you are looking for

  • Torch update to 6.0.0.448 hangs Win 7 Blackberry Desktop in Address book update

    First attempt at using Win 7 Desktop update since updating 9800/Torch to 6.0.0.448 and the desktop hangs "Processing Device Address Book". Shows Record 189 of 189 and never completes.

  • Changing a Domain Name

    Hi, I can't find it myself: I have a server connected to the internet with a static IP adress. My internetprovider registered a domainname that points to my IP-adress (mydomain.com) Unfortunately I made a typo. Bad luck. I keep finding the wrong doma

  • Adobe Audition is cracking while recording voice.

    I am running a few different computers with Adobe Audition for my radio station, we just transitioned over from Cool Edit Pro 2.0 and one computer is giving me an issue with crackling when recording. The thing is I am running Cool Edit Pro on the sam

  • XP SP3, Broadband cards, and domain membership

    In a nutshell, when using a machine with Windows XP SP3, I'm unable to browse/use the internet with Verizon broadband cards.  An identically configured machine with Window Vista works fine.  I've tried two different styles of card (760 and 190), and

  • How to deploy J2EE Application?

    Hi, I have JDeveloper 9.0.3 and I want to deploy application to AS 9i. My application have EJB and I want to run my EJBs at AS and connect to it from application or Applet. In JDeveloper my application works well. But I don�t know how can I deploy it