Attempting to install libv8, “failed to build gem native extension”

后端 未结 3 1681
再見小時候
再見小時候 2021-02-05 19:44

I am using W7 64bit. Simply put, when I enter:

C:\\Sites>gem install libv8

I get this result:

Temporarily enhancing PATH to          


        
相关标签:
3条回答
  • I had this problem, and @xiy above led me to the answer. Had to change

    gem 'therubyracer'
    

    to

    gem 'therubyracer', :platforms => :ruby
    

    as Windows does not need or like that gem.

    0 讨论(0)
  • 2021-02-05 20:07

    The solution is to install version .0

    gem install libv8 --version 3.11.8.0
    

    until this is fixed, as I experienced this, too

    0 讨论(0)
  • 2021-02-05 20:21

    I had the same windows problem that you described with:

    gem 'twitter-bootstrap-rails'
    

    When I switched this the version from github:

    gem 'twitter-bootstrap-rails', :github => 'seyhunak/twitter-bootstrap-rails'
    

    No problem. Give that a shot.

    0 讨论(0)
提交回复
热议问题