newly installed apps not in path?
Mike Jeays
mj001 at rogers.com
Mon May 15 13:51:54 PDT 2006
On Mon, 2006-05-15 at 13:36 -0700, Atom Powers wrote:
> I've noticed this behavior since 4.3, but it's just now starting to
> get really annoying.
>
> Whan I install a new application (from ports) I have to execute it
> with the full path until I start a new shell. (in sh, tcsh, and bash)
>
> What causes this behavior, and how can I fix it (cause newly installed
> apps to be executable without a full path)?
>
> ----
> DIT793# which sudo
> sudo: Command not found.
> DIT793# portinstall sudo
> ...
> DIT793# ll /usr/local/bin/sudo
> ---s--x--x 2 root wheel 89020 May 15 13:31 /usr/local/bin/sudo
> DIT793# which sudo
> sudo: Command not found.
> DIT793# tcsh
> DIT793# which sudo
> /usr/local/bin/sudo
> DIT793# exit
> exit
> DIT793# which sudo
> sudo: Command not found.
>
>
For csh and tcsh, I beleive you have to issue a 'rehash' command after
modifying the libraries in $PATH. I would not have expected to see this
problem with bash, however.
--
Mike Jeays
http://ca.geocities.com/mike.jeays@rogers.com
More information about the freebsd-questions
mailing list