Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 00:50:16 +0200
From:      Danny Pansters <danny@ricin.com>
To:        freebsd-questions@freebsd.org
Cc:        Atom Powers <atom.powers@gmail.com>
Subject:   Re: newly installed apps not in path?
Message-ID:  <200605160050.17110.danny@ricin.com>
In-Reply-To: <df9ac37c0605151336o51584ba6l7a694f0491926c80@mail.gmail.com>
References:  <df9ac37c0605151336o51584ba6l7a694f0491926c80@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 15 May 2006 22:36, 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)?

If you're using the [t]csh shell, you need to run 'rehash' to update your 
current path. It would be good if the post-everything part of ports would do 
that when needed.

Dan.

>
> ----
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605160050.17110.danny>