Question
I'm having the 'search returns nothing' problem that is a result of using the default e/fgrep calls found in configure.
The only available grep routines (grep, egrep, fgrep) are the ones that come with Solaris, they are not GNU. So my searches come up empty.
Is there a way to get searches to work with the greps available? I've tried to decipher the calls in TWiki's default configuration for the greps, but have not been successful. Can they be tranlated to work with what's available?
- this is an independent network
- no WWW
- bringing in more software is not an option
- bringing TWiki in took a LOT of work
- and oh how I wish the sys reqs had mentioned the need for GNU greps
Thanks!
Environment
--
DavidMacy - 11 Sep 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Good point about documenting the
GNU grep tools in
TWikiSystemRequirements, I'll do that.
You might be able to use the Soaris fgrep and egrep. For reference, here are the
LocalSite.cfg settings of twiki.org, which is running Solaris with non-GNU grep tools:
{RCS}{EgrepCmd} :
/bin/egrep %CS{|-i}% %DET{|-l}% -- %TOKEN|U% %FILES|F%
{RCS}{FgrepCmd} :
/bin/fgrep %CS{|-i}% %DET{|-l}% -- %TOKEN|U% %FILES|F%
Check what parameters are supported on your egrep and fgrep commands and tweak the settings in configure.
--
PeterThoeny - 11 Sep 2006
Thanks Peter!
The removal of the "-H" got the searches to work.
There's still an illegal flag notice on the config page.
I'll try to work it out (and report back if successful), but having it working it a huge relief.
--
DavidMacy - 12 Sep 2006
You can ignore the error message in configure, I get the same on twiki.org but search works just fine.
--
PeterThoeny - 12 Sep 2006
On Solaris 10 you will not have to settle for the Sun version of grep tools as both Sun's version and GNU version are available by default. See description in
SolarisInstallCookbook. I haven't checked but maybe this was even the case in Solaris9 also ??
--
LarsBruunxHansen - 21 Dec 2006