在OSX 10.9.1中启动终端时,我遇到了一个反复出现的问题.
每次我启动终端时,我都会重复以下至少30次
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
Run Code Online (Sandbox Code Playgroud)
最后是
/usr/local/bin/rbenv: fork: Resource temporarily unavailable
/usr/local/bin/rbenv: line 63: rbenv---version: command not found
/usr/local/bin/rbenv: line 63: rbenv-help: command not found
Run Code Online (Sandbox Code Playgroud)
这重复了50次
/usr/local/bin/rbenv: line 63: rbenv---version: command not found
/usr/local/bin/rbenv: line 63: rbenv-help: command not found
Run Code Online (Sandbox Code Playgroud)
确定它与Ruby相关,我试过了
rvm get stable
Run Code Online (Sandbox Code Playgroud)
和
curl -sSL https://get.rvm.io | bash -s stable
Run Code Online (Sandbox Code Playgroud)
但后来得到错误:
SSL证书问题:证书链中的自签名证书
我也尝试修复权限(像往常一样)没有解决方案(像往常一样)
这不是我熟悉的领域,所以我不确定现在哪棵树吠了.有人可以帮忙吗?
以下是请求的.bashrc和.bash_profile内容
.bashrc内容:
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Run Code Online (Sandbox Code Playgroud)
.bash_profile内容:
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export PATH=$PATH:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/stevekirkby/.rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/stevekirkby/.rvm/bin
export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin
export PATH=$PATH:$HOME/.rvm/bin
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
eval "$(rbenv init -)"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
alias htdocs='cd /Applications/XAMPP/xamppfiles/htdocs'
alias home='cd /Users/stevekirkby'
Run Code Online (Sandbox Code Playgroud)
谢谢,史蒂夫
Laa*_*aas 31
我有完全相同的问题.它源于rbenv试图head -1在其中一个脚本中使用,但失败了.
问题是你(和我的那个).bash_profile包含:
export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)
该/Applications/XAMPP/xamppfiles/bin文件夹包含一个名为HEAD(以HTTP方法命名)的脚本和一个不区分大小写的文件系统以及bash(因为ZSH没有这个问题)得到head并HEAD混合并提供$PATHb中的第一个.
作为解决方案:
/Applications/XAMPP/xamppfiles/bin从您的移除$PATH(或最后移动)mv HEAD HTTP_HEAD在那个文件夹中.PS.后一个选项可能会破坏一些XAMPP脚本,但我仍然需要在我的路径中使用正确的XAMPP php版本.
| 归档时间: |
|
| 查看次数: |
3887 次 |
| 最近记录: |