升级到Ruby 2.0.0 - Libtool

时间:2013-10-13 04:24:05

标签: ruby

我正在尝试从ruby 1.9.3升级到2.0.0。

我跑了

rvm upgrade 1.9.3-p448 2.0.0-p247

我得到的错误是:

Error running 'requirements_smf_lib_install libtool',
please read /Users/melanie/.rvm/log/1381637445_ruby-2.0.0-p247/package_install_libtool.log
Failed installation package: libtool of: libtool, gdbm.
Requirements installation failed with status: 1.
Unable to install ruby ruby-2.0.0-p247. Please install it manually to continue.

我的日志说:

[2013-10-13 15:11:58] requirements_smf_lib_install
requirements_smf_lib_install () 
{ 
    typeset -a __smf_install_command;
    requirements_smf_lib_install_command "$@";
    rvm_debug "__smf_install_command: ${__smf_install_command[*]};";
    "${__smf_install_command[@]}" || { 
        typeset ret=$?;
        rvm_warn "There were package installation errors with SM Framework, make sure to read the log.
If you see this on OSX, then you might want to try macports (http://www.macports.org/) or homebrew (http://mxcl.github.io/homebrew/) and tell RVM to use them by running:

    rvm autolibs macports #OR
    rvm autolibs homebrew

You can get help using IRC: http://webchat.freenode.net/?channels=rvm";
        return $ret
    };
    shift
}
current path: /Users/melanie
command(2): requirements_smf_lib_install libtool
  [ ] libtool 2.4.2 ~ dependencies... 

  [[32m✔[0m] libtool 2.4.2 ~ dependencies   
  [ ] libtool 2.4.2 ~ fetch... curl: (9) Server denied you to change to the given directory


  [[32m✔[0m] libtool 2.4.2 ~ fetch   

FAIL(paths): Path '/opt/sm/src/libtool-2.4.2' does not exist.

   +#   source file                                                    # function()                                        
================================================================================
vi +330 /opt/sm/core/sm/shell/log/functions                            # __sm.log.fail                                        
vi +32  /opt/sm/core/internal/shell/paths/functions                    # __sm.paths.enter                                        
vi +144 /opt/sm/core/api/shell/paths/functions                         # paths                                        
vi +54  /opt/sm/core/internal/shell/package/strategies/gnu/functions   # __sm.package.gnu.install                                        
vi +15  /opt/sm/core/internal/shell/package/functions                  # __sm.package.install                                        
vi +143 /opt/sm/core/api/shell/package/functions                       # package                                        
vi +403 /opt/sm/core/sm/shell/log/functions                            # __sm.actions.call                                        
vi +178 /opt/sm/core/internal/shell/extensions/execution/functions     # __sm.extension.run                                        
vi +151 /opt/sm/core/sm/shell/core/initialize                          # /opt/sm/core/sm/shell/core/initialize                                        
vi +41  /opt/sm/bin/sm                                                 # /opt/sm/bin/sm                                        
================================================================================
There were package installation errors with SM Framework, make sure to read the log.
If you see this on OSX, then you might want to try macports (http://www.macports.org/) or homebrew (http://mxcl.github.io/homebrew/) and tell RVM to use them by running:

    rvm autolibs macports #OR
    rvm autolibs homebrew

You can get help using IRC: http://webchat.freenode.net/?channels=rvm

如何解决问题,以便我可以使用RVM进行升级。或者,如何手动安装?

非常感谢提前。

1 个答案:

答案 0 :(得分:0)

rvm允许您拥有所有版本,然后在它们之间切换,以便为您要运行代码的任何解释器进行切换。

使用rvm install 2.0安装Ruby 2.0。

使用rvm use 2.0来使用

使用rvm use 2.0 --default将其设为默认