You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

zsh: command not found?

I've had some issues getting terminal to work after some problems a while back. You can read more on my issues in this post.

http://discussions.apple.com/thread.jspa?messageID=3905356?


The error message is "zsh: command not found: wget" What does this mean?

I've been unable to dig up any information online about the error message I get when attempting to use fink and wget. What has happened and how can I fix it?

I'm attempting to use wget and I know it has been installed properly but I'm not able to start it. What should I do to fix this problem?

iBook G4, Mac OS X (10.4.8)

Posted on Feb 6, 2007 11:31 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 7, 2007 2:48 AM

>The error message is "zsh: command not found: wget" What does this mean?

It means you tried to run wget, but the shell doesn't know where this program is.

I'm attempting to use wget and I know it has been installed properly

You're sure it's been installed? It isn't installed as part of the standard OS distribution. It sounds like you're using Fink.

Fink normally installs fines in /sw/bin, but the OS won't look there unless you tell it to, so you either need to call wget by specifying the entire path:

<pre class=command>/sw/bin/wget</pre>

or edit your shell to include the Fink directories in your $PATH
14 replies
Question marked as Top-ranking reply

Feb 7, 2007 2:48 AM in response to Todd Ward

>The error message is "zsh: command not found: wget" What does this mean?

It means you tried to run wget, but the shell doesn't know where this program is.

I'm attempting to use wget and I know it has been installed properly

You're sure it's been installed? It isn't installed as part of the standard OS distribution. It sounds like you're using Fink.

Fink normally installs fines in /sw/bin, but the OS won't look there unless you tell it to, so you either need to call wget by specifying the entire path:

<pre class=command>/sw/bin/wget</pre>

or edit your shell to include the Fink directories in your $PATH

Feb 7, 2007 10:33 AM in response to Camelot

rvr32nbar121% /sw/bin/wget
zsh: no such file or directory: /sw/bin/wget

I tried to specify the path as you suggested but sadly it doesn't look like it worked.

I did attempt to use fink but I never got that to work after I followed some of the suggestions in the previous thread. I just downloaded wget again and copied the files to the specific directories.

Feb 7, 2007 12:26 PM in response to Todd Ward

Hi,

obviously wget is neither in your PATH nor in /sw/bin.
If you do not know, where it is installed you first have to search for it.
On way to do so ist to use the locate command, which depends on the whatis datatbase. You can execute these commands to find your wget binary:

sudo /usr/libexec/makewhatis
locate wget | grep wget$


HTH
Regrads
martin

iMac 20'' (Intel), G4 Sawtooth, iBook G4 800 Mac OS X (10.4.8)

Feb 7, 2007 9:43 PM in response to macmartin

MackinTodd% sudo /usr/libexec/makewhatis
makewhatis: /usr/share/man/man1/tor-resolve.1: No such file or directory
makewhatis: /usr/share/man/man1/tor.1: No such file or directory
makewhatis: /usr/share/man/man1/torify.1: No such file or directory
MackinTodd% locate wget | grep wget$
/Applications/Accessories/Apps/DeepVacuum.app/Contents/Resources/wget
/Applications/Accessories/wget
/usr/local/bin/wget
/usr/share/zsh/4.2.3/functions/_wget
MackinTodd%

Feb 8, 2007 4:53 AM in response to Todd Ward

/usr/local/bin/wget


This is the wget you are searching for. You can run it by typing

/usr/local/bin/wget options

Or add the following line to your .zshrc

export PATH="/usr/local/bin:$PATH"

then close the current zsh and start a new zsh.
Now you can run wget just by typing

wget options

Can curl do that?


No, curl can't do recursive download (wget -r).

PowerMacG4, PowerBookG4, iMac(C2D) Mac OS X (10.4.8)

Feb 10, 2007 10:01 PM in response to Jun T.

Or add the following line to your .zshrc

export PATH="/usr/local/bin:$PATH"

then close the current zsh and start a new zsh.



I've been able to follow most of the talk here but I guess I'm just confused on what zsh is. Could you explain this a little bit further?


I'm curious how I even messed up terminal so much that I'm not able to just type in wget anymore. What would cause all these problems? I'm incredibly new in using terminal but I'm very interested to learn more. Thanks for your help.

Feb 10, 2007 10:34 PM in response to Todd Ward

There are four unix shells that come with OS X. One of them is zsh. In 10.3 and 10.4, the default shell is bash. Prior to that it was tcsh. (ksh is also present).

Is it possible that you used to use bash and switched somehow to zsh?

If you want to switch to bash, just issue


chsh -s /bin/bash

If you want to switch to tcsh, just issue


chsh -s /bin/tcsh

If you are ok using zsh, then you want to make sure that you have zsh configured the way you want to. We can help you do that too, (or help with whichever shell you are most comfortable using).

If you installed wget with fink, you just need to issue the command

/sw/bin/init.sh

if you are using bash or zsh, and issue

/sw/bin/init.csh

if you are using tcsh.

If you installed wget into /usr/local/bin, then you need to add that to your $PATH.

zsh: command not found?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.