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

安装Ruby出现下列问题,请问怎么解决?

  •  
  •   brickhu · 2012-05-13 18:33:44 +08:00 · 5032 次点击
    这是一个创建于 4575 天前的主题,其中的信息可能已经有所发展或是发生改变。
    brickhumatoMacBook-Pro:~ brickhu$ rvm install 1.9.2
    Fetching yaml-0.1.4.tar.gz to /Users/brickhu/.rvm/archives
    Extracting yaml-0.1.4.tar.gz to /Users/brickhu/.rvm/src
    Configuring yaml in /Users/brickhu/.rvm/src/yaml-0.1.4.
    Error running ' ./configure --prefix="/Users/brickhu/.rvm/usr" ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/yaml/configure.log
    Compiling yaml in /Users/brickhu/.rvm/src/yaml-0.1.4.
    Error running 'make ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/yaml/make.log


    Database file /Users/brickhu/.rvm/config/packages does not exist.

    Installing Ruby from source to: /Users/brickhu/.rvm/rubies/ruby-1.9.2-p320, this may take a while depending on your cpu(s)...

    ruby-1.9.2-p320 - #fetching
    ruby-1.9.2-p320 - #extracted to /Users/brickhu/.rvm/src/ruby-1.9.2-p320 (already extracted)
    ruby-1.9.2-p320 - #configuring
    Error running ' ./configure --prefix=/Users/brickhu/.rvm/rubies/ruby-1.9.2-p320 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/brickhu/.rvm/usr ', please read /Users/brickhu/.rvm/log/ruby-1.9.2-p320/configure.log
    There has been an error while running configure. Halting the installation.
    ls: /Users/brickhu/.rvm/rubies/*/bin/ruby: No such file or directory
    brickhumatoMacBook-Pro:~ brickhu$
    1 条回复    1970-01-01 08:00:00 +08:00
    kongruxi
        1
    kongruxi  
       2012-05-13 19:44:13 +08:00
    先看看 rvm requirements,安装好依赖,特别是对 Xcode 描述那段

    安装时,加上个参数,即:rvm install 1.9.2 --with-gcc=clang

    另外,如果对 ruby 版本不是有限制的话,建议安装 1.9.3
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3170 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:18 · PVG 20:18 · LAX 04:18 · JFK 07:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.