New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

sudo: ports: command not found


Post Reply New Thread Subscribe

 
Thread Tools
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
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
QUOTE Thanks
Kokopelli
Guest
 
Posts: n/a

"sudo ports" or did you mean "sudo port"
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
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
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,462
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 13in macbook - 10.10.1

cradom is offline
It's sudo port...no s on the end.

Craig Domingue - resident redneck.
“Never argue with an idiot. He will only bring you down to his level and beat you with experience.”, George Carlin
QUOTE Thanks
MacAddikt

 
MacAddikt's Avatar
 
Member Since: Dec 30, 2002
Location: Sunny So Cal
Posts: 2,118
MacAddikt is a glorious beacon of lightMacAddikt is a glorious beacon of lightMacAddikt is a glorious beacon of lightMacAddikt is a glorious beacon of lightMacAddikt is a glorious beacon of lightMacAddikt is a glorious beacon of light
Mac Specs: G5•2x1.8•1.5•320•8x+/-

MacAddikt is offline
yes. always consult man page before copy/pasting something in the terminal you found online.

QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
thanks for that but even using port dont work still get command not found
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
/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
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
-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?
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
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?
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks
inflexion

 
inflexion's Avatar
 
Member Since: Jan 12, 2005
Location: /home/sheffield/UK
Posts: 1,278
inflexion will become famous soon enough
Mac Specs: 12" 1Ghz PB 768Mb 10.4.5 30Gb Video iPod 40Gb 3G iPod 1Gb iPod Shuffle

inflexion is offline
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
QUOTE Thanks
jules24

 
Member Since: Jun 02, 2012
Posts: 8
jules24 is on a distinguished road
Mac Specs: Macbook mid 2007 10.6.3

jules24 is offline
what does this mean?

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

Post Reply New Thread Subscribe


« Programming and coding for beginners | Xcode 4: Add Build Carbon Resources Build Phase »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 03:46 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?