0

试图rvm install ruby-1.9.3-head得到以下错误。我以为我安装了 Railsinstaller 和 XCode 命令行工具,像 libtool 这样的包应该默认安装。我在这里缺少哪些步骤?

Checking requirements for smf.
Installing requirements for smf.
songserm 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/1382253809_ruby-1.9.3-head/package_install_libtool.log
Failed installation package: libtool of: libtool, gdbm.
Requirements installation failed with status: 1.

日志文件的内容是这样的:/usr/local/rvm/log/1382253809_ruby-1.9.3-head/package_install_libtool.log

[2013-10-20 14:27:12] 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/songserm/Dropbox/projects
command(2): requirements_smf_lib_install libtool
  [ ] libtool 2.4.2 ~ dependencies... ^M                                             ^M  [^[[32m✔^[[0m] libtool 2.4.2 ~ dependencies
  [ ] libtool 2.4.2 ~ fetch... curl: (9) Server denied you to change to the given directory
^M                                             ^M  [^[[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
4

2 回答 2

1

这看起来像是途中某处的错误,请将其报告给https://github.com/wayneeseguin/rvm/issues

此外,由于 SM 框架主要用于为 RVM 构建二进制文件,您可能想尝试使用 Homebrew:

rvm get stable
rvm autolibs homebrew
rvm install 1.9.3-head

请注意,这1.9.3-head意味着来自分支的最新开发代码1_9_3- 不是最新发布的补丁级别,以获得最新的补丁级别使用:

rvm get stable
rvm install 1.9.3
于 2013-10-20T09:59:08.050 回答
0

在没有 Homebrew 的情况下尝试这种方式:

安装

# install RVM with --autolibs
$ curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enabled --auto-dotfiles

或者

# update RVM with --autolibs
$ rvm get stable --auto-dotfiles --autolibs=enabled

然后

# Restart terminal and check if everything is OK typing 
$ type rvm | head -1
# The answer should by "RVM is a function"

# Now install Ruby 1.9.3 specifying separate install dir and setting this version to default
$ rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm/usr --verify-downloads 1
$ rvm use 1.9.3 --default

#You can switch between 'system' and 'default' ruby:
$ rvm default
$ rvm use system

# Check active ruby version
$ ruby -v
于 2013-10-20T09:37:09.027 回答