在Mac OSX 10.8.4上安装rvm会出现'Error running'instions_smf_lib_install libtool'

时间:2013-10-20 07:47:36

标签: ruby-on-rails ruby macos rvm

尝试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

2 个答案:

答案 0 :(得分:1)

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

此外,由于SM Framework主要用于为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

答案 1 :(得分:0)

在没有自制软件的情况下尝试这种方式:

INSTALL

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

OR

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

THEN

# 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