How do I check what version of Ruby I have, besides ruby -v? I’m trying
to figure out what version of 1.8.6 I have.
On Thu, Jul 3, 2008 at 11:52 AM, Pål Bergström [email protected] wrote:
How do I check what version of Ruby I have, besides ruby -v? I’m trying
to figure out what version of 1.8.6 I have.
On a command line type
ruby --version
~Jay
Jayson W. wrote:
On Thu, Jul 3, 2008 at 11:52 AM, P�l Bergstr�m [email protected] wrote:
On a command line type
ruby --version~Jay
The same as ruby -v. I get “ruby 1.8.6 (2007-03-13 patchlevel 0)
[i686-darwin8.9.1]”. How do I know what version of 1.8.6 I have? At
ruby-lang.org I see that they mention “Please upgrade to 1.8.5-p231”.
How do I check that?
On Thu, Jul 3, 2008 at 12:35 PM, Pål Bergström [email protected] wrote:
The same as ruby -v. I get “ruby 1.8.6 (2007-03-13 patchlevel 0)
[i686-darwin8.9.1]”. How do I know what version of 1.8.6 I have? At
ruby-lang.org I see that they mention “Please upgrade to 1.8.5-p231”.
How do I check that?
I think you have all the info you need. That “patchlevel” bit in
parens correlates to the p231 you saw on ruby-lang.org. You have
version 1.8.6-p0. My ruby -v reports 1.8.6 (2007-09-24 patchlevel 111)
that would be version 1.8.6-p111
~jay
You also can use the following Ruby variables:
RUBY_FRAMEWORK_VERSION RUBY_PATCHLEVEL RUBY_PLATFORM
RUBY_RELEASE_DATE RUBY_VERSION RUBY_FRAMEWORK
HTH,
-Dana