How to install gcc compiler on mac

how to install gcc compiler om macair( 2013) ?
    THANKS IN ADVANCE !!!

In OS X, GCC is part of Xcode's command tools, so first, open the Mac App Store and install Xcode for free.
Then, open Xcode, go to Xcode menu (on the menu bar) > Preferences > Downloads, and install Command Line Tools. You will get commands like gcc, make, purge...

Similar Messages

  • How to install c/c   in mac?? i hav used dosbox but there is no compiler in it!! any other software that i hav to install with it???

    how to install c/c++ in mac???... i installed dosbox but it does not have a compiler??? any other software i have to download????..

    Why not just download XCode Developer tools from the Mac App Store? It's free and contains many other useful programming utilities and IDEs to work with.
    B-rock

  • How to install windows xp on mac mini without cd rom support

    How to install windows xp on mac mini without cd rom support. I have installed Bootcamp on my mac mini. And i was using windows xp on my mac mini before xp crashed due to a system file missing or corrupt.

    usb optical drive

  • How to install windows on a mac

    hi,
    I was wondering if anyone has an easy guide on how to install windows on a mac. I purchased a external hard drive to make it easier but still absolutely no clue on how to do this. At college some software isn't compatible with mac so i need to install windows aswel. Any help would be great as not very good with this at all and bootcam

    An external drive is not necessary. There are several options.
    One is Parallels
    Second is VMware
    Third. Partition the hard drive using Boot Camp
    Boot Camp Assistant is pre installed on your Mac in your Applications > Utilities folder.
    If you use Boot Camp, you will need to purchase a Windows install disc.
    Boot Camp: Frequently asked questions about installing Windows 8

  • How can install java sdk for mac os x 10.6.8

    How can install java sdk for mac os x 10.6.8?

    Deanwdd wrote:
    I mean to update Quicktime for Mac Os X 10.6.8...
    If you're running 10.6.8, Apple menu > Software Update. What version of QT do you have?

  • How to install Internet Explorer in Mac

    Dear Concern
    Please suggest to me how to install internet explorer in mac
    Anwar

    KJHaymarket wrote:
    I am responding to the second post questioning "Why do you want to do this?"
    I am a new Mac user and have just encountered a third part software that does not appear to be supported through Safari; thus I am receiving the following message when I attemt to log onto the system:
    "Our system currently supports the following browser versions: Internet Explorer 9, Internet Explorer 8, and Firefox 4 through Firefox 7. We have detected that you are using an unsupported browser. While you still may be able to use the system, depending on the browser, it is possible that you may run into technical issues that we cannot support. Please consider installing one of the browsers listed above to improve your experience with our system."
    Bypassing this message only yields a Server Runtime error.
    Why don't you just download Firefox, 4 through 7 are supported, or if you insist on using Internet Explorer, use Windows.

  • How to instal screen saver on mac?

    how to instal screen saver on mac?

    Click the black Apple on the top left of the screen and select System Preferences.
    In SP, click Desktop and Screen Saver. Next click the Screen Saver tab. The screen savers that come with your Mac are shown on the left side. Select one and click Screen Saver Options... to enter your settings.

  • How to install hard drive into mac pro

    how to install hard drive into mac pro

    I recently bought a new 2TB internal sata drive for my Macpro.
    The installation was easy, but I'm not sure what to do next.
    For one, should I partition the drive?
    My purpose for buying the drive was to use it as my go to drive for Parallels. I used to run my music studio on Windows based machines, and my older project files require a windows OS to recover. I installed Parallels so I can have my studio running Mac and Windows programs which will enable me to access my old project files and take them into my newer Protools system.
    So now, I've installed my new hard drive, but I'm not sure if I should partition it....And!? I'm not sure how to designate that drive for my virtual pc on Parallels. I was able to allocate enough disk space to parallels in order to load my music software, but at this point, I'm not sure if I've just promised it disk space from my original partitioned drive (which only has about 350 GB left on it).
    I would love to be able to make one internal drive available for Parallels, and the other available for the rest of my OSX. When I use Parallels, I still would like to save some extra information on the 2TB drive as well from my dekstop running OSX.
    I hope this makes sense! Your help is much appreciated!

  • How to install Win 7 on Mac using USB flash drive....???

    How to install Win 7 on Mac using USB flash drive....???

    clintonfrombirmingham wrote:
    I thought that installation through Boot Camp required, without hacks, a physical optical disc to install Boot Camp? I don't use it any longer since I run XP under Parallels, but I would swear that you have to use a disc, and not a USB thumb drive, to install Windows?
    Maybe some real Boot Campers will visit this thread...
    Clinton
    If you have the Media you can use it to create a bootable USB key via boot camp assistant.
    It will create the usb and has the option of pre-downlading the drivers and bootcamp utilities for windows.
    It is pretty much all automated and quite simple.

  • How to install GCC 3.3 and Berkeley DB ?

    Hi to all
    I am doing a project written in C. It involves the use of BerkeleyDB database too.
    Tthe problem is that the project compiles successfully on GCC 3.3 but on GCC 4.3 its gives error due to strict checking.
    Kindly tell me how can I install GCC 3.3 on archlinux.
    Also how can I install Berkeley DB (including development package) on archlinux with all the header files and configure it.
    thanks to all of you
    regards
    visio159

    Thanks guys I am loving Archlinux, the speed and control is amazing.
    I installed GCC 3.3 and db.h was already in /usr/include/db.h
    but when I compiled the code (MAIN.c) it gave these errors in db.h ??? I don't know what to do now, db.h itself is reflecting errors..huh.
    As you can see the starting lines are directing towards db.h as having errors
    [noface@myhost PROJ]$ gcc-3.3 MAIN.c -ldb
    gcc-3.3: ldb: No such file or directory
    In file included from MAIN.c:3:
    /usr/include/db.h:1201: error: syntax error before "u_int"
    /usr/include/db.h:1206: error: syntax error before '}' token
    /usr/include/db.h:1544: error: syntax error before "u_int"
    /usr/include/db.h:1660: error: `close' redeclared as different kind of symbol
    /usr/include/unistd.h:320: error: previous declaration of `close'
    /usr/include/db.h:1702: error: `remove' redeclared as different kind of symbol
    /usr/include/stdio.h:155: error: previous declaration of `remove'
    /usr/include/db.h:1703: error: `rename' redeclared as different kind of symbol
    /usr/include/stdio.h:157: error: previous declaration of `rename'
    /usr/include/db.h:1740: error: `stat' redeclared as different kind of symbol
    /usr/include/sys/stat.h:210: error: previous declaration of `stat'
    /usr/include/db.h:1742: error: `sync' redeclared as different kind of symbol
    /usr/include/unistd.h:933: error: previous declaration of `sync'
    /usr/include/db.h:1743: error: `truncate' redeclared as different kind of symbol
    /usr/include/unistd.h:949: error: previous declaration of `truncate'
    /usr/include/db.h:1809: error: syntax error before '}' token
    /usr/include/db.h:1916: error: syntax error before "u_int"
    /usr/include/db.h:1923: error: conflicting types for `close'
    /usr/include/db.h:1660: error: previous declaration of `close'
    /usr/include/db.h:1925: error: conflicting types for `del'
    /usr/include/db.h:1664: error: previous declaration of `del'
    /usr/include/db.h:1926: error: `dup' redeclared as different kind of symbol
    /usr/include/unistd.h:490: error: previous declaration of `dup'
    /usr/include/db.h:1927: error: conflicting types for `get'
    /usr/include/db.h:1669: error: previous declaration of `get'
    /usr/include/db.h:1928: error: conflicting types for `get_priority'
    /usr/include/db.h:1687: error: previous declaration of `get_priority'
    /usr/include/db.h:1929: error: conflicting types for `pget'
    /usr/include/db.h:1700: error: previous declaration of `pget'
    /usr/include/db.h:1930: error: conflicting types for `put'
    /usr/include/db.h:1701: error: previous declaration of `put'
    /usr/include/db.h:1931: error: conflicting types for `set_priority'
    /usr/include/db.h:1734: error: previous declaration of `set_priority'
    /usr/include/db.h:1975: error: syntax error before '}' token
    /usr/include/db.h:2126: error: syntax error before "u_int"
    /usr/include/db.h:2145: error: syntax error before "mp_ncache"
    /usr/include/db.h:2211: error: syntax error before "cl_id"
    /usr/include/db.h:2267: error: syntax error before '*' token
    /usr/include/db.h:2282: error: conflicting types for `close'
    /usr/include/db.h:1923: error: previous declaration of `close'
    /usr/include/db.h:2287: error: conflicting types for `err'
    /usr/include/db.h:1665: error: previous declaration of `err'
    /usr/include/db.h:2288: error: conflicting types for `errx'
    /usr/include/db.h:1666: error: previous declaration of `errx'
    /usr/include/db.h:2291: error: conflicting types for `get_cachesize'
    /usr/include/db.h:1672: error: previous declaration of `get_cachesize'
    /usr/include/db.h:2294: error: conflicting types for `get_encrypt_flags'
    /usr/include/db.h:1674: error: previous declaration of `get_encrypt_flags'
    /usr/include/db.h:2295: error: conflicting types for `get_errfile'
    /usr/include/db.h:1676: error: previous declaration of `get_errfile'
    /usr/include/db.h:2296: error: conflicting types for `get_errpfx'
    /usr/include/db.h:1677: error: previous declaration of `get_errpfx'
    /usr/include/db.h:2297: error: conflicting types for `get_flags'
    /usr/include/db.h:1678: error: previous declaration of `get_flags'
    /usr/include/db.h:2312: error: conflicting types for `get_msgfile'
    /usr/include/db.h:1683: error: previous declaration of `get_msgfile'
    /usr/include/db.h:2313: error: conflicting types for `get_open_flags'
    /usr/include/db.h:1685: error: previous declaration of `get_open_flags'
    /usr/include/db.h:2364: error: conflicting types for `open'
    /usr/include/db.h:1698: error: previous declaration of `open'
    /usr/include/db.h:2365: error: conflicting types for `remove'
    /usr/include/db.h:1702: error: previous declaration of `remove'
    /usr/include/db.h:2387: error: syntax error before "u_int"
    /usr/include/db.h:2391: error: syntax error before "u_int"
    /usr/include/db.h:2393: error: syntax error before "u_int"
    /usr/include/db.h:2398: error: conflicting types for `set_alloc'
    /usr/include/db.h:1705: error: previous declaration of `set_alloc'
    /usr/include/db.h:2402: error: conflicting types for `set_cachesize'
    /usr/include/db.h:1713: error: previous declaration of `set_cachesize'
    /usr/include/db.h:2405: error: conflicting types for `set_encrypt'
    /usr/include/db.h:1716: error: previous declaration of `set_encrypt'
    /usr/include/db.h:2406: error: conflicting types for `set_errcall'
    /usr/include/db.h:1717: error: previous declaration of `set_errcall'
    /usr/include/db.h:2408: error: conflicting types for `set_errfile'
    /usr/include/db.h:1719: error: previous declaration of `set_errfile'
    /usr/include/db.h:2409: error: conflicting types for `set_errpfx'
    /usr/include/db.h:1720: error: previous declaration of `set_errpfx'
    /usr/include/db.h:2412: error: conflicting types for `set_feedback'
    /usr/include/db.h:1721: error: previous declaration of `set_feedback'
    /usr/include/db.h:2413: error: conflicting types for `set_flags'
    /usr/include/db.h:1722: error: previous declaration of `set_flags'
    /usr/include/db.h:2431: error: conflicting types for `set_msgcall'
    /usr/include/db.h:1730: error: previous declaration of `set_msgcall'
    /usr/include/db.h:2432: error: conflicting types for `set_msgfile'
    /usr/include/db.h:1731: error: previous declaration of `set_msgfile'
    /usr/include/db.h:2433: error: conflicting types for `set_paniccall'
    /usr/include/db.h:1733: error: previous declaration of `set_paniccall'
    /usr/include/db.h:2448: error: conflicting types for `stat_print'
    /usr/include/db.h:1741: error: previous declaration of `stat_print'
    /usr/include/db.h:2510: error: syntax error before '}' token
    /usr/include/db.h:2632: error: syntax error before "u_long"
    In file included from MAIN.c:6:
    /usr/include/fcntl.h:85: error: `open' redeclared as different kind of symbol
    /usr/include/db.h:2364: error: previous declaration of `open'
    In file included from /media/evt/PROJ/PROJ/include/makeTreeDB.h:2,
    from MAIN.c:19:
    /media/evt/PROJ/PROJ/include/berkeleyDB.h: In function `removeDB':
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:36: warning: passing arg 1 of pointer to function makes pointer from integer without a cast
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:36: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:37: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:37: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/berkeleyDB.h: In function `addNodeToBerkeleyDB':
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:64: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:84: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/berkeleyDB.h:96: error: dereferencing pointer to incomplete type
    In file included from MAIN.c:21:
    /media/evt/PROJ/PROJ/include/scanProc.h: In function `scanProc':
    /media/evt/PROJ/PROJ/include/scanProc.h:92: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:92: warning: passing arg 2 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:92: error: too few arguments to function
    /media/evt/PROJ/PROJ/include/scanProc.h: In function `showSummary':
    /media/evt/PROJ/PROJ/include/scanProc.h:235: warning: passing arg 1 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:235: warning: passing arg 2 of pointer to function from incompatible pointer type
    /media/evt/PROJ/PROJ/include/scanProc.h:235: error: too few arguments to function
    In file included from MAIN.c:22:
    /media/evt/PROJ/PROJ/include/bigProcessing.h: In function `bigProcessing':
    /media/evt/PROJ/PROJ/include/bigProcessing.h:58: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:95: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h: In function `scanFS_DB':
    /media/evt/PROJ/PROJ/include/bigProcessing.h:158: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:178: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:206: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:211: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:219: error: dereferencing pointer to incomplete type
    /media/evt/PROJ/PROJ/include/bigProcessing.h:224: error: dereferencing pointer to incomplete type

  • HOW TO INSTALL GCC 3.4.6 IN A SOLARIS10 SERVER

    I am trying to install gcc-3.4.6 into a Solaris 10 Server,
    I always get a problem :
    after doing:
    mkdir objdir
    cd objdir
    ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld
    *** The command 'cc -o conftest -g conftest.c' failed.
    *** You must set the enviroment variable CC to a working compiler.
    �what can I do and how?
    thanks

    I am trying to install gcc-3.4.6 into a Solaris 10 Server,
    I always get a problem :
    after doing:
    mkdir objdir
    cd objdir
    ../configure with-as=/usr/ccs/bin/as with-ld=/usr/ccs/bin/ld
    *** The command 'cc -o conftest -g conftest.c' failed.
    *** You must set the enviroment variable CC to a working compiler.
    �what can I do and how?
    thanks

  • How to install windows 8 on mac

    I just bought windows 8 pro and am trying to install in on my windows. I have previously installed windows 7 via bootcamp but just deleted the partition because I want to start over from scratch with windows 8. I understand bootcamp needs to be updated to bootcamp 5 but every time I try to use the assistant and download the windows update to my external hard drive it freezes halfway through. I'm confused as to what I should do now. I downloaded the bootcamp 5 drivers from http://support.apple.com/downloads/#macoscomponents. I downloaded the first one,
    Boot Camp Support Software 5.0.5033
    I'm not sure how to install this or how it works exactly but there is a file in it called setup.exe but it requires a program to open it which i dont have. I have the unarchiver program but even that wont open the setup.exe. Is this the file I need and if so how do I go about updating bootcamp. I also found out that I have bootcamp Version 5.0.2 (462) but when I open the assistant the only option on there is "create a winows 7 or later version" I assumed I needed to update it because it says nothing about windows 8. Thanks for any help.

    Welcome to the Apple Support Communities
    You have to save the folder you downloaded into a USB drive. Then, after installing Windows, connect it and open the setup.exe file, so you will install the Windows support software. Windows support software is needed to make your computer run properly in Windows.
    When you open Boot Camp Assistant, how many options do you see and how are they named? It's possible that your Mac isn't officially compatible with Windows 8 > http://support.apple.com/kb/HT5634

  • How to Install Windows 7 on mac?

    How can i get Windows 7 installed on my mac?
    Is it pre installed ? can i get it pre installed when i buy a new one ?
    Regards,
    Robin Paulose

    Robin,
    Welcome to Apple Discussions.
    MS Windows must be purchased separately, you can buy it anywhere Windows is sold including Best Buy, Fry's, online stores etc. Next you must decide how you want to install it. Primarily there are 2 ways, Bootcamp or using Parallels or VM Ware Fusion, the differences are:
    Bootcamp is free and comes with Leopard and Snow Leopard. It allows the user to boot their Mac in either MS Windows (XP, Vista and now Win 7) OR OS X but not both simultaneously. In short when you boot you are turning your Mac into a Windows machine. Apple officially supports XP and Vista but doesn't officially support Win 7 installation yet. However many people have done successful Win 7 installations. Look over the Windows on a Mac video here.
    The next way is to us either Parallels or VM Fusion. Both products essentially do the same thing, allow the user to run Windows within OS X. This is productive if you want to move files across platforms or don't like the hassle of rebooting every time you want to change OS's. There are many reviews on Parallels and Fusion (just use Google), read those over and then decide which one you would like. They will cost you roughly $60-$80 and can be purchased directly from the manufacturer or most Apple resellers.
    Note: Remember when you install Windows on your Mac the partition it is installed on will be susceptible to all the virus's and other malware any MS Windows machine is so use Windows anti malware and virus software to protect your computer. Any virus's will not affect OS X though.
    Regards,
    Roger

  • How to Install DBD::mysql on Mac OSX 10.4.7 SERVER Universal

    I spent 3 days trying to figure out how to install DBD::mysql on OSX 10.4.7 Server Universal on my Mac Pro.
    I didn't think it would be so hard just to get it installed so I could use Movable Type. Yikes!
    Anyway, I wrote up a tutorial on what I did to get it installed. Hopefully it will help you out if you are having problems installing DBD::mysql on Server 10.4.7 Universal with a Mac Pro.
    DISCLAIMER: I cannot say whether or not this will work with any other version of Server or Macintosh. Inside the article below is a link to how to install DBD::mysql on other versions of OSX that may or may not work for you.
    http://macnewsblog.com/2006/09/howto_install_dbdmysql_onmac.html
    MacBook Pro 15" Mac OS X (10.4.6)

    Hopefully this worked for those with Mac Pros!

  • How to instal camera raw in mac

    Hi, I'd be obliged if someone could advise me how to instal camera raw 8 into an imac.
    many thanks

    If you have Photoshop CS6 or higher, you already have Adobe Camera Raw 8.  What you want is to update ACR to version 8.6.  You can do that automatically through the Help > Updates menu item.
    If you have a lower version of Photoshop, you cannot run any version of ACR 8.x.
    If you don't have Photoshop at all, then you need to buy it first.
    For the next time you post, please give explicit, detailed information:
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them, etc.,
    someone may be able to help you (not necessarily this poster).
    A screen shot could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for