g++ without admin?

Discussion in 'Mac Programming' started by lynkynpark86, Mar 3, 2012.

  1. lynkynpark86
    Expand Collapse
    macrumors 6502

    As many of my other posts indicate, I don't have administrator rights on my Mac. Is there any way to use g++ without "installing" it? For example, could I do something like this?
    /Users/myuser/gcc/g++ -args somefile.cpp
    I've tried it before, and it always game me some error like "stdio not found". Is there a way to make it work?
  2. sero
    Expand Collapse
    macrumors member

    Aug 28, 2008
    Wirelessly posted (Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

    It would probably be easier to crack the admin password than to get this working
  3. balamw
    Expand Collapse


    Staff Member

    Aug 16, 2005
    New England
    Basically you need more than just g++/gcc for everything to work, you need the binaries e.g. in ~/bin, but also the libraries like stdio in ~/include and ~/lib.

    You might be able to get the version from HPC to work by appropriate use of environment variables.


Share This Page