Tho*_*mas 1 ruby macos gem rvm
嗨,我无法在我的mac(Mavericks 10.9.2)上安装rvm之后:
curl -sSL -k https://get.rvm.io | bash -s stable --ruby
Run Code Online (Sandbox Code Playgroud)
我得到输出:
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)
Run Code Online (Sandbox Code Playgroud)
对我来说降级bash是没有意义的任何暗示如何避免这种情况?
小智 8
在我的情况下,此问题是由.bash_profile中的PATH条目的顺序引起的./usr/bin/head(由rvm安装程序预期)被覆盖/Applications/XAMPP/xamppfiles/bin/head,似乎做了一些不同的事情.将订单切换为类似的东西
export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin
Run Code Online (Sandbox Code Playgroud)
为我修好了.
| 归档时间: |
|
| 查看次数: |
775 次 |
| 最近记录: |