66beta
V2EX  ›  Ruby

Ruby 在 Windows 下支持也太差了吧?装个 Octopress 要人命啊!

  •  1
     
  •   66beta · Apr 29, 2014 · 6308 views
    This topic created in 4419 days ago, the information mentioned may be changed or developed.
    在家里用osx装,一路顺风,10.9.2+ruby200;

    在公司的Win7上面,无论是200还是193,都搞不定,一会是sqlite3有问题,一会yajl-ruby有问题...

    sqlite3搜索了好久,最终按照 http://mislav.uniqpath.com/rails/install-sqlite3/#windows 给搞定了

    yajl-ruby就要人命了,只要一安装,就会出现:"Unable to convert "\x90" from ASCII-8BIT to UTF-8",然后 gem install 就坏了,一运行就提示:“invalid byte sequence in UTF-8”

    奋战两天,在google上泡了好久,无解~

    装Jekyll是可以的,所以我怀疑的bundle的问题。

    天哪,实在不想涉足Ruby太深,我只是想装个blog而已啊!!!
    18 replies    2015-04-01 14:12:26 +08:00
    dorentus
        1
    dorentus  
       Apr 29, 2014
    因为开发者自己都不用 windows……
    windows 支持是另外的团队在做的吧

    windows 下面大概有两个坑:
    一是部分含 C 代码需要编译的 gem,多半只支持 POSIX 兼容的系统;
    二是编码的问题。

    据说用 JRuby 的话会好些?
    Aegwynn
        2
    Aegwynn  
       Apr 29, 2014
    我也是遇到跟题主类似的问题,遂放弃。改用github page了。
    glasslion
        3
    glasslion  
       Apr 29, 2014
    Virtualbox+vagrant
    blacktulip
        4
    blacktulip  
       Apr 29, 2014 via iPhone
    不为落后买单很正常
    jsonline
        5
    jsonline  
       Apr 29, 2014
    Who cares Windows?
    66beta
        6
    66beta  
    OP
       Apr 29, 2014
    @dorentus 恩,google的时候看到老外也说是编译安装本身有好多bug

    @glasslion 可是写blog要开虚拟机,得不偿失了
    glasslion
        7
    glasslion  
       Apr 29, 2014   ❤️ 2
    @66beta 这虚拟机占用的资源可能还不及Ruby
    dorentus
        8
    dorentus  
       Apr 29, 2014
    Octopress/Jekyll 就是用的 markdown 吧,如果你是在 github pages 上面用的话,其实本地不配置、直接找个能预览 markdown 的编辑器,就能凑合着用了……
    robertlyc
        10
    robertlyc  
       Apr 29, 2014
    干嘛要支持windows? 摊手
    ChiangDi
        11
    ChiangDi  
       Apr 29, 2014
    Ruby就是这么叼
    sarices
        12
    sarices  
       Apr 29, 2014
    在Centos 下面也不是那么容易
    RoshanWu
        13
    RoshanWu  
       Apr 29, 2014
    两年前写过 `windows` 下安装 `Octopress` 的文章,希望对你有点帮助:
    [Hello Octopress](http://roshanca.com/hello-octopress/)
    hit9
        15
    hit9  
       Apr 29, 2014
    要么在windows下抛弃ruby, 要么抛弃windows
    Jex
        16
    Jex  
       Dec 10, 2014   ❤️ 2
    你要装DevKit


    PS:PlainSite大法好,退Octopress保平安:[PlainSite:A Truly Hackable Static Site Generator!](https://github.com/JexCheng/plain_site)(https://ruby-china.org/topics/22876)
    66beta
        17
    66beta  
    OP
       Dec 10, 2014
    @Jex 挖坟~~
    devkit也是装了的,不过已经转到nodejs/hexo了,方便了许多,一如既往得不爱写blog
    ming2281
        18
    ming2281  
       Apr 1, 2015
    我现在使用的就是Windows,也在Windows上使用过Ruby, 玩octpress各种扑街

    很累

    =>node不错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5822 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 81ms · UTC 02:00 · PVG 10:00 · LAX 19:00 · JFK 22:00
    ♥ Do have faith in what you're doing.