0

我正在尝试从 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 进行升级。或者,我如何手动安装?

提前谢谢了。

4

1 回答 1

0

rvm 让您拥有所有版本,然后您可以在它们之间切换,以使用您想要运行代码的任何解释器。

用于rvm install 2.0安装 Ruby 2.0。

使用rvm use 2.0来使用它

用于rvm use 2.0 --default将其设置为默认值

于 2013-10-13T04:56:14.090 回答