How do I generate documentation using rvm after a reinstall?

浪尽此生 提交于 2019-12-11 09:31:45

问题


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?


回答1:


you need to use ruby first:

rvm use 1.9.3



回答2:


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)



来源:https://stackoverflow.com/questions/12667445/how-do-i-generate-documentation-using-rvm-after-a-reinstall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!