How do I install without admin privelages???

Joined
Jul 9, 2007
Messages
4
Reaction score
0
Points
1
I'm pretty new to Mac, but I believe there is no easy way around my problem. I am trying to install a C++ compiler on this Mac without administrative privelages. I tried using Xcode and GCU (I think that's what it's called) as well as MPW-PR, but every time I try installing it prompts me for a password. Anyone have any idea how to bipass this or know of a stand-alone non-installation-required C++ compiler? Thanks
 

eric


Retired Staff
Joined
Nov 4, 2006
Messages
8,704
Reaction score
447
Points
83
Location
twin cities, mn, usa
are you the owner of the machine? and if so, why aren't you the admin?
 
OP
S
Joined
Jul 9, 2007
Messages
4
Reaction score
0
Points
1
no im not. im at work, as an intern, and my mentor is gone all week. im sort of stuck until i can get a decent C++ program working...
 
Joined
Jul 18, 2006
Messages
238
Reaction score
6
Points
18
Your Mac's Specs
iMac 17" Intel Core Duo, 2 GB RAM + 20" ACD
Just use Terminal... type

(prompt here$)g++ (c++ code filename) -o (name you want for the final program)

Just put the C++ code in the default Terminal location (the folder it opens to, your home folder I think) if you don't want to mess with ls and cd.
 
OP
S
Joined
Jul 9, 2007
Messages
4
Reaction score
0
Points
1
im sorry im really new to mac. i dont think i did something write. i typed "g++ test.txt -o test.cpp" into the terminal. what returned was "-bash: g++: command not found". im really sorry, but i just barely started using mac
 
Joined
Jul 18, 2006
Messages
238
Reaction score
6
Points
18
Your Mac's Specs
iMac 17" Intel Core Duo, 2 GB RAM + 20" ACD
Hmm. Try this:

Open test.txt and save it as test.cpp.
Open Terminal
Type this at the prompt (or copy/paste for accuracy):g++ test.cpp -o test
When the prompt returns, type (no space before either of these commands):./test

It should run your program in the Terminal window- beyond that (like making it a .app) someone else will have to help.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,640
Reaction score
172
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
sandwichman assumed that you had the compiler installed. command not found mean the system can not find the command g++. With out the admin account you will not be able to install the compiler for system use. You maybe able to install it for your personal use.
 
OP
S
Joined
Jul 9, 2007
Messages
4
Reaction score
0
Points
1
ahh yeah that's what I was afriad of. Well, since I work in the government, I just picked up another one of the 100's of computers lying around that was a Windows PC. I think it will serve me fine until my mentor gets back. Silly government bureaucracy.....
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top