Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lynkynpark86

macrumors 6502
Original poster
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?
Code:
/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?
 
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
 
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.

B
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.