Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:06:34+00:00 2026-06-09T23:06:34+00:00

SETUP OS X 10.8 Xcode 4.4.1 installed TextMate 2 -r9283 SUMMARY Compiling and running

  • 0

SETUP

OS X 10.8
Xcode 4.4.1 installed
TextMate 2 -r9283


SUMMARY

Compiling and running a simple C program in TextMate2 on 10.8 with Xcode 4.4 installed gives me a path error, then a compiler error, then a linker error.


STEPS TO REPRO

  1. Create a file called test.c in TextMate2 and save to Desktop
  2. Paste this program in the test.c file:

    #include <stdio.h>

    int main(int argc, char const *argv[]) { printf("Hello World\n"); return 0; }

  3. Type command-R for Run

EXPECTED RESULT

Output from stdout from running the program


ACTUAL RESULT

The TextMate output panel shows me this PATH error:

Can't find “gcc” on PATH.

The current PATH is:

    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /Users/itod/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
Please add the directory containing “gcc” to PATH in TextMate's Shell Variables preferences.

then this compiler error:

cc1: error: stdio.h: No such file or directory

then this linker error:

ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status

How do I fix these errors and successfully compile and run a C program in TextMate 2 in OS X 10.8?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:06:35+00:00Added an answer on June 9, 2026 at 11:06 pm

    If you want /usr/bin/gcc etc. properly installed, get the “Command Line Tools for Xcode” from the apple developer site http://developer.apple.com/downloads (free download with free ADC account). It will install /usr/bin binaries for all the commandline tools – gcc, ld, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

setup.py from distutils.core import setup import py2exe setup(console=['program.py']) The error Traceback (most recent call
I'm trying to setup my Xcode project to be instrumented with gcov so I
I have the newest XCode (4D199) installed and in terminal when I type new-host-2:
HEllo, I have just installed xcode 3.2.3 and SDK4. I need to use ASIHttpRequest
I have Xcode 4.3 and it works fine. However, running make to compile a
How do I get the command-line build tools installed with the current Xcode/Mac OS
I'm trying (failing) to setup RestKit, which requires one Xcode project to be referenced
I have XCode installed and also FreeTDS. I tried to connect to my SQL
I'm trying to install pyusb 0.4.3 on Mac OS X Lion 10.7.3 running Xcode
I have just installed new xcode with sdk 4.3b because I need 'airPlay' feature

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.