brew安装emacs错误

brew安装emacs错误,emacs,installation,homebrew,Emacs,Installation,Homebrew,通过自制程序安装emacs时出现问题。任何想法都值得赞赏-以下是我得到的: ==> Downloading http://ftpmirror.gnu.org/emacs/emacs-24.2.tar.bz2 Already downloaded: /Library/Caches/Homebrew/emacs-24.2.tar.bz2 ==> Downloading patches ####################################################

通过自制程序安装emacs时出现问题。任何想法都值得赞赏-以下是我得到的:

==> Downloading http://ftpmirror.gnu.org/emacs/emacs-24.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/emacs-24.2.tar.bz2
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file lisp/term/ns-win.el
Hunk #1 succeeded at 931 with fuzz 1 (offset -332 lines).
patching file src/nsfns.m
Hunk #1 succeeded at 2681 (offset 92 lines).
Hunk #2 succeeded at 2794 (offset 90 lines).
patching file src/nsterm.h
Hunk #1 succeeded at 116 (offset 21 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 797 (offset 111 lines).
Hunk #2 succeeded at 1281 (offset 143 lines).
Hunk #3 succeeded at 1337 (offset 127 lines).
Hunk #4 succeeded at 6088 with fuzz 2 (offset 466 lines).
Hunk #5 succeeded at 6196 (offset 463 lines).
==> ./configure --prefix=/usr/local/Cellar/emacs/24.2 --without-dbus --enable-lo
checking whether make sets $(MAKE)... ./configure: /usr/local/Library/ENV/4.3/sed:     /bin/bash^M: bad interpreter: No such file or directory
no
configure: error: cannot run /bin/sh build-aux/config.sub
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or     directory
./configure: /usr/local/Library/ENV/4.3/sed: /bin/bash^M: bad interpreter: No such file or directory

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
以下是brew doctor的输出:

警告:/usr/bin出现在/usr/local/bin之前 这意味着将使用系统提供的程序,而不是那些 由自制软件提供。两条路径上都存在以下工具:

局部的 自动通信 自动收割台 自动变速箱 汽车制造商 自动经济 自动扫描 自动更新 集群数据库 createdb createlang createuser dropdb 德邦 滴水器 ecpg 假名 pg_配置 垃圾场 佩格·杜帕尔 PGU恢复 PGU升级 psql reindexdb 真空数据库

考虑修改路径,以便/usr/local/bin 在路径中的/usr/bin之前发生。 警告:您的自制已过时
你至少24小时没有更新,这在布雷兰已经很长时间了

brew doctor的输出是什么?您的任何文件都有DOS行结尾^M,这让自制软件很混乱。执行brew更新,或者,如果问题仍然存在,请从头重新安装Homebrew: