V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
spenceryi
V2EX  ›  Ruby on Rails

求大神带升级ruby到1.9.3以上啊,

  •  
  •   spenceryi · 2013-05-03 22:34:15 +08:00 · 5234 次点击
    这是一个创建于 4229 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我的是1.8的!!!要用appfog,tunnel要装caldecott,caldecott要1.9.3以上啊!!怎么试都不行!!啊啊啊啊啊!!MAC OS 10.8.3,要链接appfog数据库啊啊啊啊
    14 条回复    1970-01-01 08:00:00 +08:00
    liprais
        1
    liprais  
       2013-05-03 22:40:49 +08:00
    用rvm吧
    spenceryi
        2
    spenceryi  
    OP
       2013-05-03 23:11:29 +08:00
    @liprais 用了。。还是安不了。。
    rankjie
        3
    rankjie  
       2013-05-03 23:18:24 +08:00 via iPhone
    spenceryi
        4
    spenceryi  
    OP
       2013-05-03 23:31:39 +08:00
    @rankjie
    @liprais Skipping update of certificates in '/usr/local/etc/openssl/cert.pem'.
    RVM autolibs is now configured with mode '2' => 'check and stop if missing',
    please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
    or visit https://rvm.io/rvm/autolibs for more information.
    Keinez
        5
    Keinez  
       2013-05-03 23:42:02 +08:00
    Appfog的doc不是有mac的af安装步骤么……其中ruby1.9.3安装之前要有homebrew和libksba……LZ是否漏掉?

    用的Windows,之前也是折腾了好半天才弄上caldecott……
    txx
        6
    txx  
       2013-05-04 07:14:01 +08:00 via iPhone
    @spenceryi rvm 在mac上的依赖很奇怪的 而且如果你要用 brew装依赖的话。好几个源还被墙了,以及不是让你 run 'rvm autolibs enable'么?
    terry
        7
    terry  
       2013-05-04 08:47:57 +08:00
    用 rbenv + ruby-build 吧,RVM 太重了。
    allenhsu
        9
    allenhsu  
       2013-05-04 11:12:20 +08:00
    rbenv +1
    用着很干净,需要习惯性 rehash
    spenceryi
        10
    spenceryi  
    OP
       2013-05-04 14:52:08 +08:00
    Error running './configure --prefix=/Users/spencer/.rvm/rubies/ruby-2.0.0-p0 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
    please read /Users/spencer/.rvm/log/ruby-2.0.0-p0/1367736523_configure.log
    There has been an error while running configure. Halting the installation.

    老是这个错误,是怎么了,用rvm安装
    spenceryi
        11
    spenceryi  
    OP
       2013-05-04 14:53:06 +08:00
    @liprais
    [2013-05-05 14:51:37] ./configure
    configure: WARNING: unrecognized options: --without-tcl, --without-tk
    checking build system type... x86_64-apple-darwin12.3.0
    checking host system type... x86_64-apple-darwin12.3.0
    checking target system type... x86_64-apple-darwin12.3.0
    checking whether the C compiler works... no
    configure: error: in `/Users/spencer/.rvm/src/ruby-2.0.0-p0':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    kingwkb
        12
    kingwkb  
       2013-05-04 14:54:26 +08:00
    rbenv 比 rvm 好用
    spenceryi
        13
    spenceryi  
    OP
       2013-05-04 15:23:23 +08:00
    @kingwkb
    @allenhsu
    @Pazzilivo
    @terry
    @txx
    @Keinez
    @rankjie
    @liprais

    搞定了,胃疼。。。。哈哈,谢谢大家~~~
    terry
        14
    terry  
       2013-05-04 17:26:11 +08:00
    @allenhsu rbenv-rehash
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1048 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:05 · PVG 03:05 · LAX 11:05 · JFK 14:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.