help on Sudo command

Discussion in 'macOS' started by cruizbugs, Jun 5, 2009.

  1. cruizbugs macrumors newbie

    Joined:
    Jun 5, 2009
    #1
    hi, I'm still a newbie on mac osX and currently working on project with gumstix which runs on Linux. (mostly on the command prompt)

    However, i tried to run it on my mac OS X instead on installing Ubuntu because i thought linux and mac run on the same UNIX ?

    so, i tried to follow these setup steps shown below:
    http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html

    i'm currently stuck at the point on source code caching:
    First we create a new group called oe and add your login account to the oe group. In the second command be sure to substitute your login user name where your_username is indicated.

    $ sudo groupadd oe
    $ sudo usermod -a -G oe your_username


    I can't get the sudo groupadd oe command working.
    I get these following error:

    Macintosh-2:gumstix christine-$ sudo groupadd oe
    sudo: groupadd: command not found


    can anyone help me to solve this problem ? I want to follow the setup steps properly, but this just seems getting nowhere for me.

    thanks.
     
  2. Peace macrumors P6

    Peace

    Joined:
    Apr 1, 2005
    Location:
    Space--The ONLY Frontier
    #2
    From your link :

    Your build machine should be running a fairly recent Linux distribution. The following distributions are known to work:

    Ubuntu 7.04, 7.10
    Fedora 6, 8
    Debian
    SuSe
    Gentoo
    Centos 5
    --------------

    Mac OS is Unix. you are working with a flavor of Linux which is not Unix.

    Type this in the terminal app : man sudo

    It will give you info on the sudo command under OSX.
     
  3. Guiyon macrumors 6502a

    Joined:
    Mar 19, 2008
    Location:
    North Shore, MA
    #3
    Mac OS X does not have the user* or group* commands. If you wish to add a new account you should create it through either the "Accounts" system preference pane or use the 'dscl' command (click here for more information).
     
  4. cruizbugs thread starter macrumors newbie

    Joined:
    Jun 5, 2009
    #4
    To Peace :

    So does it mean that I can not do the build on mac os ?
    So I must install Linux ( ubuntu ) on my macbook, musn't i ?
    I realized if i skip the Source caching part, I can't run the
    $ bitbake gumstix-basic-image
    too.

    To Guiyon :

    I checked the page already, thanks. It seems like I can't create a Group. only a user.

    Thanks for the help, guys.
     
  5. Guiyon macrumors 6502a

    Joined:
    Mar 19, 2008
    Location:
    North Shore, MA
    #5
    Groups are created in a similar way, only using '/groups' instead of '/Users'. You can use
    Code:
    dscl . read /groups/admin
    for example, to print out all of the attributes for the 'admin' group. If you are unsure about what you are doing it will be must easier just to add the user and group via the "Accounts" pane in the System Preferences.

    As for the 'bitbake' command, that is non-standard. You will need to compile it from the source if you want to use it.
     
  6. Peace macrumors P6

    Peace

    Joined:
    Apr 1, 2005
    Location:
    Space--The ONLY Frontier
    #6

    I wouldn't say you "can't" do it under OSX but I will say it would be a LOT easier using one of the supported flavors of Linux listed.
     

Share This Page