Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    sudo: ports: command not found
    right im starting to play now :p

    installed XCode and then installed darwinports

    follwed the instructions here and then did a

    sudo ports install gaim

    and it gave me that the command wasnt found!? Any ideas as to why anyone

  2. #2
    Kokopelli
    Guest
    "sudo ports" or did you mean "sudo port"

  3. #3

    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    The SUDO command:
    sudo - execute a command as another user

    SYNOPSIS
    sudo -V | -h | -l | -L | -v | -k | -K | -s | [ -H ] [-P ] [-S ] [ -b ]
    | [ -p prompt ] [ -c class|- ] [ -a auth_type ] [ -u username|#uid ]
    command

    DESCRIPTION
    sudo allows a permitted user to execute a command as the superuser or
    another user, as specified in the sudoers file. The real and effective
    uid and gid are set to match those of the target user as specified in
    the passwd file (the group vector is also initialized when the target
    user is not root). By default, sudo requires that users authenticate
    themselves with a password (NOTE: by default this is the user's pass-
    word, not the root password). Once a user has been authenticated, a
    timestamp is updated and the user may then use sudo without a password
    for a short period of time (5 minutes unless overridden in sudoers).

    sudo determines who is an authorized user by consulting the file
    /etc/sudoers. By giving sudo the -v flag a user can update the time

  4. #4

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,561
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    It's sudo port...no s on the end.
    Delusions are often functional. A mother’s opinions about her children’s beauty, intelligence, goodness, et cetera ad nauseam, keep her from drowning them at birth.
    -Lazarus Long

  5. #5

    MacAddikt's Avatar
    Member Since
    Dec 30, 2002
    Location
    Sunny So Cal
    Posts
    2,118
    Specs:
    G5•2x1.8•1.5•320•8x+/-
    yes. always consult man page before copy/pasting something in the terminal you found online.

  6. #6

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    thanks for that but even using port dont work still get command not found

  7. #7

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    My guess the port command is not in your path.

    Try the folllowing: sudo ./port install gaim

    That is asuming you are sitting where you installed the software.

    THe next question is did you have a problem with the xcode install or the darwinports install?
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  8. #8

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    /darwinports is the directory that im in and i tried the sudo ./port install gaim
    tried the same in the /darwinports/dports folder but i then get
    ./port command not found

    only problem i say when installing was X11 not found as it was running the make part of the install

  9. #9

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    I am assuming the you are trying to run a command called port and the system does not know where the command is located.

    Try the following to see if you can locate the command.

    sudo find / -name port -exec ls -l {} \;

    Enter the above line jet as it is. Hopefully, it will locate the command. If it does not, then it is not on your system.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  10. #10

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    -r-xr-xr-x 1 root admin 23191 27 Apr 23:43 /opt/local/bin/port
    total 168
    drwxr-xr-x 6 matthewa matthewa 204 27 Apr 23:37 CVS
    -rw-r--r-- 1 matthewa matthewa 926 17 Dec 02:07 Makefile
    -rw-r--r-- 1 matthewa matthewa 23191 27 Apr 23:43 port
    -rw-r--r-- 1 matthewa matthewa 7175 21 Mar 19:38 port.1
    -rwxr-xr-x 1 matthewa matthewa 23189 20 Apr 04:53 port.tcl
    -rw-r--r-- 1 matthewa matthewa 2661 27 Apr 23:43 portall
    -rwxr-xr-x 1 matthewa matthewa 2659 29 Mar 10:00 portall.tcl
    -rw-r--r-- 1 matthewa matthewa 4893 27 Apr 23:43 portindex
    -rwxr-xr-x 1 matthewa matthewa 4891 29 Mar 10:00 portindex.tcl
    -rw-r--r-- 1 matthewa matthewa 23191 27 Apr 23:43 /Users/matthewayres/darwinports/base/src/port/port


    is what it gives so that means that its installed yes?

  11. #11

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    Now that you know it is installed, do the following:

    sudo /opt/local/bin/port install gaim
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  12. #12

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    Thanks rman that worked a treat

    can i set that path as an alias now like i can in linux?
    If so is it the same and where is the location of the file to do it?

  13. #13

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    I don't know about the tcsh (trusted shell), but I know you can in csh (c shell) and ksh (kron shell). I believe the file that you want to create is the .tcshrc

    Below is an example, I found my googling .tcshrc.

    Modifying your .tcshrc file
    The following is an example .tcshrc file. The most up-to-date version is located in /usr/local/tcsh as tcsh.cshrc.

    set prompt="%S %m %/ %s%% "
    set path = ( . /usr/local/bin /usr/local/lang /usr/local/X11/bin /usr/ucb /usr/bin /usr/etc /usr/openwin/bin /usr/local/wp/wpbin $path)
    set history=50
    set savehist
    setenv MANPATH /usr/local/man:/usr/man:/usr/local/X11/man:/usr/local/pbmplus/man:/usr/local/lang/man:/usr/local/tex/man:/usr/local/gmt/man:/usr/local/hdf/man:/usr/local/mathematica/Documents/man:/usr/local/netcdf/man:/usr/local/ncar/man:/usr/local/splus/man:/usr/local/mathematica/man:/usr/local/lotus/man
    setenv TEXINPUTS .:/usr/local/tex/inputs
    setenv LD_LIBRARY_PATH /usr/lib:/usr/local/X11/lib:/usr/local/lang/SC1.0
    umask 022
    limit coredumpsize 0
    #
    #
    # setting your editor, uncomment one of these pairs
    #
    #setenv EDITOR emacs
    #setenv VISUAL emacs
    #setenv EDITOR vi
    #setenv VISUAL vi
    #
    # setting your pager, uncomment one of these
    #
    #setenv PAGER less
    #setenv PAGER more
    #
    # setting your printer, use the PRINTER and LASER environment variables
    # in the following you will need to add the printer name
    #
    # current printers are: nautilus, discovery, garth, wayne (letterhead), and
    # aurora (not postscript)
    #
    #setenv PRINTER
    #setenv LASER

    # if you use any of the following uncomment
    #source /usr/local/Standards/gmt
    #source /usr/local/Standards/hdf
    #source /usr/local/Standards/idl
    #source /usr/local/Standards/imsl
    #source /usr/local/Standards/ncar
    #source /usr/local/Standards/pbmplus
    #source /usr/local/Standards/nodctools
    #source /usr/local/Standards/netcdf
    #source /usr/local/Standards/lterSetUp
    #source /usr/local/Standards/mathematica

    # if you want to put customizations put them in a separate file and source
    # it here.
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

  14. #14

    inflexion's Avatar
    Member Since
    Jan 12, 2005
    Location
    /home/sheffield/UK
    Posts
    1,278
    Specs:
    12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle
    hmm you know what i dont play with shells so i think ill leave it untill i get Tiger and hope that it behaves :p

  15. #15


    Member Since
    Jun 02, 2012
    Posts
    8
    Specs:
    Macbook mid 2007 10.6.3
    what does this mean?

    /etc/sudoers ls mode 0664 should be 0440
    Segmentation fault

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Help Undoing Sudo Command
    By sonic123 in forum OS X - Operating System
    Replies: 4
    Last Post: 10-28-2014, 10:46 AM
  2. Auto Type password for sudo command from crontab
    By aceofsplades in forum OS X - Operating System
    Replies: 1
    Last Post: 09-19-2014, 10:59 PM
  3. sudo command has a problem
    By nan.piyawan in forum OS X - Operating System
    Replies: 10
    Last Post: 11-22-2011, 05:15 AM
  4. Running sudo command as _www user
    By jamessw in forum OS X - Operating System
    Replies: 3
    Last Post: 03-18-2010, 02:43 PM
  5. Need help!! how do I enter the command sudo port -v selfupdate?
    By madmaster420 in forum OS X - Operating System
    Replies: 1
    Last Post: 09-09-2008, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •