您好,我无法在我的 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/