在窗户上的therubyracer宝石

在窗户上的therubyracer宝石

本文介绍了在窗户上的therubyracer宝石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Windows平台上开发并且几个星期没有添加任何宝石,现在我决定做一个软件包更新,但是我无法通过这个名为therubyracer的gem。我安装了开发工具包,它正在根据文档的验证程序进行工作。



我的问题是:有没有办法在windows上安装这个gem?

这个gem将会被rails 3.1需要,这就是为什么现在我做了一个bundle更新,它被滑入到rails 3.0.8中为未来的3.1迁移提供一个早期启动的手势?

编辑包括Gemfile和Gemfile.lock



 #Gemfile 
#source'http://rubygems.org'
来源:rubygems

gem'rails'
gem'rake ','0.8.7'
gem'youtube_it'
gem'panda'
gem漂亮发生器
#gemmongoid,2.0.0.rc. 7
gemmongoid
gemmongoid -eager-loading
#gem'mongoid_search'
gembson_ext,> 1.1.5
gem'devise'
gem'cancan'
gem'hirb'
#gem'heroku'
gem'rest-client'
gem'less'#needs更多插件
#gem'hash_extension'
gem'aws-s3',:require => 'aws / s3'#s3.rb
gem'jquery-rails',> = 0.2.7#rails g jquery:install
#gem'mongrel',> = 1.2。 0.pre2
gem'delayed_job'
gem'delayed_job_mongoid'
gem'kaminari'



