代码之家  ›  专栏  ›  技术社区  ›  Sonny Black

未安装ruby-2.0.0-p247

  •  2
  • Sonny Black  · 技术社区  · 12 年前

    我刚刚更新到最新的Mac OS Maverick,现在在终端中打开应用程序时,我会收到以下消息。你知道如何解决这个问题吗?提前Thx!

    未安装ruby-2.0.0-p247。

    要安装,请执行以下操作:“rvm-install-ruby-2.0.0-p247”

    [app]$rvm install ruby-2.0.0-p247
    
    Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p195/bin' is not at first place usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
    to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p195'.
    Searching for binary rubies, this might take some time.
    No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p247.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    
    Checking requirements for smf.
    Installing requirements for smf.
    anthonypanepinto password required for 'sm get head': 
    Updating system..
    Installing required package: libtool..........................
    Error running 'requirements_smf_lib_install libtool',
    please read /usr/local/rvm/log/1382766047_ruby-2.0.0-p247/package_install_libtool.log
    Failed installation package: libtool of: libtool, gdbm.
    Requirements installation failed with status: 1.
    
    2 回复  |  直到 12 年前
        1
  •  11
  •   Gus Ortiz    12 年前

    我看到有些人仍然有这个问题,我就是其中之一。在运行了mpapis的说明后,我仍然无法安装ruby 2.0.0,所以我这样做了

    rvm install 2.0.0 --autolibs=1
    

    这对我起到了作用。

        2
  •  6
  •   mpapis    12 年前

    您需要运行:

    rvmsudo rvm get head    # update rvm
    rvm autolibs homebrew   # tell rvm to use homebrew
    rvm install 2.0.0       # install ruby
    rvm use 2.0.0 --default # use ruby and make it default
    

    这是铁路安装后剩下的。。。我认为它可以自动化-需要修复它。