Error: cross-thread violation on rb_gc()

后端 未结 3 1524
既然无缘
既然无缘 2021-01-04 07:40

I\'m new to Ruby on Rails.

I ran the following in a terminal when I was going through creating a blog tutorial with Rails:

$ rails blog
[BUG] cross         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 07:52

    I had a similar problem installing buildr gem (using rvm). This solution helped:

    I could nail this bug down to the native extensions of the ruby-java-bridge (rjb) on Mac OSX. What you want to do to fix this is the following:

    gem uninstall rjb
    gem uninstall buildr
    

    When asked just uninstall all versions.

    gem install rjb -v 1.3.3 --platform ruby
    gem install buildr
    

    This will install the ruby version of rjb and not the native darwin version. This should fix the issue.

    Cheers Dominic

    Although, it's not related to the question, this may help those who will look for the same error message.

提交回复
热议问题