#Gemfile.lock
GEM
remote:http://rubygems.org/
specs:
abstract(1.0.0)
actionmailer(3.0.8)
actionpack(= 3.0.8)
mail(〜> 2.2.19)
actionpack(3.0.8)
activemodel(= 3.0.8)
activesupport(= 3.0.8)
builder(〜> 2.1.2)
erubis(〜> 2.6.6)
i18n(〜> 0.5.0)
rack(〜> 1.2.1 )
机架安装(〜> 0.6.14)
机架测试(〜> 0.5.7)
tzinfo(〜> 0.3.23)
activemodel( 3.0.8)
activesupport(= 3.0.8)
builder(〜> 2.1.2)
i18n(〜> 0.5.0)
activerecord(3.0.8) )
activemodel(= 3.0.8)
activesupport(= 3.0.8)
ar el(〜> 2.0.10)
tzinfo(〜> 0.3.23)
activeresource(3.0.8)
activemodel(= 3.0.8)
activesupport(= 3.0.8)
activesupport(3.0.8)
arel(2.0.10)
aws-s3(0.6.2)
builder
mime-types
xml-simple
bcrypt-ruby(2.1.4-x86 -w)
bson(1.3.1)
bson_ext(1.3.1)
builder(2.1.2)
cancan(1.6.5)
守护进程(1.1 .3)
delayed_job(2.1.4)
activesupport(〜> 3.0)
守护进程
delayed_job_mongoid(1.0.2)
delayed_job(〜> 2.1。 1)
mongoid(〜> 2.0.0.rc)
devise(1.3.4)
bcrypt-ruby(〜> 2.1.2)
orm_adapter(〜> ; 0.0.3)
warden(〜> 1.0.3)
erubis(2.6.6)
abstract(> = 1.0.0)
hirb(0.4.5 )
i18n(0.5.0)
jquery-rails(1.0.10)
railties(〜> 3.0)
thor(〜> 0.14)
json (1.5.2)
kaminari(0.12.4)
rails(&g (1.2.21)
嘀咕(> = 0.4.2)
树梢(> = 1.4.2)
邮件(2.2 (> = 2.3.6)
i18n(> = 0.4.0)
mime-types(〜> 1.16)
treetop(〜> 1.4.8)
mime-types(1.16)
mongo(1.3.1)
bson(> = 1.3.1)
mongoid(2.0.2)
activemodel(〜> 3.0)
mongo(〜> 1.3)
tzinfo(〜> 0.3.22)
mongoid-eager (0.3.1)
嘀咕(0.5.3)
俏皮发电机(0.4.6)
oauth(0.4.4)
orm_adapter(0.0.5)
熊猫(1.4.2)
json
其余客户
ruby​​-hmac(> = 0.3.2)
多语种(0.3.1)
(1.2.3)
机架安装(0.6.14)
机架(> 1.0.0)
机架测试(0.5.7)
机架(> ; = 1.0)
rails(3.0.8)
actionmailer(= 3.0.8)
actionpack(= 3.0.8)
activerecord(= 3.0.8)
主动资源(= 3.0.8)
activesupport(= 3.0.8)
bundler(〜> 1.0)
railties(= 3.0.8)
railties(3.0.8) )
actionpack(= 3.0.8)
activesupport(= 3.0.8)
rake(> = 0.8.7)
thor(〜> 0.14.4)
rake(0.8.7)
其余客户(1.6.1)
mime-types(> = 1.16)
ruby​​-hmac(0.4.0 )
thor(0.14.6)
树梢(1.4.9)
polyglot(> = 0.3.1)
tzinfo(0.3.28)
warden( 1.0.4)
rack(> = 1.0)
xml-simple(1.0.16)
youtube_it(1.4.2)
builder
oauth(> = 0.4.4)

平台
x86-mingw32

相关
aws-s3
bson_ext(> 1.1.5)
cancan
delayed_job
delayed_job_mongoid
devise
hirb
jquery-rails(> = 0.2.7)
kaminari
less
mongoid
mongoid -eager-loading
nifty-generators
熊猫
rails
rake(= 0.8.7)
rest-client
youtube_it


解决方案

不,我没有办法知道目前在windows上安装这个gem。问题在于目前没有预编译的Windows版libv8 gem版本,并且源版本仅与* nix兼容。它不一定非要这样,它只是需要有人花时间为Windows编译工作。



那就是说,Windows应该带有一个JScript,即Microsoft JavaScript运行时,它的rails(通过)会自动检测和使用,所以你应该能够只删除你对therubyracer的依赖。



作为那个宝石的维护者,这当然会让我难过,但它会让你走上前路。 / p>

I've been peacefully developing on Windows without adding any gems for a few weeks now and today I decided to do a bundle update, but I cannot get through this gem called therubyracer. I have the devkit installed and it is working according to the documentation's verification procedure.

My question is: is there a way to install this gem at all on windows?

And is this gem going to be required by rails 3.1 and this is why now that I do a bundle update it is being 'slipped' into the rails 3.0.8 as a gesture of early kick start for future 3.1 migration?

EDIT including Gemfile and Gemfile.lock

# Gemfile
# source 'http://rubygems.org'
source :rubygems

gem 'rails'
gem 'rake', '0.8.7'
gem 'youtube_it'
gem 'panda'
gem "nifty-generators"
# gem "mongoid", "2.0.0.rc.7"
gem "mongoid"
gem "mongoid-eager-loading"
# gem 'mongoid_search'
gem "bson_ext", ">1.1.5"
gem 'devise'
gem 'cancan'
gem 'hirb'
# gem 'heroku'
gem 'rest-client'
gem 'less' # needs the more plugin
# gem 'hash_extension'
gem 'aws-s3', :require => 'aws/s3' # s3.rb
gem 'jquery-rails', ">= 0.2.7" # rails g jquery:install
# gem 'mongrel', ">= 1.2.0.pre2"
gem 'delayed_job'
gem 'delayed_job_mongoid'
gem 'kaminari'



# Gemfile.lock
GEM
  remote: http://rubygems.org/
  specs:
    abstract (1.0.0)
    actionmailer (3.0.8)
      actionpack (= 3.0.8)
      mail (~> 2.2.19)
    actionpack (3.0.8)
      activemodel (= 3.0.8)
      activesupport (= 3.0.8)
      builder (~> 2.1.2)
      erubis (~> 2.6.6)
      i18n (~> 0.5.0)
      rack (~> 1.2.1)
      rack-mount (~> 0.6.14)
      rack-test (~> 0.5.7)
      tzinfo (~> 0.3.23)
    activemodel (3.0.8)
      activesupport (= 3.0.8)
      builder (~> 2.1.2)
      i18n (~> 0.5.0)
    activerecord (3.0.8)
      activemodel (= 3.0.8)
      activesupport (= 3.0.8)
      arel (~> 2.0.10)
      tzinfo (~> 0.3.23)
    activeresource (3.0.8)
      activemodel (= 3.0.8)
      activesupport (= 3.0.8)
    activesupport (3.0.8)
    arel (2.0.10)
    aws-s3 (0.6.2)
      builder
      mime-types
      xml-simple
    bcrypt-ruby (2.1.4-x86-mingw32)
    bson (1.3.1)
    bson_ext (1.3.1)
    builder (2.1.2)
    cancan (1.6.5)
    daemons (1.1.3)
    delayed_job (2.1.4)
      activesupport (~> 3.0)
      daemons
    delayed_job_mongoid (1.0.2)
      delayed_job (~> 2.1.1)
      mongoid (~> 2.0.0.rc)
    devise (1.3.4)
      bcrypt-ruby (~> 2.1.2)
      orm_adapter (~> 0.0.3)
      warden (~> 1.0.3)
    erubis (2.6.6)
      abstract (>= 1.0.0)
    hirb (0.4.5)
    i18n (0.5.0)
    jquery-rails (1.0.10)
      railties (~> 3.0)
      thor (~> 0.14)
    json (1.5.2)
    kaminari (0.12.4)
      rails (>= 3.0.0)
    less (1.2.21)
      mutter (>= 0.4.2)
      treetop (>= 1.4.2)
    mail (2.2.19)
      activesupport (>= 2.3.6)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.16)
    mongo (1.3.1)
      bson (>= 1.3.1)
    mongoid (2.0.2)
      activemodel (~> 3.0)
      mongo (~> 1.3)
      tzinfo (~> 0.3.22)
    mongoid-eager-loading (0.3.1)
    mutter (0.5.3)
    nifty-generators (0.4.6)
    oauth (0.4.4)
    orm_adapter (0.0.5)
    panda (1.4.2)
      json
      rest-client
      ruby-hmac (>= 0.3.2)
    polyglot (0.3.1)
    rack (1.2.3)
    rack-mount (0.6.14)
      rack (>= 1.0.0)
    rack-test (0.5.7)
      rack (>= 1.0)
    rails (3.0.8)
      actionmailer (= 3.0.8)
      actionpack (= 3.0.8)
      activerecord (= 3.0.8)
      activeresource (= 3.0.8)
      activesupport (= 3.0.8)
      bundler (~> 1.0)
      railties (= 3.0.8)
    railties (3.0.8)
      actionpack (= 3.0.8)
      activesupport (= 3.0.8)
      rake (>= 0.8.7)
      thor (~> 0.14.4)
    rake (0.8.7)
    rest-client (1.6.1)
      mime-types (>= 1.16)
    ruby-hmac (0.4.0)
    thor (0.14.6)
    treetop (1.4.9)
      polyglot (>= 0.3.1)
    tzinfo (0.3.28)
    warden (1.0.4)
      rack (>= 1.0)
    xml-simple (1.0.16)
    youtube_it (1.4.2)
      builder
      oauth (>= 0.4.4)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  aws-s3
  bson_ext (> 1.1.5)
  cancan
  delayed_job
  delayed_job_mongoid
  devise
  hirb
  jquery-rails (>= 0.2.7)
  kaminari
  less
  mongoid
  mongoid-eager-loading
  nifty-generators
  panda
  rails
  rake (= 0.8.7)
  rest-client
  youtube_it
解决方案

No, there is no way that I know of to currently install this gem on windows. The problem is that there is currently no pre-compiled version of the libv8 gem for Windows, and the source version is only compatible with *nix. It does not necessarily have to be that way, it just requires somebody taking the time to make the compile work for Windows. https://github.com/fractaloop/libv8

That said, Windows should come with a JScript, the Microsoft JavaScript runtime, which rails (via execjs) will automatically detect and use, so you should be able to just remove your dependency on therubyracer.

As the maintainer of that gem, this would of course make me sad, but it should get you on your way.

这篇关于在窗户上的therubyracer宝石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 01:39