# Gem install specific version

**URL:** <https://www.ruby-forum.com/t/gem-install-specific-version/103669>\
**Category:** Ruby\
**Created:** [May 9, 2007, 2:31am UTC](https://www.ruby-forum.com/t/gem-install-specific-version/103669 "2007-05-09T02:31:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [May 9, 2007, 2:31am UTC](https://www.ruby-forum.com/t/gem-install-specific-version/103669/1 "2007-05-09T02:31:17Z")

</div>

I know that I can do:

gem install --version ‘\> 0.3.2’ packagename

but what if there is a “mswin” and a “ruby” version? Any way to get  
it to pick the right one?

Mike B.

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [May 9, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/gem-install-specific-version/103669/2 "2007-05-09T22:41:50Z")

</div>

On 5/8/07, barjunk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I know that I can do:
> 
> gem install --version ‘\> 0.3.2’ packagename
> 
> but what if there is a “mswin” and a “ruby” version? Any way to get  
> it to pick the right one?

Not that I know of, but there’s been quite a bit of discussion of late  
on the rubygems list on getting gem to recognize different platforms  
and do away with the need to select mswin vs. ruby vs. new platforms  
like jruby.

It seems to have the attention of the gems developers. I for one will  
welcome this when they implement it.

–  
Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [May 10, 2007, 5:20am UTC](https://www.ruby-forum.com/t/gem-install-specific-version/103669/3 "2007-05-10T05:20:21Z")

</div>

I second that. There is plenty of information about the system  
available to software.

---

<div class="post-metadata">

**Author:** ![barjunk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Post date:** [May 11, 2007, 3:06am UTC](https://www.ruby-forum.com/t/gem-install-specific-version/103669/4 "2007-05-11T03:06:55Z")

</div>

On May 8, 8:29 pm, barjunk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I know that I can do:
> 
> gem install --version ‘\> 0.3.2’ packagename
> 
> but what if there is a “mswin” and a “ruby” version? Any way to get  
> it to pick the right one?
> 
> Mike B.

yes, vial gem install. For example:

C:\Documents and Settings\Owner\>gem install ruby-debug-base  
Select which gem to install for your platform (i386-mswin32)

1. ruby-debug-base 0.9.3 (ruby)
2. ruby-debug-base 0.9.3 (mswin32)
3. ruby-debug-base 0.9.2 (mswin32)
4. ruby-debug-base 0.9.2 (ruby)
5. Skip this gem
6. Cancel installation

> 2

Have you tried? gem install --version ‘= 0.3.2 (mswin32)’ packagename

I normally use the first example …
