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

CrackedButter

macrumors 68040
Original poster
Jan 15, 2003
3,221
0
51st State of America
I'm trying to install a peice of software via the terminal but i'm hitting a snag which is restricting me. It seems i am being denied to do things on my own system and i cannot understand why when i have (i think) changed permissions for myself so i can perform simple command line instructions.

The program is called "Throttled", its folder is called "throttled-source" and its inside this folder on my system: /Users/johnjkmorris/Desktop/To\ Save/Downloaded/throttled-source

One i am inside that folder (dragging the folder to the terminal) i then type "make" as per the instructions in the read me file.

As explained here:"Configuring and installing throttled -

1. cd to the directory containing throttled in the terminal
2. type "make"
3. type "sudo make install"


But whenever i type "make" i get "Permission denied", i cannot understand why and that is the problem, i'm not asking for help on the installation of the program i merely want permission to install it.

I have tried looking in my "Mac OS X The Missing Manual" manuals index for admin settings and privledges and made some changes, i gave myself Read & Write access but i still get this permission denied feedback.
 
do this and report back

% which make
% ls -als `which make`

if the result is something like

Code:
8 lrwxr-xr-x  1 root  wheel  7 May 14 17:41 /usr/bin/make@ -> gnumake

then also do

% ls -als /usr/bin/gnumake
 
sudo needs an admistrator account

just in case you don't know.

so if you don't see an 'admin' next to your name in the user preferences, you won't be able to run sudo.

also make sure you are the same user that unpacked the archive, and that you are actually in the directory that contains the Makefile
 
Hey i installed this OS my this iBook and only i use it, how do i get admin rights?

In linux you could type a four letter word then password to verify you were the admin while being in user mode.

Can you not do this in OSX.
(i forgot the four letter word) btw ;)
 
Originally posted by CrackedButter
Hey i installed this OS my this iBook and only i use it, how do i get admin rights?

that's not the problem. run the commands i listed above and report back.
 
No problem, if you are the only user you'll be the admin by default.

if you need root priveleges, you can type

sudo su
enter your user password

you should then be root. if your passwd isn't accepted you're no admin after all... go and find your admin to give you the priveleges ;)
(in other words, you're doomed)

you usually can't login as root, for the root account is disabled by default.

what you have to do to enable it, is go to the netinfomgr, and enable the root login. Don't mess about to much with netinfo - that can really mess up your system if you don't know how to use it.
 
Originally posted by CrackedButter
I am the admin now, thanks for reminding me of the command.

I typed what you asked and i get "to many arguments"
Maybe you didn't spot the backquotes in the command suggested by zimv20. Try it one command at a time. What response did "which make" produce?
 
Originally posted by CrackedButter
"which make" gave me "Command not found"

as did "Is" and "-als"

i'm still new to the command line btw so i don't know nearly enough as much as i should.

it's ls (ell-ess)

works better if you cut/paste from my post.

have you installed the developer tools from that grey CD included w/ jaguar? you need that to run make, iirc.
 
To determine why you are getting "Command not found", I suggest typing these two commands and telling us the results:

echo $SHELL
echo $PATH


zimv20: Remember the old saying "Too many cooks spoil the broth?" I don't want to make things more confusing by stepping on your toes while you are helping CrackedButter. Should I continue to make suggestions and ask questions or should I shut up and stop "helping"?
 
Originally posted by zimv20
it's ls (ell-ess)

works better if you cut/paste from my post.

have you installed the developer tools from that grey CD included w/ jaguar? you need that to run make, iirc.

okay i will run the cd to make sure, i'll continue this tomorrow thanks alot for your help.
 
Originally posted by Doctor Q

zimv20: Remember the old saying "Too many cooks spoil the broth?" I don't want to make things more confusing

no worries. good call on the PATH.

i'm wondering how much success one can expect from building something command line if they don't know the 'ls' command.
 
Originally posted by zimv20
i'm wondering how much success one can expect from building something command line if they don't know the 'ls' command.

depends on the quality of the makefile. And the presence of all shared libs....
and the path...
oh well ;)
 
dude, when using sudo, the second command is executed with normal user rights.
use :
su [enter]
enter the password , and do everything in the root mode.
to logoff from root mode just press ctrl-d
 
Originally posted by visor
depends on the quality of the makefile. And the presence of all shared libs....
and the path...
oh well ;)

yeah, there are a lot of things that can go wrong. having a lot of unix experience is sometimes necessary.
 
i think the problem here is that the user doesn't realize the structure and syntax of commands. i'll bet we're talking typos and incorrect characters here.

but yes, one does need to be familiar with the terminal and basic commands to use command line utilities. it's just common sense...

pnw
 
Originally posted by paulwhannel
i'll bet we're talking typos and incorrect characters here.

very likely.

hey crackedbutter, make sure you cut/paste the commands from our posts, then _please_ cut/paste (from you own terminal window) what you fed to the shell and the output of the commands.

otherwise, it'll be next to impossible to help you. (unless you want to give me ssh access to your machine...)
 
On a few occasions, I've talked a Unix beginner through a command-line operation over the phone. I say to type "ls -l" and he/she types "ellis-L". Some people type "\" when you say to type a slash (the effect of Windows misconditioning). Not everyone agrees on the English names for characters like * and # and ! and ', which adds to the fun. We always get through it eventually, but it might take many minutes to get through a command like this:

find ~ -name '*.doc' -print

At least here we can type examples and use cut and paste.
 
Originally posted by Doctor Q
Not everyone agrees on the English names for characters like * and # and ! and ', which adds to the fun.

splat, pound, bang and tick are what i call those.
 
Originally posted by Doctor Q
Not everyone agrees on the English names for characters like * and # and ! and '
Originally posted by zimv20
splat, pound, bang and tick are what i call those.
Well, that proves my point! I call them star, hash, bang, and single quote! I also say

~ squiggle (not tilde)
` back quote (not back tick)
@ at (not at-sign)
^ caret (not circumflex)
& and or ampersand
- minus (in programming); dash (in the shell)
_ underbar (not underline)
| or-bar (not bar or vertical bar)
. dot (not period)
[] brackets
{} braces (not curly brackets)
<> less-than greater-than (not angle brackets)

But maybe that's just my California accent.
 
You are right. I say "pipe" when I used | as a pipe. I say "or bar" when it's in a shell script or C program where it really is ORing. So put that in your OR-BAR and smoke it.
 
I don't know how much you know, but you did type "cd " before you dragged the folder to the terminal right? and then you did press return right?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.