home dir executable (!/bin/sh,
chmod+x) shell scripts won't run without "sh <script>"
Jonathan Chen
jonc at chen.org.nz
Mon Jan 7 13:10:39 PST 2008
On Mon, Jan 07, 2008 at 01:21:46PM -0500, Robert Huff wrote:
> James Harrison writes:
>
> > One example that comes to mind is the CUPS port. It installs its
> > own version of the lpr binary in /usr/local/bin. However, there's
> > also an instance of lpr, the BSD version, in /usr/bin. So how do
> > you make sure you're using the CUPS version of the binary?
> >
> > The recommended way is a simple path edit, so that /usr/local/bin
> > appears before /usr/bin in the path. This way, your OS will use
> > the /usr/local/bin/lpr binary, leaving the system one untouched
> > and, if you ever want to revert to the system one you can simply
> > switch the path again. You can also accomplish a similar thing
> > with symlinks, but this is one useful idea for using the path.
>
> There's another way, though one with implications - add:
>
> CUPS_OVERWRITE_BASE= "yes"
>
> to /etc/make.conf.
Another alternative would be to remove the system binaries (and add
"NO_LPR=" to /etc/make.conf to prevent its reinstallation during a
build/installworld).
Cheers.
--
Jonathan Chen <jonc at chen.org.nz>
-----------------------------------------------------------------------
"I love deadlines. I like the whooshing sound they make as they fly by"
- Douglas Adams
More information about the freebsd-questions
mailing list