# \[ANN\] whichr (windows friendly which written in ruby) 0.3.5

**URL:** <https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622>\
**Category:** Ruby\
**Created:** [December 23, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622 "2009-12-23T19:09:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [December 23, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622/1 "2009-12-23T19:09:29Z")

</div>

I am pleased to announce release 0.3.5 of the “whichr” gem.

Its purpose: to be a user friendly which command for windows.

New stuffs:

now outputs faster (“as it finds the files”)  
now shows platform appropriate path separator right ['s on windows]  
now has a “-a” command, to show all files (executable and non  
executable)  
ex:

C:\> whichr abc\* -a # looks for any file in the path named abc\*

Installation:  
gem install whichr

Bugs:  
Currently doze only [ask if you want this for Linux].

More info:  
[GitHub - rdp/whichr: A 'which' command written entirely in Ruby--windows friendly [searches for .bat files, etc. appropriately]](http://github.com/rdp/whichr)

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [December 24, 2009, 5:21am UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622/2 "2009-12-24T05:21:31Z")

</div>

Roger P. wrote:

> I am pleased to announce release 0.3.5 of the “whichr” gem.
> 
> Its purpose: to be a user friendly which command for windows.
> 
> New stuffs:
> 
> now outputs faster (“as it finds the files”)  
> now shows platform appropriate path separator right ['s on windows]  
> now has a “-a” command, to show all files (executable and non  
> executable)  
> ex:
> 
> C:\> whichr abc\* -a # looks for any file in the path named abc\*
> 
> Installation:  
> gem install whichr
> 
> Bugs:  
> Currently doze only [ask if you want this for Linux].
> 
> More info:  
> [GitHub - rdp/whichr: A 'which' command written entirely in Ruby--windows friendly [searches for .bat files, etc. appropriately]](http://github.com/rdp/whichr)

I am running Windows XP Pro SP3+, Ruby 1.8.6.

When trying to install ‘whichr’ I get the following:

C:\Docume~1\skrivsm\>gem install --remote whichr  
ERROR: Error installing whichr:  
sane requires os (\>= 0, runtime)

I was able to install ‘gem-sane-binary’ but get a similar error when  
trying to install ‘sane’:

C:\Docume~1\skrivsm\>gem install --remote sane  
ERROR: Error installing sane:  
sane requires os (\>= 0, runtime)

I was able to install ‘rogerdpack-sane’. Subsequently trying to install  
‘whichr’ results in the same ‘requires os …’ error.

Suggestions?

Thanks,

Shawn

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [December 25, 2009, 12:23am UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622/3 "2009-12-25T00:23:15Z")

</div>

> C:\Docume~1\skrivsm\>gem install --remote whichr  
> ERROR: Error installing whichr:  
> sane requires os (\>= 0, runtime)

yeah this is some odd error with rubygems.  
Try doing a “gem install os” then “gem install whichr” and report back  
🙂  
-r

> I was able to install ‘gem-sane-binary’ but get a similar error when  
> trying to install ‘sane’:

what do you mean by “gem-sane-binary”?

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [December 26, 2009, 8:52pm UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622/4 "2009-12-26T20:52:41Z")

</div>

Roger P. wrote:

> > C:\Docume~1\skrivsm\>gem install --remote whichr  
> > ERROR: Error installing whichr:  
> > sane requires os (\>= 0, runtime)
> 
> yeah this is some odd error with rubygems.  
> Try doing a “gem install os” then “gem install whichr” and report back  
> 🙂  
> -r
> 
> > I was able to install ‘gem-sane-binary’ but get a similar error when  
> > trying to install ‘sane’:
> 
> what do you mean by “gem-sane-binary”?

C:\Users\skrivsm\>gem search --remote sane

\*\*\* REMOTE GEMS \*\*\*

gem-sane-binary (0.1.1)  
rogerdpack-sane (0.2.0, 0.1.9, 0.1.8, 0.1.7)  
sane (0.17.0)

C:\Users\skrivsm\>gem sources  
\*\*\* CURRENT SOURCES \*\*\*

[http://gemcutter.org/](http://gemcutter.org/)  
[http://gems.github.com](http://gems.github.com)  
[http://gems.rubyforge.org/](http://gems.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [December 27, 2009, 1:58am UTC](https://www.ruby-forum.com/t/ann-whichr-windows-friendly-which-written-in-ruby-0-3-5/180622/5 "2009-12-27T01:58:33Z")

</div>

> > what do you mean by “gem-sane-binary”?
> 
> C:\Users\skrivsm\>gem search --remote sane
> 
> \*\*\* REMOTE GEMS \*\*\*
> 
> gem-sane-binary (0.1.1)  
> rogerdpack-sane (0.2.0, 0.1.9, 0.1.8, 0.1.7)  
> sane (0.17.0)

gotcha.  
Yeah that one’s not related 🙂  
-r
