簡體   English   中英

RVM安裝MacOS Mavericks

[英]RVM installation MacOS Mavericks

嗨,我在以下情況下無法在我的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

為我修復它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM