Curl Certificate Error when Using RVM to install Ruby 1.9.2

前端 未结 11 1535
太阳男子
太阳男子 2020-11-27 10:29

RVM is running into a certificate error when trying to download Ruby 1.9.2. It looks like curl is having a certificate issue but I am not sure how to bypass it

11条回答
  •  情话喂你
    2020-11-27 11:01

    Curl is invoked in .rvm/scripts/fetch, which by default will be in your home directory.

    Edit this using your favourite text editor: for example,

     nano ~/.rvm/scripts/fetch
    

    In lines 56 and 58 (may vary with other versions of RVM, of course) you'll see two lines which begin

     fetch_command="curl ...
    

    Simply add -k after curl, save and try again.

提交回复
热议问题