2012-05-25 3 views
2

При попытке связать установку get error. Я получаю ту же ошибку с пустым проектом.не может установить gem 'twitter-bootstrap-rails'

Installing libv8 (3.3.10.4) with native extensions 
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

    C:/Ruby192/bin/ruby.exe extconf.rb 
    *** extconf.rb failed *** 
    Could not create Makefile due to some reason, probably lack of 
    necessary libraries and/or headers. Check the mkmf.log file for more 
     details. You may need configuration options. 

    Provided configuration options: 
    --with-opt-dir 
    --without-opt-dir 
    --with-opt-include 
    --without-opt-include=${opt-dir}/include 
    --with-opt-lib 
    --without-opt-lib=${opt-dir}/lib 
    --with-make-prog 
    --without-make-prog 
    --srcdir=. 
    --curdir 
    --ruby=C:/Ruby192/bin/ruby 
    Checking for Python...Unable to build libv8: Python not found! 


    Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/libv8-3.3 
.10.4 for inspection. 
    Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.4/ext/libv8/g 
    em_make.out 
    An error occured while installing libv8 (3.3.10.4), and Bundler cannot continue. 

    Make sure that `gem install libv8 -v '3.3.10.4'` succeeds before bundling. 

Вот мой Gemfile: источник 'https://rubygems.org'

gem 'rails', '3.2.2' 
    gem 'bootstrap-sass', '2.0.0' 
    # Bundle edge Rails instead: 
    # gem 'rails', :git => 'git://github.com/rails/rails.git' 
    gem'devise' 

    gem 'mysql2' 

group :deployment do 
gem 'pg' 
end 

камень 'activemerchant'

Gems used only for assets and not required 

в производственной среде по умолчанию. группы: активы делают Gem 'твиттер-Bootstrap рельсы' Gem 'SASS рельсы', '~> 3.2.3' Gem 'кофе рельсы', '~> 3.2.1'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes 

# камень 'therubyracer'

gem 'uglifier', '>= 1.0.3' 
end 

    gem 'jquery-rails' 
+0

В настоящее время это безнадежно, потому что v8 не будет строить на окнах. Также из этих драгоценных камней вы, вероятно, хотите того или другого: bootstrap-sass, twitter-bootstrap-rails – pguardiario

ответ

1

libv8 требует Python для установки и добавляются в путь Windows.

  • Шаги
    • Скачать и установить Python27
    • Щелкните правой кнопкой мыши на компьютер -> Свойства -> Дополнительные параметры -> Переменные среды
    • В разделе "Системные переменные" найти путь и выбрать редактировать
    • Добавить "C: \ Python26;"

Примечание: я должен был перезапустить Aptana для того, чтобы распознать новый путь Python.

Смежные вопросы