ruby - RVM 安装 MacOS Mavericks

标签 ruby macos rubygems rvm

您好,我无法在我的 mac (Mavericks 10.9.2) 上安装 rvm:

curl -sSL -k https://get.rvm.io | bash -s stable --ruby

我得到输出:

Unknown option: n
Unknown option: 1
Usage: head [-options] <url>...
-m <method>   use method for the request (default is 'HEAD')
-f            make request even if head believes method is illegal
-b <base>     Use the specified URL as base
-t <timeout>  Set timeout value
-i <time>     Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a            Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P            don't load proxy settings from environment
-H <header>   send this HTTP header (you can specify several)

-u            Display method and URL before any response
-U            Display request headers (implies -u)
-s            Display response status code
-S            Display response status chain
-e            Display response headers
-d            Do not display content
-o <format>   Process HTML content in various ways

-v            Show program version
-h            Print this message

-x            Extra debugging output
BASH 3.2.25 required (you have 3.2.51(1)-release)

降级 bash 对我来说毫无意义,任何提示如何避免这种情况?

最佳答案

在我的例子中,这个问题是由 .bash_profile 中 PATH 条目的顺序引起的。 /usr/bin/head(由 rvm 安装程序预期)被 /Applications/XAMPP/xamppfiles/bin/head 覆盖,这似乎做了一些不同的事情。将顺序切换为类似

export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin

帮我修好了。

关于ruby - RVM 安装 MacOS Mavericks,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22887299/

相关文章:

ruby-on-rails - Rails 中的 collection_check_boxes 从表单中获取结果

macos - ImageMagick 无法识别 .eps 文件(无解码委托(delegate))

testing - cucumber vs capybara

ruby - 如何合并两个哈希数组?

ruby-on-rails - rails : An elegant way to display a message when there are no elements in database

c++ - 如何在 macOS 中使用(链接)调试版本的 libc++?

ruby OAuth : display request header?

ruby - 需要 Nokogiri?没有要加载的文件

ruby - 类中的命名空间方法

macos - 如何从终端打开新的 Mac OS X 终端并将其放在同一目录中? (雪豹)