[jruby] rvm install issues followup and solution

Keith Bennett keithrbennett at gmail.com
Sun Jul 26 01:24:15 JST 2015


Kimberley -

Great work!  Using that I can continue to use the stable version of rvm.

Thanks!

- Keith


On Fri, Jul 24, 2015 at 12:54 AM, Kimberley Scott <kimberley.r.scott at mac.com
> wrote:

> Hiya,
>
> Ahaha!
>
> For others who are having difficulty after installing pre1, rc1, rc2 via
> rvm!
>
> After mucking about with rvm --debug and --trace commands I found this
> wonderful thing in the output:
>
> --- snip ---
> + 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  12 > [[ -z jruby-9\.0\.0\.0.* ]]
>
> #Ed: This looks interesting...
> ++ 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  -221 > command cat
> /Users/kimberleyscott/.rvm/config/known_strings
>
>
> ++ 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  -219 > __rvm_version_sort
> ++ 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  -218 > __rvm_tail -n 1
>
> #Ed: Notice the regex
> ++ 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  -220 > __rvm_grep 'jruby-9\.0\.0\.0.*'
>
> ++ 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  -463 > cat
> /Users/kimberleyscott/.rvm/config/known_strings
> ++ 1437712726.N /scripts/functions/support : __rvm_tail()  0 > tail -n 1
> ++ 1437712726.N /scripts/functions/utility : __rvm_version_sort()  1 >
> LC_ALL=C
> ++ 1437712726.N /scripts/functions/support : __rvm_grep()  0 >
> GREP_OPTIONS=
> ++ 1437712726.N /scripts/functions/utility : __rvm_version_sort()  1 >
> command sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n
> ++ 1437712726.N /scripts/functions/support : __rvm_grep()  0 > command
> grep 'jruby-9\.0\.0\.0.*'
> ++ 1437712726.N /scripts/functions/utility : __rvm_version_sort()  -167 >
> sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n
> ++ 1437712726.N /scripts/functions/support : __rvm_grep()  -260 > grep
> 'jruby-9\.0\.0\.0.*'
>
> # Ed: and here is the result:
> + 1437712726.N /scripts/functions/selector_parse :
> __rvm_ruby_string_latest()  20 > new_ruby_string=jruby-9.0.0.0.pre1
>
> --- snip ---
>
> Well... "~/.rvm/config/known_strings" looks like an interesting file
> doesn't it?
>
> And lo and behold, I can now see how the rvm script decided on pre1.
> so I changed this:
>
> --- snip ---
> # this strings are matched only when partial version was provided
> jruby-1.7.19
> jruby-9.0.0.0.pre1
> --- snip ---
>
> to this:
>
> --- snip ---
> # this strings are matched only when partial version was provided
> jruby-1.7.19
> #jruby-9.0.0.0.pre1 - commented for safety
> jruby-9.0.0.0
> --- snip ---
>
> And did a fresh rvm --debug install jruby-9.0.0.0
> Loads of green and purple output.
> But wayhey! Installed.
>
> rum now shows it installed:
>
> --- snip ---
> rvm rubies
>
>  * jruby-1.7.19 [ x86_64 ]
>    jruby-1.7.20 [ x86_64 ]
>    jruby-1.7.21 [ x86_64 ]
> => jruby-9.0.0.0 [ x86_64 ]
>    ruby-2.2.0 [ x86_64 ]
>    ruby-2.2.1 [ x86_64 ]
>
> # => - current
> # =* - current && default
> #  * - default
> --- snip ---
>
> Phew.
>
> Ms Kimberley Scott
> Senior Software Engineer
>
>  ,-_|\  Blog:     http://www.randomactsofsentience.com/
> /     * LinkedIn: http://au.linkedin.com/pub/kim-scott/4/736/830
> \_,-._/ FaceBook: http://www.facebook.com/kimberley.scott.14
>      v  Twitter:  https://twitter.com/KimberleyRScott
>         LeanPub:  https://leanpub.com/randomactsofsentience
>         Youtube:  https://www.youtube.com/channel/UCKqnDY-A2QkgxxN6Z5bjmNQ
> "The world is a meat grinder and we dance between the blades with the
> illusion of control.”
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ruby-lang.org/pipermail/jruby/attachments/20150725/69a95334/attachment.html>


More information about the JRuby mailing list