command line stuff!

Discussion in 'General Mac Discussion' started by CrackedButter, Jun 1, 2003.

  1. CrackedButter macrumors 68040

    CrackedButter

    Joined:
    Jan 15, 2003
    Location:
    51st State of America
    #1
    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.
     
  2. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #2
    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
     
  3. visor macrumors 6502

    Joined:
    May 13, 2003
    Location:
    in bed
    #3
    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
     
  4. CrackedButter thread starter macrumors 68040

    CrackedButter

    Joined:
    Jan 15, 2003
    Location:
    51st State of America
    #4
    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 ;)
     
  5. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #5
    that's not the problem. run the commands i listed above and report back.
     
  6. visor macrumors 6502

    Joined:
    May 13, 2003
    Location:
    in bed
    #6
    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.
     
  7. CrackedButter thread starter macrumors 68040

    CrackedButter

    Joined:
    Jan 15, 2003
    Location:
    51st State of America
    #7
    I am the admin now, thanks for reminding me of the command.

    I typed what you asked and i get "to many arguments"
     
  8. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #8
    ????

    i need to see the input & output.
     
  9. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #9
    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?
     
  10. CrackedButter thread starter macrumors 68040

    CrackedButter

    Joined:
    Jan 15, 2003
    Location:
    51st State of America
    #10
    "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.
     
  11. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #11
    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.
     
  12. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #12
    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"?
     
  13. CrackedButter thread starter macrumors 68040

    CrackedButter

    Joined:
    Jan 15, 2003
    Location:
    51st State of America
    #13
    okay i will run the cd to make sure, i'll continue this tomorrow thanks alot for your help.
     
  14. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #14
    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.
     
  15. visor macrumors 6502

    Joined:
    May 13, 2003
    Location:
    in bed
    #15
    depends on the quality of the makefile. And the presence of all shared libs....
    and the path...
    oh well ;)
     
  16. maradong macrumors 65816

    maradong

    Joined:
    Mar 7, 2003
    Location:
    Luxembourg
    #16
    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
     
  17. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #17
    yeah, there are a lot of things that can go wrong. having a lot of unix experience is sometimes necessary.
     
  18. rainman::|:| macrumors 603

    rainman::|:|

    Joined:
    Feb 2, 2002
    Location:
    iowa
    #18
    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
     
  19. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #19
    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...)
     
  20. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #20
    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.
     
  21. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #21
    splat, pound, bang and tick are what i call those.
     
  22. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #22
    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.
     
  23. zimv20 macrumors 601

    zimv20

    Joined:
    Jul 18, 2002
    Location:
    toronto
    #23
    many of those terms i also use, but that one is definitely a pipe!

    mmmm... unix....
     
  24. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #24
    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.
     
  25. mmmdreg macrumors 65816

    mmmdreg

    Joined:
    Apr 14, 2002
    Location:
    Sydney, Australia
    #25
    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?
     

Share This Page