How do I generate documentation using rvm after a

2019-07-31 02:32发布

I installed RVM as per the instructions on http://rvm.io. Here's what I've done: rvm list:

rvm rubies

=* ruby-1.9.3-p194 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Followed by a ruby -v:

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]

And then a rvm docs generate:

Currently 'rvm docs ...' does not work with non-rvm rubies.

I then tried rvm reinstall 1.9.3 && rvm docs generate. This resulted in the rvm giving me the above error.

How do I generate docs with rvm?

2条回答
beautiful°
2楼-- · 2019-07-31 02:48

I am using the rvm binary (i.e. I did not build it from sources). See this git issue for more details. Doing a rvm reinstall 1.9.3 --disable-binary will build rvm from source and allow you to generate docs with rvm. (At least for version 1.9.3)

查看更多
Lonely孤独者°
3楼-- · 2019-07-31 02:52

you need to use ruby first:

rvm use 1.9.3
查看更多
登录 后发表回答